OCL API 2
Build: #2166 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 21 minutes
- Agent
- yu.openmrs.org
- Revision
-
752fe7581664367fb7fade3b8e0b6f54d0692a7e
752fe7581664367fb7fade3b8e0b6f54d0692a7e - Fixed in
- #2167 (Manual run from the stage: Deploy for testing by Rafal Korytkowski)
Error summary
The build generated some errors. See the full build log for more details.
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m365[39m, in test_put_concept_map_with_all_new_concepts
[38;5;250m [39mresponse [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_put_concept_map_with_modified_mappings (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m445[39m, in test_put_concept_map_with_modified_mappings
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlen[39m(mappings), [38;5;241m2[39m)
[38;5;160mAssertionError[39m: 3 != 2
======================================================================
FAIL: test_put_concept_map_without_mappings (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m228[39m, in test_put_concept_map_without_mappings
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_translate_negative (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m677[39m, in test_translate_negative
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_translate_positive (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m549[39m, in test_translate_positive
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_translate_with_target (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m694[39m, in test_translate_with_target
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_translate_with_target_negative (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m750[39m, in test_translate_with_target_negative
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_can_update_empty (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/value_sets/tests.py"[39m, line [38;5;241m379[39m, in test_can_update_empty
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(resource[[38;5;124m'[39m[38;5;124mversion[39m[38;5;124m'[39m], [38;5;124m'[39m[38;5;124mv2[39m[38;5;124m'[39m)
[38;5;160mAssertionError[39m: 'Version v2 already exists for ValueSet c1.' != 'v2'
- Version v2 already exists for ValueSet c1.
+ v2
======================================================================
FAIL: test_update_with_compose (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/value_sets/tests.py"[39m, line [38;5;241m421[39m, in test_update_with_compose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(resource[[38;5;124m'[39m[38;5;124mversion[39m[38;5;124m'[39m], [38;5;124m'[39m[38;5;124mv2[39m[38;5;124m'[39m)
[38;5;160mAssertionError[39m: 'Version v2 already exists for ValueSet c1.' != 'v2'
- Version v2 already exists for ValueSet c1.
+ v2
----------------------------------------------------------------------
Ran 901 tests in 1182.066s
FAILED (failures=14)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_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
Removing volume ocl-oclapi2-rt_redis-data
Removing volume ocl-oclapi2-rt_upload-data
[38;5;250m [39mresponse [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_put_concept_map_with_modified_mappings (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m445[39m, in test_put_concept_map_with_modified_mappings
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlen[39m(mappings), [38;5;241m2[39m)
[38;5;160mAssertionError[39m: 3 != 2
======================================================================
FAIL: test_put_concept_map_without_mappings (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m228[39m, in test_put_concept_map_without_mappings
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_translate_negative (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m677[39m, in test_translate_negative
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_translate_positive (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m549[39m, in test_translate_positive
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_translate_with_target (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m694[39m, in test_translate_with_target
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_translate_with_target_negative (core.concept_maps.tests.ConceptMapTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m750[39m, in test_translate_with_target_negative
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mputConceptMap()
File [38;5;28m"/code/core/concept_maps/tests.py"[39m, line [38;5;241m671[39m, in putConceptMap
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m200[39m)
[38;5;160mAssertionError[39m: 400 != 200
======================================================================
FAIL: test_can_update_empty (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/value_sets/tests.py"[39m, line [38;5;241m379[39m, in test_can_update_empty
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(resource[[38;5;124m'[39m[38;5;124mversion[39m[38;5;124m'[39m], [38;5;124m'[39m[38;5;124mv2[39m[38;5;124m'[39m)
[38;5;160mAssertionError[39m: 'Version v2 already exists for ValueSet c1.' != 'v2'
- Version v2 already exists for ValueSet c1.
+ v2
======================================================================
FAIL: test_update_with_compose (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/value_sets/tests.py"[39m, line [38;5;241m421[39m, in test_update_with_compose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(resource[[38;5;124m'[39m[38;5;124mversion[39m[38;5;124m'[39m], [38;5;124m'[39m[38;5;124mv2[39m[38;5;124m'[39m)
[38;5;160mAssertionError[39m: 'Version v2 already exists for ValueSet c1.' != 'v2'
- Version v2 already exists for ValueSet c1.
+ v2
----------------------------------------------------------------------
Ran 901 tests in 1182.066s
FAILED (failures=14)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_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
Removing volume ocl-oclapi2-rt_redis-data
Removing volume ocl-oclapi2-rt_upload-data