OCL API 2

Build: #96 failed

Job: Run tests failed

Stages & jobs

  1. Build

  2. Test

  3. Deploy for testing

    Requires a user to start manually
  4. Release

    Requires a user to start manually

Job result summary

Completed
Duration
11 minutes
Agent
xiao.openmrs.org
Revision
a178366c938c99f3f545c364e065695f5f412565 a178366c938c99f3f545c364e065695f5f412565
Failing since
#94 (Code changes detected – )
Fixed in
#97 (Manual run from the stage: Deploy for testing by Sunny Aggarwal.)
No failed test found. A possible compilation error occurred.

Error summary

The build generated some errors. See the full build log for more details.

    test_public_collections ... ok
    test_public_sources ... ok
    test_reset_password_url ... ok
    test_resource_type ... ok
    test_send_reset_password_email ... ok
    test_send_verification_email ... ok
    test_set_token ... ok
    test_status ... ok
    test_update_password ... ok
    test_user ... ok
    test_user_active_inactive_should_affect_children ... ok
    test_verify ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2024-03-14 04:31:39.412981) while time zone support is active.
  warnings.warn(
ok
core.value_sets.tests.ValueSetTest
    test_can_create_empty ... ok
    test_can_create_with_compose ... ok
    test_can_update_empty ... ok
    test_create_with_filter_and_concept ... ok
    test_create_with_filter_and_system ... ok
    test_expand ... ok
    test_public_can_find_globally ... ok
    test_public_can_find_globally_without_compose ... ok
    test_public_can_view ... ok
    test_unable_to_represent_as_fhir ... Traceback (most recent call last):
  File "/code/core/value_sets/serializers.py", line 253, in to_representation
    IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
  File "/code/core/common/serializers.py", line 141, in include_ocl_identifier
    return IdentifierSerializer.parse_identifier(ident)
  File "/code/core/common/serializers.py", line 88, in parse_identifier
    raise ValidationError(
rest_framework.exceptions.ValidationError: [ErrorDetail(string='Identifier must be in a format: /{owner_type}/{owner_id}/{resourceType}/{resource_id}/, given: /invalid/uri', code='invalid')]
Failed to represent "/invalid/uri" as ValueSet
ok
    test_update_with_compose ... ok
    test_validate_code ... ok
    test_validate_code_globally ... ok
    test_validate_code_globally_negative ... ok
    test_validate_code_globally_via_post ... ok
    test_validate_code_negative ... ok
core.tasks.tests.UtilsTest
    test_wait_until_task_complete_finished ... ok
    test_wait_until_task_complete_pending ... ok

======================================================================
FAIL: test_put_202_all (core.integration_tests.tests_collections.CollectionReferencesViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1452, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/integration_tests/tests_collections.py", line 680, in test_put_202_all
    self.assertEqual(
AssertionError: {'id': '8d0b5919-de34-4c6d-95e0-594cb39ff6a5-foo[159 chars]ult'} != {'id': <ANY>, 'state': 'PENDING', 'name': 'add_r[48 chars]bar'}

======================================================================
FAIL: test_delete_202 (core.integration_tests.tests_collections.CollectionRetrieveUpdateDestroyViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1452, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/integration_tests/tests_collections.py", line 454, in test_delete_202
    self.assertEqual(
AssertionError: {'id': '5df91b90-2fa4-46c0-a700-9f99e9ec00db-use[174 chars]ult'} != {'id': <ANY>, 'queue': 'default', 'state': 'PEND[55 chars]ion'}

======================================================================
FAIL: test_post_202 (core.integration_tests.tests_sources.SourceConceptsIndexViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1452, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/integration_tests/tests_sources.py", line 1752, in test_post_202
    self.assertEqual(
AssertionError: {'id': 'ec46eaa0-32b0-45fa-a792-376f328dd29[168 chars]ing'} != {'state': 'PENDING', 'username': 'soop', 'i[59 chars]pts'}

======================================================================
FAIL: test_post_202 (core.integration_tests.tests_sources.SourceMappingsIndexViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1452, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/integration_tests/tests_sources.py", line 1727, in test_post_202
    self.assertEqual(
AssertionError: {'id': '3b0e9d70-c91c-4c2a-9c3c-5da6a8ba765[168 chars]ing'} != {'state': 'PENDING', 'username': 'soop', 'i[59 chars]ngs'}

======================================================================
FAIL: test_delete_202 (core.integration_tests.tests_sources.SourceRetrieveUpdateDestroyViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1452, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/integration_tests/tests_sources.py", line 341, in test_delete_202
    self.assertEqual(
AssertionError: {'id': '058dff92-a69c-4d5d-ad75-b8ab68014418-ocl[169 chars]ult'} != {'id': <ANY>, 'state': 'PENDING', 'queue': 'defa[54 chars]ask'}

----------------------------------------------------------------------
Ran 834 tests in 657.855s

FAILED (failures=5)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi20-rt_es_1 ...
Stopping ocl-oclapi20-rt_db_1 ...
Stopping ocl-oclapi20-rt_db_1 ... done
Stopping ocl-oclapi20-rt_es_1 ... done
Removing ocl-oclapi20-rt_api_run_6dbafc3f90ba ...
Removing ocl-oclapi20-rt_es_1                 ...
Removing ocl-oclapi20-rt_db_1                 ...
Removing ocl-oclapi20-rt_api_run_6dbafc3f90ba ... done
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