OCL API 2
Build: #90 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 4 minutes
- Agent
- yu.openmrs.org
- Revision
-
672d6eb77815ef0b59e116e35599db5eea282a30
672d6eb77815ef0b59e116e35599db5eea282a30 - Fixed in
- #92 (Manual run from the stage: Deploy for testing by Sunny Aggarwal.)
Error summary
The build generated some errors. See the full build log for more details.
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py"[39m, line [38;5;241m194[39m, in call_command
[38;5;250m [39m[38;5;28;01mreturn[39;00m command[38;5;241m.[39mexecute([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mdefaults)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/base.py"[39m, line [38;5;241m458[39m, in execute
[38;5;250m [39moutput [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mhandle([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39moptions)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py"[39m, line [38;5;241m102[39m, in handle
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mloaddata(fixture_labels)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py"[39m, line [38;5;241m155[39m, in loaddata
[38;5;250m [39m[38;5;28;01mif[39;00m [38;5;28mself[39m[38;5;241m.[39mfind_fixtures(fixture_label):
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py"[39m, line [38;5;241m350[39m, in find_fixtures
[38;5;250m [39m[38;5;28;01mraise[39;00m CommandError([38;5;124m"[39m[38;5;124mNo fixture named [39m[38;5;124m'[39m[38;5;132;01m%s[39;00m[38;5;124m'[39m[38;5;124m found.[39m[38;5;124m"[39m [38;5;241m%[39m fixture_name)
[38;5;160mdjango.core.management.base.CommandError[39m: No fixture named 'base_entities' found.
======================================================================
FAIL: test_post_200 (core.collections.tests.tests.ExpansionConceptsIndexViewTest)
----------------------------------------------------------------------
[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/collections/tests/tests.py"[39m, line [38;5;241m3055[39m, in test_post_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'id': 'd2613fdd-6b71-4b60-a255-8f06308af5f2-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'index[167 chars]None}
======================================================================
FAIL: test_post_200 (core.collections.tests.tests.ExpansionMappingsIndexViewTest)
----------------------------------------------------------------------
[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/collections/tests/tests.py"[39m, line [38;5;241m3091[39m, in test_post_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'id': '8ca683fe-3bde-481e-bbfa-d4c7413c7414-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'index[167 chars]None}
======================================================================
FAIL: test_get_task (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/importers/tests.py"[39m, line [38;5;241m1174[39m, in test_get_task
[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: 404 != 200
======================================================================
FAIL: test_get_without_task_id (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/importers/tests.py"[39m, line [38;5;241m1071[39m, in test_get_without_task_id
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: Lists differ: [] != [{'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165[221 chars]one}]
Second list contains 1 additional elements.
First extra element 0:
{'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165ac6-ocladmin~priority', 'state': 'SUCCESS', 'name': 'core.common.tasks.bulk_import', 'queue': 'priority', 'username': 'ocladmin', 'created_at': <ANY>, 'started_at': None, 'finished_at': None, 'runtime': None, 'summary': None}
- []
+ [{'created_at': <ANY>,
+ 'finished_at': None,
+ 'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165ac6-ocladmin~priority',
+ 'name': 'core.common.tasks.bulk_import',
+ 'queue': 'priority',
+ 'runtime': None,
+ 'started_at': None,
+ 'state': 'SUCCESS',
+ 'summary': None,
+ 'username': 'ocladmin'}]
======================================================================
FAIL: test_post_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[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/importers/tests.py"[39m, line [38;5;241m1237[39m, in test_post_202
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'id': '93b590c0-cc3e-4c33-bff5-95f4174a408c-ocl[267 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[168 chars]None}
======================================================================
FAIL: test_post_inline_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[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/importers/tests.py"[39m, line [38;5;241m1404[39m, in test_post_inline_202
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mdata, {
[38;5;160mAssertionError[39m: {'id': '249eafed-21cc-4d94-8c7c-f1b158872a75-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[159 chars]None}
======================================================================
FAIL: test_post_inline_parallel_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[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/importers/tests.py"[39m, line [38;5;241m1373[39m, in test_post_inline_parallel_202
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mdata, {
[38;5;160mAssertionError[39m: {'id': 'be984d3b-338c-45f1-8db9-31225593dec4-ocl[267 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[168 chars]None}
----------------------------------------------------------------------
Ran 423 tests in 162.240s
FAILED (failures=7, errors=155)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi20-rt_db_1 ...
Stopping ocl-oclapi20-rt_es_1 ...
Stopping ocl-oclapi20-rt_db_1 ... done
Stopping ocl-oclapi20-rt_es_1 ... done
Removing ocl-oclapi20-rt_db_1 ...
Removing ocl-oclapi20-rt_es_1 ...
Removing ocl-oclapi20-rt_es_1 ... done
Removing ocl-oclapi20-rt_db_1 ... done
Removing network ocl-oclapi20-rt_default
Removing volume ocl-oclapi20-rt_postgres-data
Removing volume ocl-oclapi20-rt_es-data
Removing volume ocl-oclapi20-rt_redis-data
[38;5;250m [39m[38;5;28;01mreturn[39;00m command[38;5;241m.[39mexecute([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mdefaults)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/base.py"[39m, line [38;5;241m458[39m, in execute
[38;5;250m [39moutput [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mhandle([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39moptions)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py"[39m, line [38;5;241m102[39m, in handle
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mloaddata(fixture_labels)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py"[39m, line [38;5;241m155[39m, in loaddata
[38;5;250m [39m[38;5;28;01mif[39;00m [38;5;28mself[39m[38;5;241m.[39mfind_fixtures(fixture_label):
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py"[39m, line [38;5;241m350[39m, in find_fixtures
[38;5;250m [39m[38;5;28;01mraise[39;00m CommandError([38;5;124m"[39m[38;5;124mNo fixture named [39m[38;5;124m'[39m[38;5;132;01m%s[39;00m[38;5;124m'[39m[38;5;124m found.[39m[38;5;124m"[39m [38;5;241m%[39m fixture_name)
[38;5;160mdjango.core.management.base.CommandError[39m: No fixture named 'base_entities' found.
======================================================================
FAIL: test_post_200 (core.collections.tests.tests.ExpansionConceptsIndexViewTest)
----------------------------------------------------------------------
[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/collections/tests/tests.py"[39m, line [38;5;241m3055[39m, in test_post_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'id': 'd2613fdd-6b71-4b60-a255-8f06308af5f2-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'index[167 chars]None}
======================================================================
FAIL: test_post_200 (core.collections.tests.tests.ExpansionMappingsIndexViewTest)
----------------------------------------------------------------------
[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/collections/tests/tests.py"[39m, line [38;5;241m3091[39m, in test_post_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'id': '8ca683fe-3bde-481e-bbfa-d4c7413c7414-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'index[167 chars]None}
======================================================================
FAIL: test_get_task (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/importers/tests.py"[39m, line [38;5;241m1174[39m, in test_get_task
[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: 404 != 200
======================================================================
FAIL: test_get_without_task_id (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/importers/tests.py"[39m, line [38;5;241m1071[39m, in test_get_without_task_id
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: Lists differ: [] != [{'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165[221 chars]one}]
Second list contains 1 additional elements.
First extra element 0:
{'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165ac6-ocladmin~priority', 'state': 'SUCCESS', 'name': 'core.common.tasks.bulk_import', 'queue': 'priority', 'username': 'ocladmin', 'created_at': <ANY>, 'started_at': None, 'finished_at': None, 'runtime': None, 'summary': None}
- []
+ [{'created_at': <ANY>,
+ 'finished_at': None,
+ 'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165ac6-ocladmin~priority',
+ 'name': 'core.common.tasks.bulk_import',
+ 'queue': 'priority',
+ 'runtime': None,
+ 'started_at': None,
+ 'state': 'SUCCESS',
+ 'summary': None,
+ 'username': 'ocladmin'}]
======================================================================
FAIL: test_post_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[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/importers/tests.py"[39m, line [38;5;241m1237[39m, in test_post_202
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'id': '93b590c0-cc3e-4c33-bff5-95f4174a408c-ocl[267 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[168 chars]None}
======================================================================
FAIL: test_post_inline_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[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/importers/tests.py"[39m, line [38;5;241m1404[39m, in test_post_inline_202
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mdata, {
[38;5;160mAssertionError[39m: {'id': '249eafed-21cc-4d94-8c7c-f1b158872a75-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[159 chars]None}
======================================================================
FAIL: test_post_inline_parallel_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
[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/importers/tests.py"[39m, line [38;5;241m1373[39m, in test_post_inline_parallel_202
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mdata, {
[38;5;160mAssertionError[39m: {'id': 'be984d3b-338c-45f1-8db9-31225593dec4-ocl[267 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[168 chars]None}
----------------------------------------------------------------------
Ran 423 tests in 162.240s
FAILED (failures=7, errors=155)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi20-rt_db_1 ...
Stopping ocl-oclapi20-rt_es_1 ...
Stopping ocl-oclapi20-rt_db_1 ... done
Stopping ocl-oclapi20-rt_es_1 ... done
Removing ocl-oclapi20-rt_db_1 ...
Removing ocl-oclapi20-rt_es_1 ...
Removing ocl-oclapi20-rt_es_1 ... done
Removing ocl-oclapi20-rt_db_1 ... done
Removing network ocl-oclapi20-rt_default
Removing volume ocl-oclapi20-rt_postgres-data
Removing volume ocl-oclapi20-rt_es-data
Removing volume ocl-oclapi20-rt_redis-data