OCL API 2
Build: #1639 failed
Job: Run tests was successful
Job result summary
- Completed
- Duration
- 4 minutes
- Revision
-
edf8e34b4f04aeaac0d6ed6c6313eade7f930e1f
edf8e34b4f04aeaac0d6ed6c6313eade7f930e1f - Successful since
- #1621 ()
Error summary
The build generated some errors. See the full build log for more details.
ok
test_create_with_filter_and_system ... [cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,732 [36mPOST /users/username333/ValueSet/[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,733 [36m{'Cookie': '', 'Content-Length': '266', 'Content-Type': 'application/json', 'Authorization': '*****'}[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,733 [36mb'{"resourceType":"ValueSet","id":"c2","url":"http://c2.com","status":"draft","name":"collection1","description":"This is a test collection","compose":{"include":[{"system":"http://some/url","version":"v2","filter":[{"property":"q","op":"=","value":"concept1353"}]}]}}'[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,734 [36mPOST /users/username333/ValueSet/ - 201[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,734 [36m{'Content-Type': 'application/json', 'Location': 'http://c2.com', 'Vary': 'Accept, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'username333', 'X-OCL-RESPONSE-TIME': '0.27124595642089844', 'X-OCL-REQUEST-URL': '/users/username333/ValueSet/', 'X-OCL-REQUEST-METHOD': 'POST', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '730'}[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,734 [36mb'{"resourceType":"ValueSet","id":"c2","version":"0.1","url":"http://c2.com","title":"collection1","status":"draft","meta":{"lastUpdated":"2023-05-14T11:40:59.654624Z"},"identifier":[{"system":"http://localhost:8000","value":"/users/username333/ValueSet/c2/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection1","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"http://some/url","version":"v2","filter":[{"property":"q","op":"=","value":"concept1353"}]}],"lockedDate":null}}'[0m
ok
test_expand ... [cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,287 [36mPOST /users/username334/ValueSet/[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,288 [36m{'Cookie': '', 'Content-Length': '256', 'Content-Type': 'application/json', 'Authorization': '*****'}[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,288 [36mb'{"resourceType":"ValueSet","id":"c2","url":"http://c2.com","status":"draft","version":"1","name":"collection1","description":"This is a test collection","compose":{"include":[{"system":"http://some/url","version":"v2","concept":[{"code":"concept1355"}]}]}}'[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,289 [36mPOST /users/username334/ValueSet/ - 201[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,289 [36m{'Content-Type': 'application/json', 'Location': 'http://c2.com', 'Vary': 'Accept, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'username334', 'X-OCL-RESPONSE-TIME': '0.20126080513000488', 'X-OCL-REQUEST-URL': '/users/username334/ValueSet/', 'X-OCL-REQUEST-METHOD': 'POST', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '719'}[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,290 [36mb'{"resourceType":"ValueSet","id":"c2","version":"1","url":"http://c2.com","title":"collection1","status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:00.209818Z"},"identifier":[{"system":"http://localhost:8000","value":"/users/username334/ValueSet/c2/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection1","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"http://some/url","version":"v2","concept":[{"code":"concept1355","display":null}]}],"lockedDate":null}}'[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,575 [36mPOST /users/username334/ValueSet/c2/$expand/[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,576 [36m{'Cookie': '', 'Content-Length': '89', 'Content-Type': 'application/json', 'Authorization': '*****'}[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,576 [36mb'{"resourceType":"Parameters","parameter":[{"name":"filter","valueString":"concept1355"}]}'[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,577 [36mPOST /users/username334/ValueSet/c2/$expand/ - 201[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,577 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'username334', 'X-OCL-RESPONSE-TIME': '0.14103055000305176', 'X-OCL-REQUEST-URL': '/users/username334/ValueSet/c2/$expand/', 'X-OCL-REQUEST-METHOD': 'POST', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '340'}[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,577 [36mb'{"resourceType":"ValueSet","id":131,"expansion":{"identifier":"/users/username334/collections/c2/1/expansions/131/","timestamp":"2023-05-14T11:41:00.449998Z","total":1,"offset":0,"contains":[{"code":"concept1355","display":null,"designation":[],"property":[{"code":"conceptclass","value":"Diagnosis"},{"code":"datatype","value":"None"}]}]}}'[0m
ok
test_public_can_find_globally ... [cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,046 [36mGET /fhir/ValueSet/?url=http://c1.com[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,046 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,047 [36mb''[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,047 [36mGET /fhir/ValueSet/?url=http://c1.com - 200[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,047 [36m{'Content-Type': 'application/json', 'num_found': '1', 'num_returned': '1', 'pages': '1', 'page_number': '1', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.010424375534057617', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/?url=http://c1.com', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '984'}[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,047 [36mb'{"resourceType":"Bundle","meta":{"lastUpdated":"2023-05-14T11:37:07.911843Z"},"type":"searchset","entry":[{"resource":{"resourceType":"ValueSet","id":"c1","version":"v1","url":"http://c1.com","title":null,"status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:00.888444Z"},"identifier":[{"system":"http://localhost:8000","value":"/orgs/org778/ValueSet/c1/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection136","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"/orgs/org778/ValueSet/source996/","version":"v2","concept":[{"code":"concept1357","display":null},{"code":"concept1358","display":null}]}],"lockedDate":null}}}],"link":[{"relation":"self","url":"http://testserver/fhir/ValueSet/?url=http%3A%2F%2Fc1.com&page=1"}]}'[0m
ok
test_public_can_find_globally_without_compose ... [cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,410 [36mGET /fhir/ValueSet/?url=http://c1.com[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,410 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,411 [36mb''[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,411 [36mGET /fhir/ValueSet/?url=http://c1.com - 200[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,411 [36m{'Content-Type': 'application/json', 'num_found': '1', 'num_returned': '1', 'pages': '1', 'page_number': '1', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.009684085845947266', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/?url=http://c1.com', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '808'}[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,411 [36mb'{"resourceType":"Bundle","meta":{"lastUpdated":"2023-05-14T11:37:07.911843Z"},"type":"searchset","entry":[{"resource":{"resourceType":"ValueSet","id":"c1","version":"v1","url":"http://c1.com","title":null,"status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:01.359393Z"},"identifier":[{"system":"http://localhost:8000","value":"/orgs/org779/ValueSet/c1/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection138","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":null}}],"link":[{"relation":"self","url":"http://testserver/fhir/ValueSet/?url=http%3A%2F%2Fc1.com&page=1"}]}'[0m
ok
test_public_can_view ... [cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,877 [36mGET /orgs/org780/ValueSet/c1/[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,877 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,878 [36mb''[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,878 [36mGET /orgs/org780/ValueSet/c1/ - 200[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,879 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, PUT, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.008318901062011719', 'X-OCL-REQUEST-URL': '/orgs/org780/ValueSet/c1/', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '763'}[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,879 [36mb'{"resourceType":"ValueSet","id":"c1","version":"v1","url":"http://c1.com","title":null,"status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:01.717539Z"},"identifier":[{"system":"http://localhost:8000","value":"/orgs/org780/ValueSet/c1/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection140","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"/orgs/org780/ValueSet/source1002/","version":"v2","concept":[{"code":"concept1361","display":null},{"code":"concept1362","display":null}]}],"lockedDate":null}}'[0m
ok
test_unable_to_represent_as_fhir ... Traceback (most recent call last):
File "/code/core/value_sets/serializers.py", line 249, in to_representation
IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
File "/code/core/common/serializers.py", line 138, in include_ocl_identifier
return IdentifierSerializer.parse_identifier(ident)
File "/code/core/common/serializers.py", line 85, in parse_identifier
raise ValidationError(
rest_framework.exceptions.ValidationError: [ErrorDetail(string='Identifier must be in a format: /{owner_type}/{owner_id}/{resourceType}/{resource_id}/, given: /invalid/uri', code='invalid')]
Failed to represent "/invalid/uri" as ValueSet
ok
test_update_with_compose ... [cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,832 [36mPUT /orgs/org782/ValueSet/c1/[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,833 [36m{'Cookie': '', 'Content-Length': '257', 'Content-Type': 'application/json', 'Authorization': '*****'}[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,833 [36mb'{"resourceType":"ValueSet","id":"c1","version":"v2","url":"http://c2.com","status":"draft","name":"collection1","description":"This is a test collection","compose":{"include":[{"system":"http://some/url","version":"v2","concept":[{"code":"concept1366"}]}]}}'[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,834 [36mPUT /orgs/org782/ValueSet/c1/ - 200[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,834 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Origin', 'Allow': 'GET, PUT, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'username339', 'X-OCL-RESPONSE-TIME': '0.20522403717041016', 'X-OCL-REQUEST-URL': '/orgs/org782/ValueSet/c1/', 'X-OCL-REQUEST-METHOD': 'PUT', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '826'}[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,834 [36mb'{"resourceType":"ValueSet","id":"c1","version":"v2","url":"http://c2.com","title":"collection1","status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:02.740763Z"},"identifier":[{"system":"http://localhost:8000","value":"/orgs/org782/ValueSet/c1/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection1","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"/orgs/org782/ValueSet/source1008/","version":"v2","concept":[{"code":"concept1365","display":null}]},{"system":"http://some/url","version":"v2","concept":[{"code":"concept1366","display":null}]}],"lockedDate":null}}'[0m
ok
test_validate_code ... [cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,310 [36mGET /orgs/org783/ValueSet/c1/$validate-code/?system=http://some/url&systemVersion=v2&code=concept1367[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,310 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,311 [36mb''[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,312 [36mGET /orgs/org783/ValueSet/c1/$validate-code/?system=http://some/url&systemVersion=v2&code=concept1367 - 200[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,312 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.02015066146850586', 'X-OCL-REQUEST-URL': '/orgs/org783/ValueSet/c1/$validate-code/?system=http://some/url&systemVersion=v2&code=concept1367', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '81'}[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,312 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":true}]}'[0m
ok
test_validate_code_globally ... [cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,798 [36mGET /fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=concept1369[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,798 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,799 [36mb''[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,799 [36mGET /fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=concept1369 - 200[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,800 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.023253679275512695', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=concept1369', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '81'}[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,800 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":true}]}'[0m
ok
test_validate_code_globally_negative ... [cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,276 [36mGET /fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=non_existing[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,276 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,277 [36mb''[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,277 [36mGET /fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=non_existing - 200[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,278 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.01818704605102539', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=non_existing', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '82'}[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,278 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":false}]}'[0m
ok
test_validate_code_globally_via_post ... [cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,925 [36mPOST /fhir/ValueSet/$validate-code/[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,926 [36m{'Cookie': '', 'Content-Length': '218', 'Content-Type': 'application/json'}[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,926 [36mb'{"resourceType":"Parameters","parameter":[{"name":"url","valueUri":"http://c1.com"},{"name":"system","valueUri":"http://some/url"},{"name":"systemVersion","valueString":"v2"},{"name":"code","valueCode":"concept1373"}]}'[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,927 [36mPOST /fhir/ValueSet/$validate-code/ - 200[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,927 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.02374100685119629', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/$validate-code/', 'X-OCL-REQUEST-METHOD': 'POST', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '81'}[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,927 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":true}]}'[0m
ok
test_validate_code_negative ... [cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,390 [36mGET /orgs/org787/ValueSet/c1/$validate-code/?system=http://non/existing&systemVersion=v2&code=concept1375[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,391 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,391 [36mb''[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,392 [36mGET /orgs/org787/ValueSet/c1/$validate-code/?system=http://non/existing&systemVersion=v2&code=concept1375 - 200[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,392 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.005105018615722656', 'X-OCL-REQUEST-URL': '/orgs/org787/ValueSet/c1/$validate-code/?system=http://non/existing&systemVersion=v2&code=concept1375', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '82'}[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,392 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":false}]}'[0m
ok
----------------------------------------------------------------------
Ran 789 tests in 203.018s
OK (skipped=2)
Preserving test database for alias 'default' ('test_postgres')...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_es_1 ...
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ... done
Removing network ocl-oclapi2-rt_default
Removing volume ocl-oclapi2-rt_postgres-data
Removing volume ocl-oclapi2-rt_es-data
test_create_with_filter_and_system ... [cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,732 [36mPOST /users/username333/ValueSet/[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,733 [36m{'Cookie': '', 'Content-Length': '266', 'Content-Type': 'application/json', 'Authorization': '*****'}[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,733 [36mb'{"resourceType":"ValueSet","id":"c2","url":"http://c2.com","status":"draft","name":"collection1","description":"This is a test collection","compose":{"include":[{"system":"http://some/url","version":"v2","filter":[{"property":"q","op":"=","value":"concept1353"}]}]}}'[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,734 [36mPOST /users/username333/ValueSet/ - 201[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,734 [36m{'Content-Type': 'application/json', 'Location': 'http://c2.com', 'Vary': 'Accept, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'username333', 'X-OCL-RESPONSE-TIME': '0.27124595642089844', 'X-OCL-REQUEST-URL': '/users/username333/ValueSet/', 'X-OCL-REQUEST-METHOD': 'POST', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '730'}[0m
[cid: 0fbba9ec-2d1d-4b60-ba86-9af9bb5cdcf8] 2023-05-14 11:40:59,734 [36mb'{"resourceType":"ValueSet","id":"c2","version":"0.1","url":"http://c2.com","title":"collection1","status":"draft","meta":{"lastUpdated":"2023-05-14T11:40:59.654624Z"},"identifier":[{"system":"http://localhost:8000","value":"/users/username333/ValueSet/c2/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection1","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"http://some/url","version":"v2","filter":[{"property":"q","op":"=","value":"concept1353"}]}],"lockedDate":null}}'[0m
ok
test_expand ... [cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,287 [36mPOST /users/username334/ValueSet/[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,288 [36m{'Cookie': '', 'Content-Length': '256', 'Content-Type': 'application/json', 'Authorization': '*****'}[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,288 [36mb'{"resourceType":"ValueSet","id":"c2","url":"http://c2.com","status":"draft","version":"1","name":"collection1","description":"This is a test collection","compose":{"include":[{"system":"http://some/url","version":"v2","concept":[{"code":"concept1355"}]}]}}'[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,289 [36mPOST /users/username334/ValueSet/ - 201[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,289 [36m{'Content-Type': 'application/json', 'Location': 'http://c2.com', 'Vary': 'Accept, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'username334', 'X-OCL-RESPONSE-TIME': '0.20126080513000488', 'X-OCL-REQUEST-URL': '/users/username334/ValueSet/', 'X-OCL-REQUEST-METHOD': 'POST', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '719'}[0m
[cid: 9ef1dbef-cc24-43e4-a4da-f436bb24dfdf] 2023-05-14 11:41:00,290 [36mb'{"resourceType":"ValueSet","id":"c2","version":"1","url":"http://c2.com","title":"collection1","status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:00.209818Z"},"identifier":[{"system":"http://localhost:8000","value":"/users/username334/ValueSet/c2/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection1","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"http://some/url","version":"v2","concept":[{"code":"concept1355","display":null}]}],"lockedDate":null}}'[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,575 [36mPOST /users/username334/ValueSet/c2/$expand/[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,576 [36m{'Cookie': '', 'Content-Length': '89', 'Content-Type': 'application/json', 'Authorization': '*****'}[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,576 [36mb'{"resourceType":"Parameters","parameter":[{"name":"filter","valueString":"concept1355"}]}'[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,577 [36mPOST /users/username334/ValueSet/c2/$expand/ - 201[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,577 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'username334', 'X-OCL-RESPONSE-TIME': '0.14103055000305176', 'X-OCL-REQUEST-URL': '/users/username334/ValueSet/c2/$expand/', 'X-OCL-REQUEST-METHOD': 'POST', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '340'}[0m
[cid: 5f442f2f-e796-4072-8b15-5bb7f4b7ebc3] 2023-05-14 11:41:00,577 [36mb'{"resourceType":"ValueSet","id":131,"expansion":{"identifier":"/users/username334/collections/c2/1/expansions/131/","timestamp":"2023-05-14T11:41:00.449998Z","total":1,"offset":0,"contains":[{"code":"concept1355","display":null,"designation":[],"property":[{"code":"conceptclass","value":"Diagnosis"},{"code":"datatype","value":"None"}]}]}}'[0m
ok
test_public_can_find_globally ... [cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,046 [36mGET /fhir/ValueSet/?url=http://c1.com[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,046 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,047 [36mb''[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,047 [36mGET /fhir/ValueSet/?url=http://c1.com - 200[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,047 [36m{'Content-Type': 'application/json', 'num_found': '1', 'num_returned': '1', 'pages': '1', 'page_number': '1', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.010424375534057617', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/?url=http://c1.com', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '984'}[0m
[cid: 7601efa8-6099-4380-9255-898dc741ac8b] 2023-05-14 11:41:01,047 [36mb'{"resourceType":"Bundle","meta":{"lastUpdated":"2023-05-14T11:37:07.911843Z"},"type":"searchset","entry":[{"resource":{"resourceType":"ValueSet","id":"c1","version":"v1","url":"http://c1.com","title":null,"status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:00.888444Z"},"identifier":[{"system":"http://localhost:8000","value":"/orgs/org778/ValueSet/c1/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection136","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"/orgs/org778/ValueSet/source996/","version":"v2","concept":[{"code":"concept1357","display":null},{"code":"concept1358","display":null}]}],"lockedDate":null}}}],"link":[{"relation":"self","url":"http://testserver/fhir/ValueSet/?url=http%3A%2F%2Fc1.com&page=1"}]}'[0m
ok
test_public_can_find_globally_without_compose ... [cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,410 [36mGET /fhir/ValueSet/?url=http://c1.com[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,410 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,411 [36mb''[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,411 [36mGET /fhir/ValueSet/?url=http://c1.com - 200[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,411 [36m{'Content-Type': 'application/json', 'num_found': '1', 'num_returned': '1', 'pages': '1', 'page_number': '1', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.009684085845947266', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/?url=http://c1.com', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '808'}[0m
[cid: 23bcf10f-dfc8-4f1b-946e-8c21e9b9d7aa] 2023-05-14 11:41:01,411 [36mb'{"resourceType":"Bundle","meta":{"lastUpdated":"2023-05-14T11:37:07.911843Z"},"type":"searchset","entry":[{"resource":{"resourceType":"ValueSet","id":"c1","version":"v1","url":"http://c1.com","title":null,"status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:01.359393Z"},"identifier":[{"system":"http://localhost:8000","value":"/orgs/org779/ValueSet/c1/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection138","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":null}}],"link":[{"relation":"self","url":"http://testserver/fhir/ValueSet/?url=http%3A%2F%2Fc1.com&page=1"}]}'[0m
ok
test_public_can_view ... [cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,877 [36mGET /orgs/org780/ValueSet/c1/[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,877 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,878 [36mb''[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,878 [36mGET /orgs/org780/ValueSet/c1/ - 200[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,879 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, PUT, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.008318901062011719', 'X-OCL-REQUEST-URL': '/orgs/org780/ValueSet/c1/', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '763'}[0m
[cid: e20204bc-a3cc-4bc6-88a7-a2d21ac6f8da] 2023-05-14 11:41:01,879 [36mb'{"resourceType":"ValueSet","id":"c1","version":"v1","url":"http://c1.com","title":null,"status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:01.717539Z"},"identifier":[{"system":"http://localhost:8000","value":"/orgs/org780/ValueSet/c1/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection140","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"/orgs/org780/ValueSet/source1002/","version":"v2","concept":[{"code":"concept1361","display":null},{"code":"concept1362","display":null}]}],"lockedDate":null}}'[0m
ok
test_unable_to_represent_as_fhir ... Traceback (most recent call last):
File "/code/core/value_sets/serializers.py", line 249, in to_representation
IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
File "/code/core/common/serializers.py", line 138, in include_ocl_identifier
return IdentifierSerializer.parse_identifier(ident)
File "/code/core/common/serializers.py", line 85, in parse_identifier
raise ValidationError(
rest_framework.exceptions.ValidationError: [ErrorDetail(string='Identifier must be in a format: /{owner_type}/{owner_id}/{resourceType}/{resource_id}/, given: /invalid/uri', code='invalid')]
Failed to represent "/invalid/uri" as ValueSet
ok
test_update_with_compose ... [cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,832 [36mPUT /orgs/org782/ValueSet/c1/[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,833 [36m{'Cookie': '', 'Content-Length': '257', 'Content-Type': 'application/json', 'Authorization': '*****'}[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,833 [36mb'{"resourceType":"ValueSet","id":"c1","version":"v2","url":"http://c2.com","status":"draft","name":"collection1","description":"This is a test collection","compose":{"include":[{"system":"http://some/url","version":"v2","concept":[{"code":"concept1366"}]}]}}'[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,834 [36mPUT /orgs/org782/ValueSet/c1/ - 200[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,834 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Origin', 'Allow': 'GET, PUT, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'username339', 'X-OCL-RESPONSE-TIME': '0.20522403717041016', 'X-OCL-REQUEST-URL': '/orgs/org782/ValueSet/c1/', 'X-OCL-REQUEST-METHOD': 'PUT', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '826'}[0m
[cid: 0c9ff197-6f6a-4a87-af91-f00bf9805e9f] 2023-05-14 11:41:02,834 [36mb'{"resourceType":"ValueSet","id":"c1","version":"v2","url":"http://c2.com","title":"collection1","status":"draft","meta":{"lastUpdated":"2023-05-14T11:41:02.740763Z"},"identifier":[{"system":"http://localhost:8000","value":"/orgs/org782/ValueSet/c1/","type":{"text":"Accession ID","coding":[{"system":"http://hl7.org/fhir/v2/0203","code":"ACSN","display":"Accession ID"}]}}],"date":null,"contact":{},"jurisdiction":{},"name":"collection1","description":"This is a test collection","publisher":null,"purpose":null,"copyright":null,"experimental":null,"immutable":null,"text":null,"compose":{"include":[{"system":"/orgs/org782/ValueSet/source1008/","version":"v2","concept":[{"code":"concept1365","display":null}]},{"system":"http://some/url","version":"v2","concept":[{"code":"concept1366","display":null}]}],"lockedDate":null}}'[0m
ok
test_validate_code ... [cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,310 [36mGET /orgs/org783/ValueSet/c1/$validate-code/?system=http://some/url&systemVersion=v2&code=concept1367[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,310 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,311 [36mb''[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,312 [36mGET /orgs/org783/ValueSet/c1/$validate-code/?system=http://some/url&systemVersion=v2&code=concept1367 - 200[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,312 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.02015066146850586', 'X-OCL-REQUEST-URL': '/orgs/org783/ValueSet/c1/$validate-code/?system=http://some/url&systemVersion=v2&code=concept1367', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '81'}[0m
[cid: b053c7cb-eeda-416b-b0f1-683cd4d7d27f] 2023-05-14 11:41:03,312 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":true}]}'[0m
ok
test_validate_code_globally ... [cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,798 [36mGET /fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=concept1369[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,798 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,799 [36mb''[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,799 [36mGET /fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=concept1369 - 200[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,800 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.023253679275512695', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=concept1369', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '81'}[0m
[cid: 0065b3ef-f5c7-4fda-bd55-17b575659afd] 2023-05-14 11:41:03,800 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":true}]}'[0m
ok
test_validate_code_globally_negative ... [cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,276 [36mGET /fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=non_existing[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,276 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,277 [36mb''[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,277 [36mGET /fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=non_existing - 200[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,278 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.01818704605102539', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/$validate-code/?url=http://c1.com&system=http://some/url&systemVersion=v2&code=non_existing', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '82'}[0m
[cid: 2c3defae-c028-430e-8552-35998d8d56cd] 2023-05-14 11:41:04,278 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":false}]}'[0m
ok
test_validate_code_globally_via_post ... [cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,925 [36mPOST /fhir/ValueSet/$validate-code/[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,926 [36m{'Cookie': '', 'Content-Length': '218', 'Content-Type': 'application/json'}[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,926 [36mb'{"resourceType":"Parameters","parameter":[{"name":"url","valueUri":"http://c1.com"},{"name":"system","valueUri":"http://some/url"},{"name":"systemVersion","valueString":"v2"},{"name":"code","valueCode":"concept1373"}]}'[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,927 [36mPOST /fhir/ValueSet/$validate-code/ - 200[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,927 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.02374100685119629', 'X-OCL-REQUEST-URL': '/fhir/ValueSet/$validate-code/', 'X-OCL-REQUEST-METHOD': 'POST', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '81'}[0m
[cid: c02276a4-bcfb-4008-8761-fffbf6bcdf01] 2023-05-14 11:41:04,927 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":true}]}'[0m
ok
test_validate_code_negative ... [cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,390 [36mGET /orgs/org787/ValueSet/c1/$validate-code/?system=http://non/existing&systemVersion=v2&code=concept1375[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,391 [36m{'Cookie': '', 'Content-Type': 'application/octet-stream'}[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,391 [36mb''[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,392 [36mGET /orgs/org787/ValueSet/c1/$validate-code/?system=http://non/existing&systemVersion=v2&code=concept1375 - 200[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,392 [36m{'Content-Type': 'application/json', 'Vary': 'Accept, Cookie, Origin', 'Allow': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'X-OCL-API-VERSION': '2.3.26-dev', 'X-OCL-REQUEST-USER': 'AnonymousUser', 'X-OCL-RESPONSE-TIME': '0.005105018615722656', 'X-OCL-REQUEST-URL': '/orgs/org787/ValueSet/c1/$validate-code/?system=http://non/existing&systemVersion=v2&code=concept1375', 'X-OCL-REQUEST-METHOD': 'GET', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Cross-Origin-Opener-Policy': 'same-origin', 'Content-Length': '82'}[0m
[cid: 95a025a6-a0c1-4700-8476-b43a1434c708] 2023-05-14 11:41:05,392 [36mb'{"resourceType":"Parameters","parameter":[{"name":"result","valueBoolean":false}]}'[0m
ok
----------------------------------------------------------------------
Ran 789 tests in 203.018s
OK (skipped=2)
Preserving test database for alias 'default' ('test_postgres')...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_es_1 ...
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ... done
Removing network ocl-oclapi2-rt_default
Removing volume ocl-oclapi2-rt_postgres-data
Removing volume ocl-oclapi2-rt_es-data