OCL API 2
Build: #2137 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 19 minutes
- Agent
- yu.openmrs.org
- Revision
-
58966d7571ba2cd07cc7bb2ae1dc573154e5e737
58966d7571ba2cd07cc7bb2ae1dc573154e5e737 - Failing since
- #2135 (Code changes detected – )
- Fixed in
- #2139 (Manual run from the stage: Release by Sunny Aggarwal.)
Error summary
The build generated some errors. See the full build log for more details.
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m138[39m, in test_post_201
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m201[39m)
[38;5;160mAssertionError[39m: 400 != 201
======================================================================
FAIL: test_post_400 (core.integration_tests.tests_sources.SourceListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m183[39m, in test_post_400
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlist[39m(response[38;5;241m.[39mdata[38;5;241m.[39mkeys()), [[38;5;124m'[39m[38;5;124mname[39m[38;5;124m'[39m])
[38;5;160mAssertionError[39m: Lists differ: ['name', 'user'] != ['name']
First list contains 1 additional elements.
First extra element 1:
'user'
- ['name', 'user']
+ ['name']
======================================================================
FAIL: test_post_201 (core.integration_tests.tests_sources.SourceVersionListViewTest)
----------------------------------------------------------------------
[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/integration_tests/tests_sources.py"[39m, line [38;5;241m426[39m, in test_post_201
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m201[39m)
[38;5;160mAssertionError[39m: 400 != 201
======================================================================
FAIL: test_post_400 (core.integration_tests.tests_sources.SourceVersionListViewTest)
----------------------------------------------------------------------
[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/integration_tests/tests_sources.py"[39m, line [38;5;241m460[39m, in test_post_400
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mdata, {[38;5;124m'[39m[38;5;124mversion[39m[38;5;124m'[39m: [ErrorDetail(string[38;5;241m=[39m[38;5;124m'[39m[38;5;124mThis field may not be null.[39m[38;5;124m'[39m, code[38;5;241m=[39m[38;5;124m'[39m[38;5;124mnull[39m[38;5;124m'[39m)]})
[38;5;160mAssertionError[39m: {'ver[66 chars]ll')], 'organization': [ErrorDetail(string='Th[111 chars]d')]} != {'ver[66 chars]ll')]}
======================================================================
FAIL: test_post_409 (core.integration_tests.tests_sources.SourceVersionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m444[39m, in test_post_409
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m409[39m)
[38;5;160mAssertionError[39m: 400 != 409
======================================================================
FAIL: test_post_200 (core.integration_tests.tests_sources.SourceVersionsComparisonViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m1970[39m, in test_post_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'meta': {'version1': {'uri': '/orgs/org681/sources/source8[885 chars]']}}} != {'meta': {'version2': {'uri': '/orgs/org681/sources/source8[910 chars]']}}}
{'concepts': {'changed_major': {'mnemonic': ['concept2'], 'total': 1},
'changed_minor': {'mnemonic': ['concept4'], 'total': 1},
'changed_retired': {'mnemonic': ['concept3'], 'total': 1},
'changed_total': 3,
'new': {'mnemonic': ['concept6'], 'total': 1},
'removed': {'mnemonic': ['concept5'], 'total': 1},
'same_major': {'mnemonic': ['concept1'], 'total': 1},
'same_minor': 0,
'same_total': 1},
- 'mappings': {'changed_major': {'mnemonic': ['mapping2', 'mapping4'],
? ------------
+ 'mappings': {'changed_major': {'mnemonic': ['mapping2'], 'total': 1},
? +++++++++++++
+ 'changed_minor': {'mnemonic': ['mapping4'], 'total': 1},
- 'total': 2},
- 'changed_minor': 0,
'changed_retired': {'mnemonic': ['mapping3'], 'total': 1},
'changed_total': 3,
'new': {'mnemonic': ['mapping6'], 'total': 1},
'removed': {'mnemonic': ['mapping5'], 'total': 1},
'same_major': {'mnemonic': ['mapping1'], 'total': 1},
'same_minor': 0,
'same_total': 1},
'meta': {'version1': {'concepts': 5,
'mappings': 5,
'uri': '/orgs/org681/sources/source857/v1/'},
'version2': {'concepts': 4,
'mappings': 4,
'uri': '/orgs/org681/sources/source857/v2/'}}}
======================================================================
FAIL: test_post_global_registry (core.integration_tests.tests_url_registries.URLRegistriesViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_url_registries.py"[39m, line [38;5;241m43[39m, in test_post_global_registry
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'url': [ErrorDetail(string='url registry w[42 chars]e')]} != {'non_fields_error': [ErrorDetail(string='T[40 chars]d')]}
----------------------------------------------------------------------
Ran 896 tests in 1048.521s
FAILED (failures=13, errors=1)
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 [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m201[39m)
[38;5;160mAssertionError[39m: 400 != 201
======================================================================
FAIL: test_post_400 (core.integration_tests.tests_sources.SourceListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m183[39m, in test_post_400
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlist[39m(response[38;5;241m.[39mdata[38;5;241m.[39mkeys()), [[38;5;124m'[39m[38;5;124mname[39m[38;5;124m'[39m])
[38;5;160mAssertionError[39m: Lists differ: ['name', 'user'] != ['name']
First list contains 1 additional elements.
First extra element 1:
'user'
- ['name', 'user']
+ ['name']
======================================================================
FAIL: test_post_201 (core.integration_tests.tests_sources.SourceVersionListViewTest)
----------------------------------------------------------------------
[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/integration_tests/tests_sources.py"[39m, line [38;5;241m426[39m, in test_post_201
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m201[39m)
[38;5;160mAssertionError[39m: 400 != 201
======================================================================
FAIL: test_post_400 (core.integration_tests.tests_sources.SourceVersionListViewTest)
----------------------------------------------------------------------
[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/integration_tests/tests_sources.py"[39m, line [38;5;241m460[39m, in test_post_400
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mdata, {[38;5;124m'[39m[38;5;124mversion[39m[38;5;124m'[39m: [ErrorDetail(string[38;5;241m=[39m[38;5;124m'[39m[38;5;124mThis field may not be null.[39m[38;5;124m'[39m, code[38;5;241m=[39m[38;5;124m'[39m[38;5;124mnull[39m[38;5;124m'[39m)]})
[38;5;160mAssertionError[39m: {'ver[66 chars]ll')], 'organization': [ErrorDetail(string='Th[111 chars]d')]} != {'ver[66 chars]ll')]}
======================================================================
FAIL: test_post_409 (core.integration_tests.tests_sources.SourceVersionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m444[39m, in test_post_409
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mstatus_code, [38;5;241m409[39m)
[38;5;160mAssertionError[39m: 400 != 409
======================================================================
FAIL: test_post_200 (core.integration_tests.tests_sources.SourceVersionsComparisonViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m1970[39m, in test_post_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'meta': {'version1': {'uri': '/orgs/org681/sources/source8[885 chars]']}}} != {'meta': {'version2': {'uri': '/orgs/org681/sources/source8[910 chars]']}}}
{'concepts': {'changed_major': {'mnemonic': ['concept2'], 'total': 1},
'changed_minor': {'mnemonic': ['concept4'], 'total': 1},
'changed_retired': {'mnemonic': ['concept3'], 'total': 1},
'changed_total': 3,
'new': {'mnemonic': ['concept6'], 'total': 1},
'removed': {'mnemonic': ['concept5'], 'total': 1},
'same_major': {'mnemonic': ['concept1'], 'total': 1},
'same_minor': 0,
'same_total': 1},
- 'mappings': {'changed_major': {'mnemonic': ['mapping2', 'mapping4'],
? ------------
+ 'mappings': {'changed_major': {'mnemonic': ['mapping2'], 'total': 1},
? +++++++++++++
+ 'changed_minor': {'mnemonic': ['mapping4'], 'total': 1},
- 'total': 2},
- 'changed_minor': 0,
'changed_retired': {'mnemonic': ['mapping3'], 'total': 1},
'changed_total': 3,
'new': {'mnemonic': ['mapping6'], 'total': 1},
'removed': {'mnemonic': ['mapping5'], 'total': 1},
'same_major': {'mnemonic': ['mapping1'], 'total': 1},
'same_minor': 0,
'same_total': 1},
'meta': {'version1': {'concepts': 5,
'mappings': 5,
'uri': '/orgs/org681/sources/source857/v1/'},
'version2': {'concepts': 4,
'mappings': 4,
'uri': '/orgs/org681/sources/source857/v2/'}}}
======================================================================
FAIL: test_post_global_registry (core.integration_tests.tests_url_registries.URLRegistriesViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_url_registries.py"[39m, line [38;5;241m43[39m, in test_post_global_registry
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'url': [ErrorDetail(string='url registry w[42 chars]e')]} != {'non_fields_error': [ErrorDetail(string='T[40 chars]d')]}
----------------------------------------------------------------------
Ran 896 tests in 1048.521s
FAILED (failures=13, errors=1)
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