OCL API 2
Build: #1689 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 12 minutes
- Agent
- yu.openmrs.org
- Revision
-
616a53b28ca970eba82c9006c98c3fc05f9de182
616a53b28ca970eba82c9006c98c3fc05f9de182 - Fixed in
- #1698 (Code changes detected)
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/views/generic/base.py"[39m, line [38;5;241m104[39m, in view
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39mdispatch(request, [38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/views.py"[39m, line [38;5;241m509[39m, in dispatch
[38;5;250m [39mresponse [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mhandle_exception(exc)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/views.py"[39m, line [38;5;241m469[39m, in handle_exception
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mraise_uncaught_exception(exc)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/views.py"[39m, line [38;5;241m480[39m, in raise_uncaught_exception
[38;5;250m [39m[38;5;28;01mraise[39;00m exc
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/views.py"[39m, line [38;5;241m506[39m, in dispatch
[38;5;250m [39mresponse [38;5;241m=[39m handler(request, [38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/generics.py"[39m, line [38;5;241m282[39m, in get
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39mretrieve(request, [38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/mixins.py"[39m, line [38;5;241m56[39m, in retrieve
[38;5;250m [39m[38;5;28;01mreturn[39;00m Response(serializer[38;5;241m.[39mdata)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py"[39m, line [38;5;241m555[39m, in data
[38;5;250m [39mret [38;5;241m=[39m [38;5;28msuper[39m()[38;5;241m.[39mdata
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py"[39m, line [38;5;241m253[39m, in data
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m_data [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mto_representation([38;5;28mself[39m[38;5;241m.[39minstance)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py"[39m, line [38;5;241m522[39m, in to_representation
[38;5;250m [39mret[field[38;5;241m.[39mfield_name] [38;5;241m=[39m field[38;5;241m.[39mto_representation(attribute)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/fields.py"[39m, line [38;5;241m1838[39m, in to_representation
[38;5;250m [39m[38;5;28;01mreturn[39;00m method(value)
File [38;5;28m"/code/core/pins/serializers.py"[39m, line [38;5;241m89[39m, in get_resource
[38;5;250m [39m[38;5;28;01mreturn[39;00m build_resource_data(obj)
File [38;5;28m"/code/core/pins/serializers.py"[39m, line [38;5;241m17[39m, in build_resource_data
[38;5;250m [39m[38;5;28;01mreturn[39;00m SourceDetailSerializer(
File [38;5;28m"/code/core/sources/serializers.py"[39m, line [38;5;241m386[39m, in __init__
[38;5;250m [39m[38;5;28msuper[39m()[38;5;241m.[39m[38;5;21m__init__[39m([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/common/serializers.py"[39m, line [38;5;241m250[39m, in __init__
[38;5;250m [39m[38;5;28msuper[39m()[38;5;241m.[39m[38;5;21m__init__[39m([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/common/serializers.py"[39m, line [38;5;241m199[39m, in __init__
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mquery_params [38;5;241m=[39m params[38;5;241m.[39mdict() [38;5;28;01mif[39;00m params [38;5;28;01melse[39;00m {}
[38;5;160mAttributeError[39m: 'dict' object has no attribute 'dict'
======================================================================
FAIL: test_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1635[39m, in test_search
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlen[39m(response[38;5;241m.[39mdata), [38;5;241m1[39m)
[38;5;160mAssertionError[39m: 2 != 1
======================================================================
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;241m126[39m, in test_post_201
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertListEqual(
[38;5;160mAssertionError[39m: Lists differ: ['aut[659 chars]l', 'name', 'owner', 'owner_type', 'owner_url'[219 chars]ite'] != ['aut[659 chars]l', 'meta', 'name', 'owner', 'owner_type', 'ow[227 chars]ite']
First differing element 33:
'name'
'meta'
Second list contains 1 additional elements.
First extra element 54:
'website'
Diff is 1107 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_put_200 (core.integration_tests.tests_sources.SourceRetrieveUpdateDestroyViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m246[39m, in test_put_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertListEqual(
[38;5;160mAssertionError[39m: Lists differ: ['aut[659 chars]l', 'name', 'owner', 'owner_type', 'owner_url'[219 chars]ite'] != ['aut[659 chars]l', 'meta', 'name', 'owner', 'owner_type', 'ow[227 chars]ite']
First differing element 33:
'name'
'meta'
Second list contains 1 additional elements.
First extra element 54:
'website'
Diff is 1107 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_get_200_verbose (core.integration_tests.tests_sources.SourceSummaryViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m1206[39m, in test_get_200_verbose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'act[36 chars]s': [], 'datatype': [], 'locale': [], 'name_type': []} != {'act[36 chars]s': [('1688785939.3256326', 2)], 'datatype': [[53 chars]: []}
{'active': 2,
- 'concept_class': [],
- 'datatype': [],
+ 'concept_class': [('1688785939.3256326', 2)],
+ 'datatype': [('1688785939.3256326', 2)],
'locale': [],
'name_type': [],
'retired': 0}
----------------------------------------------------------------------
Ran 792 tests in 647.415s
FAILED (failures=4, errors=5)
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
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39mdispatch(request, [38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/views.py"[39m, line [38;5;241m509[39m, in dispatch
[38;5;250m [39mresponse [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mhandle_exception(exc)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/views.py"[39m, line [38;5;241m469[39m, in handle_exception
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mraise_uncaught_exception(exc)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/views.py"[39m, line [38;5;241m480[39m, in raise_uncaught_exception
[38;5;250m [39m[38;5;28;01mraise[39;00m exc
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/views.py"[39m, line [38;5;241m506[39m, in dispatch
[38;5;250m [39mresponse [38;5;241m=[39m handler(request, [38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/generics.py"[39m, line [38;5;241m282[39m, in get
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39mretrieve(request, [38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/mixins.py"[39m, line [38;5;241m56[39m, in retrieve
[38;5;250m [39m[38;5;28;01mreturn[39;00m Response(serializer[38;5;241m.[39mdata)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py"[39m, line [38;5;241m555[39m, in data
[38;5;250m [39mret [38;5;241m=[39m [38;5;28msuper[39m()[38;5;241m.[39mdata
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py"[39m, line [38;5;241m253[39m, in data
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m_data [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mto_representation([38;5;28mself[39m[38;5;241m.[39minstance)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py"[39m, line [38;5;241m522[39m, in to_representation
[38;5;250m [39mret[field[38;5;241m.[39mfield_name] [38;5;241m=[39m field[38;5;241m.[39mto_representation(attribute)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/rest_framework/fields.py"[39m, line [38;5;241m1838[39m, in to_representation
[38;5;250m [39m[38;5;28;01mreturn[39;00m method(value)
File [38;5;28m"/code/core/pins/serializers.py"[39m, line [38;5;241m89[39m, in get_resource
[38;5;250m [39m[38;5;28;01mreturn[39;00m build_resource_data(obj)
File [38;5;28m"/code/core/pins/serializers.py"[39m, line [38;5;241m17[39m, in build_resource_data
[38;5;250m [39m[38;5;28;01mreturn[39;00m SourceDetailSerializer(
File [38;5;28m"/code/core/sources/serializers.py"[39m, line [38;5;241m386[39m, in __init__
[38;5;250m [39m[38;5;28msuper[39m()[38;5;241m.[39m[38;5;21m__init__[39m([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/common/serializers.py"[39m, line [38;5;241m250[39m, in __init__
[38;5;250m [39m[38;5;28msuper[39m()[38;5;241m.[39m[38;5;21m__init__[39m([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/common/serializers.py"[39m, line [38;5;241m199[39m, in __init__
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mquery_params [38;5;241m=[39m params[38;5;241m.[39mdict() [38;5;28;01mif[39;00m params [38;5;28;01melse[39;00m {}
[38;5;160mAttributeError[39m: 'dict' object has no attribute 'dict'
======================================================================
FAIL: test_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1635[39m, in test_search
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlen[39m(response[38;5;241m.[39mdata), [38;5;241m1[39m)
[38;5;160mAssertionError[39m: 2 != 1
======================================================================
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;241m126[39m, in test_post_201
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertListEqual(
[38;5;160mAssertionError[39m: Lists differ: ['aut[659 chars]l', 'name', 'owner', 'owner_type', 'owner_url'[219 chars]ite'] != ['aut[659 chars]l', 'meta', 'name', 'owner', 'owner_type', 'ow[227 chars]ite']
First differing element 33:
'name'
'meta'
Second list contains 1 additional elements.
First extra element 54:
'website'
Diff is 1107 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_put_200 (core.integration_tests.tests_sources.SourceRetrieveUpdateDestroyViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m246[39m, in test_put_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertListEqual(
[38;5;160mAssertionError[39m: Lists differ: ['aut[659 chars]l', 'name', 'owner', 'owner_type', 'owner_url'[219 chars]ite'] != ['aut[659 chars]l', 'meta', 'name', 'owner', 'owner_type', 'ow[227 chars]ite']
First differing element 33:
'name'
'meta'
Second list contains 1 additional elements.
First extra element 54:
'website'
Diff is 1107 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_get_200_verbose (core.integration_tests.tests_sources.SourceSummaryViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m1206[39m, in test_get_200_verbose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'act[36 chars]s': [], 'datatype': [], 'locale': [], 'name_type': []} != {'act[36 chars]s': [('1688785939.3256326', 2)], 'datatype': [[53 chars]: []}
{'active': 2,
- 'concept_class': [],
- 'datatype': [],
+ 'concept_class': [('1688785939.3256326', 2)],
+ 'datatype': [('1688785939.3256326', 2)],
'locale': [],
'name_type': [],
'retired': 0}
----------------------------------------------------------------------
Ran 792 tests in 647.415s
FAILED (failures=4, errors=5)
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