OCL API 2
Build: #2135 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 8 minutes
- Agent
- xiao.openmrs.org
- Revision
-
eaf73bc843757c45d358d4fb28a21d27f629f48e
eaf73bc843757c45d358d4fb28a21d27f629f48e - 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.
[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_201_with_autoexpand_head_false (core.integration_tests.tests_collections.CollectionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_collections.py"[39m, line [38;5;241m264[39m, in test_post_201_with_autoexpand_head_false
[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_collections.CollectionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_collections.py"[39m, line [38;5;241m316[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;124mname[39m[38;5;124m'[39m: [ErrorDetail(string[38;5;241m=[39m[38;5;124m'[39m[38;5;124mThis field is required.[39m[38;5;124m'[39m, code[38;5;241m=[39m[38;5;124m'[39m[38;5;124mrequired[39m[38;5;124m'[39m)]})
[38;5;160mAssertionError[39m: {'nam[63 chars]ed')], 'user': [ErrorDetail(string='This field[29 chars]d')]} != {'nam[63 chars]ed')]}
======================================================================
FAIL: test_post_201 (core.integration_tests.tests_collections.CollectionVersionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_collections.py"[39m, line [38;5;241m1984[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_201_autoexpand_false (core.integration_tests.tests_collections.CollectionVersionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_collections.py"[39m, line [38;5;241m2012[39m, in test_post_201_autoexpand_false
[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_201 (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;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_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 423.456s
FAILED (failures=12)
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;160mAssertionError[39m: 400 != 201
======================================================================
FAIL: test_post_201_with_autoexpand_head_false (core.integration_tests.tests_collections.CollectionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_collections.py"[39m, line [38;5;241m264[39m, in test_post_201_with_autoexpand_head_false
[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_collections.CollectionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_collections.py"[39m, line [38;5;241m316[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;124mname[39m[38;5;124m'[39m: [ErrorDetail(string[38;5;241m=[39m[38;5;124m'[39m[38;5;124mThis field is required.[39m[38;5;124m'[39m, code[38;5;241m=[39m[38;5;124m'[39m[38;5;124mrequired[39m[38;5;124m'[39m)]})
[38;5;160mAssertionError[39m: {'nam[63 chars]ed')], 'user': [ErrorDetail(string='This field[29 chars]d')]} != {'nam[63 chars]ed')]}
======================================================================
FAIL: test_post_201 (core.integration_tests.tests_collections.CollectionVersionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_collections.py"[39m, line [38;5;241m1984[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_201_autoexpand_false (core.integration_tests.tests_collections.CollectionVersionListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_collections.py"[39m, line [38;5;241m2012[39m, in test_post_201_autoexpand_false
[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_201 (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;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_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 423.456s
FAILED (failures=12)
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