OCL API 2
Build: #2117 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 20 minutes
- Agent
- xindi.openmrs.org
- Revision
-
745c818998e54a0492c1f17c2dbc8fdd43e3da99
745c818998e54a0492c1f17c2dbc8fdd43e3da99 - Fixed in
- #2118 (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.
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/collections/tests/tests.py"[39m, line [38;5;241m458[39m, in test_referenced_sources_distribution
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertCountEqual(
[38;5;160mAssertionError[39m: Element counts were not equal:
First has 1, Second has 0: {'id': 'HEAD', 'version_url': '/orgs/org77/sources/source107/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'description': 'This is a test source', 'name': 'source107', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 1, 'references': 2}}
First has 1, Second has 0: {'id': 'HEAD', 'version_url': '/orgs/org76/sources/source106/', 'type': 'Source Version', 'short_code': 'source106', 'released': False, 'description': 'This is a test source', 'name': 'source106', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 1, Second has 0: {'id': 'v1', 'version_url': '/orgs/org77/sources/source107/v1/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'description': 'This is a test source', 'name': 'source108', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1: {'id': 'HEAD', 'version_url': '/orgs/org76/sources/source106/', 'type': 'Source Version', 'short_code': 'source106', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1: {'id': 'v1', 'version_url': '/orgs/org77/sources/source107/v1/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1: {'id': 'HEAD', 'version_url': '/orgs/org77/sources/source107/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 1, 'references': 2}}
======================================================================
FAIL: test_get_200 (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;241m93[39m, in test_get_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mdata[[38;5;241m0[39m], {[38;5;124m'[39m[38;5;124mid[39m[38;5;124m'[39m: source[38;5;241m.[39mmnemonic, [38;5;124m'[39m[38;5;124murl[39m[38;5;124m'[39m: source[38;5;241m.[39muri, [38;5;124m'[39m[38;5;124mtype[39m[38;5;124m'[39m: [38;5;124m'[39m[38;5;124mSource[39m[38;5;124m'[39m})
[38;5;160mAssertionError[39m: OrderedDict([('id', 'source782'), ('url',[114 chars]e')]) != {'id': 'source782', 'url': '/orgs/OCL/sou[30 chars]rce'}
======================================================================
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;241m1492[39m, in test_get_200_verbose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: Lists differ: [{'distribution': {'active': 2, 'retired': 0[745 chars]01'}] != [{'id': 'HEAD', 'version_url': '/orgs/org652[623 chars]}]}}]
First differing element 0:
{'distribution': {'active': 2, 'retired': 0[392 chars]799'}
{'id': 'HEAD', 'version_url': '/orgs/org652[331 chars]1}]}}
- [{'description': 'This is a test source',
- 'distribution': {'active': 2,
? ^^
+ [{'distribution': {'active': 2,
? ^^
'map_types': [{'active': 1,
'map_type': '1727866385.326073',
'retired': 0,
'total': 1},
{'active': 1,
'map_type': 'foobar-1727866385.326073',
'retired': 0,
'total': 1}],
'retired': 0,
'total': 2},
'id': 'HEAD',
- 'name': 'source799',
'released': False,
'short_code': '1727866385.326073',
'type': 'Source Version',
'version_url': '/orgs/org652/sources/1727866385.326073/'},
- {'description': 'This is a test source',
- 'distribution': {'active': 1,
? ^
+ {'distribution': {'active': 1,
? ^
'map_types': [{'active': 1,
'map_type': 'foobar-1727866385.326073',
'retired': 0,
'total': 1}],
'retired': 0,
'total': 1},
'id': 'HEAD',
- 'name': 'source801',
'released': False,
'short_code': 'source801',
'type': 'Source Version',
'version_url': '/orgs/org654/sources/source801/'}]
======================================================================
FAIL: test_get (core.integration_tests.tests_users.UserFollowingListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_users.py"[39m, line [38;5;241m1062[39m, in test_get
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'id': 20, 'follow_date': '2024-10-02T10:53[212 chars]low'} != {'object': {'id': 'org-followed', 'name': '[167 chars]20/'}
- {'follow_date': '2024-10-02T10:53:37.784604Z',
+ {'follow_date': <ANY>,
'id': 20,
- 'object': {'id': 'org-followed', 'name': 'Org-700', 'url': '/orgs/org-followed/', 'type': 'Organization', 'logo_url': None, 'description': None},
+ 'object': {'id': 'org-followed',
+ 'logo_url': None,
+ 'name': 'Org-700',
+ 'type': 'Organization',
+ 'url': '/orgs/org-followed/'},
'type': 'Follow',
'url': '/users/follower/following/20/'}
----------------------------------------------------------------------
Ran 886 tests in 1125.880s
FAILED (failures=4)
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;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/collections/tests/tests.py"[39m, line [38;5;241m458[39m, in test_referenced_sources_distribution
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertCountEqual(
[38;5;160mAssertionError[39m: Element counts were not equal:
First has 1, Second has 0: {'id': 'HEAD', 'version_url': '/orgs/org77/sources/source107/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'description': 'This is a test source', 'name': 'source107', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 1, 'references': 2}}
First has 1, Second has 0: {'id': 'HEAD', 'version_url': '/orgs/org76/sources/source106/', 'type': 'Source Version', 'short_code': 'source106', 'released': False, 'description': 'This is a test source', 'name': 'source106', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 1, Second has 0: {'id': 'v1', 'version_url': '/orgs/org77/sources/source107/v1/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'description': 'This is a test source', 'name': 'source108', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1: {'id': 'HEAD', 'version_url': '/orgs/org76/sources/source106/', 'type': 'Source Version', 'short_code': 'source106', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1: {'id': 'v1', 'version_url': '/orgs/org77/sources/source107/v1/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1: {'id': 'HEAD', 'version_url': '/orgs/org77/sources/source107/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 1, 'references': 2}}
======================================================================
FAIL: test_get_200 (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;241m93[39m, in test_get_200
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(response[38;5;241m.[39mdata[[38;5;241m0[39m], {[38;5;124m'[39m[38;5;124mid[39m[38;5;124m'[39m: source[38;5;241m.[39mmnemonic, [38;5;124m'[39m[38;5;124murl[39m[38;5;124m'[39m: source[38;5;241m.[39muri, [38;5;124m'[39m[38;5;124mtype[39m[38;5;124m'[39m: [38;5;124m'[39m[38;5;124mSource[39m[38;5;124m'[39m})
[38;5;160mAssertionError[39m: OrderedDict([('id', 'source782'), ('url',[114 chars]e')]) != {'id': 'source782', 'url': '/orgs/OCL/sou[30 chars]rce'}
======================================================================
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;241m1492[39m, in test_get_200_verbose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: Lists differ: [{'distribution': {'active': 2, 'retired': 0[745 chars]01'}] != [{'id': 'HEAD', 'version_url': '/orgs/org652[623 chars]}]}}]
First differing element 0:
{'distribution': {'active': 2, 'retired': 0[392 chars]799'}
{'id': 'HEAD', 'version_url': '/orgs/org652[331 chars]1}]}}
- [{'description': 'This is a test source',
- 'distribution': {'active': 2,
? ^^
+ [{'distribution': {'active': 2,
? ^^
'map_types': [{'active': 1,
'map_type': '1727866385.326073',
'retired': 0,
'total': 1},
{'active': 1,
'map_type': 'foobar-1727866385.326073',
'retired': 0,
'total': 1}],
'retired': 0,
'total': 2},
'id': 'HEAD',
- 'name': 'source799',
'released': False,
'short_code': '1727866385.326073',
'type': 'Source Version',
'version_url': '/orgs/org652/sources/1727866385.326073/'},
- {'description': 'This is a test source',
- 'distribution': {'active': 1,
? ^
+ {'distribution': {'active': 1,
? ^
'map_types': [{'active': 1,
'map_type': 'foobar-1727866385.326073',
'retired': 0,
'total': 1}],
'retired': 0,
'total': 1},
'id': 'HEAD',
- 'name': 'source801',
'released': False,
'short_code': 'source801',
'type': 'Source Version',
'version_url': '/orgs/org654/sources/source801/'}]
======================================================================
FAIL: test_get (core.integration_tests.tests_users.UserFollowingListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_users.py"[39m, line [38;5;241m1062[39m, in test_get
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'id': 20, 'follow_date': '2024-10-02T10:53[212 chars]low'} != {'object': {'id': 'org-followed', 'name': '[167 chars]20/'}
- {'follow_date': '2024-10-02T10:53:37.784604Z',
+ {'follow_date': <ANY>,
'id': 20,
- 'object': {'id': 'org-followed', 'name': 'Org-700', 'url': '/orgs/org-followed/', 'type': 'Organization', 'logo_url': None, 'description': None},
+ 'object': {'id': 'org-followed',
+ 'logo_url': None,
+ 'name': 'Org-700',
+ 'type': 'Organization',
+ 'url': '/orgs/org-followed/'},
'type': 'Follow',
'url': '/users/follower/following/20/'}
----------------------------------------------------------------------
Ran 886 tests in 1125.880s
FAILED (failures=4)
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