Skip to content

Commit f2b737b

Browse files
R4 R5 metadata test
1 parent ebb2138 commit f2b737b

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

charts/ontoserver/templates/tests/test-metadata-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data:
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")"

charts/ontoserver/tests/test_hooks_test.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)