File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 check "GET /fhir/metadata returns 200" "$([ "$CODE" = "200" ] && echo ok || echo "http $CODE")"
3333 check "resourceType is CapabilityStatement" "$(grep -q '"resourceType":"CapabilityStatement"' /tmp/response.json && echo ok || echo "not found")"
3434 check "status is active" "$(grep -q '"status":"active"' /tmp/response.json && echo ok || echo "not found")"
35- check "fhirVersion is 4.0 " "$(grep -q '"fhirVersion":"4.0 ' /tmp/response.json && echo ok || echo "not found")"
35+ check "fhirVersion is supported (R4 or R5) " "$(grep -Eq '"fhirVersion":"(4\.0|5\.0) ' /tmp/response.json && echo ok || echo "not found")"
3636 check "CodeSystem lookup operation advertised" "$(grep -q '"lookup"' /tmp/response.json && echo ok || echo "not found")"
3737 check "ValueSet expand operation advertised" "$(grep -q '"expand"' /tmp/response.json && echo ok || echo "not found")"
3838 check "ConceptMap translate operation advertised" "$(grep -q '"translate"' /tmp/response.json && echo ok || echo "not found")"
Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ tests:
2222 path : spec.ttlSecondsAfterFinished
2323 value : 1800
2424 documentIndex : 1
25+ - notMatchRegex :
26+ path : data["test.sh"]
27+ pattern : ' check "fhirVersion is 4\.0"'
28+ documentIndex : 0
29+ - matchRegex :
30+ path : data["test.sh"]
31+ pattern : ' grep -Eq '' "fhirVersion":"\(4\\\.0\|5\\\.0\)'' '
32+ documentIndex : 0
2533
2634 - it : renders read-only test hook by default
2735 templates :
You can’t perform that action at this time.
0 commit comments