OCL API 2

Build: #90 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
4 minutes
Agent
yu.openmrs.org
Revision
672d6eb77815ef0b59e116e35599db5eea282a30 672d6eb77815ef0b59e116e35599db5eea282a30
Fixed in
#92 (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.

  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 194, in call_command
    return command.execute(*args, **defaults)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py", line 102, in handle
    self.loaddata(fixture_labels)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py", line 155, in loaddata
    if self.find_fixtures(fixture_label):
  File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/loaddata.py", line 350, in find_fixtures
    raise CommandError("No fixture named '%s' found." % fixture_name)
django.core.management.base.CommandError: No fixture named 'base_entities' found.

======================================================================
FAIL: test_post_200 (core.collections.tests.tests.ExpansionConceptsIndexViewTest)
----------------------------------------------------------------------
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/collections/tests/tests.py", line 3055, in test_post_200
    self.assertEqual(
AssertionError: {'id': 'd2613fdd-6b71-4b60-a255-8f06308af5f2-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'index[167 chars]None}

======================================================================
FAIL: test_post_200 (core.collections.tests.tests.ExpansionMappingsIndexViewTest)
----------------------------------------------------------------------
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/collections/tests/tests.py", line 3091, in test_post_200
    self.assertEqual(
AssertionError: {'id': '8ca683fe-3bde-481e-bbfa-d4c7413c7414-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'index[167 chars]None}

======================================================================
FAIL: test_get_task (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/importers/tests.py", line 1174, in test_get_task
    self.assertEqual(response.status_code, 200)
AssertionError: 404 != 200

======================================================================
FAIL: test_get_without_task_id (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/importers/tests.py", line 1071, in test_get_without_task_id
    self.assertEqual(
AssertionError: Lists differ: [] != [{'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165[221 chars]one}]

Second list contains 1 additional elements.
First extra element 0:
{'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165ac6-ocladmin~priority', 'state': 'SUCCESS', 'name': 'core.common.tasks.bulk_import', 'queue': 'priority', 'username': 'ocladmin', 'created_at': <ANY>, 'started_at': None, 'finished_at': None, 'runtime': None, 'summary': None}

- []
+ [{'created_at': <ANY>,
+   'finished_at': None,
+   'id': 'a6e8902a-fbd8-4bf7-8103-cc89e2165ac6-ocladmin~priority',
+   'name': 'core.common.tasks.bulk_import',
+   'queue': 'priority',
+   'runtime': None,
+   'started_at': None,
+   'state': 'SUCCESS',
+   'summary': None,
+   'username': 'ocladmin'}]

======================================================================
FAIL: test_post_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
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/importers/tests.py", line 1237, in test_post_202
    self.assertEqual(
AssertionError: {'id': '93b590c0-cc3e-4c33-bff5-95f4174a408c-ocl[267 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[168 chars]None}

======================================================================
FAIL: test_post_inline_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
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/importers/tests.py", line 1404, in test_post_inline_202
    self.assertEqual(response.data, {
AssertionError: {'id': '249eafed-21cc-4d94-8c7c-f1b158872a75-ocl[258 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[159 chars]None}

======================================================================
FAIL: test_post_inline_parallel_202 (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
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/importers/tests.py", line 1373, in test_post_inline_parallel_202
    self.assertEqual(response.data, {
AssertionError: {'id': 'be984d3b-338c-45f1-8db9-31225593dec4-ocl[267 chars]: []} != {'id': <ANY>, 'state': 'PENDING', 'name': 'bulk_[168 chars]None}

----------------------------------------------------------------------
Ran 423 tests in 162.240s

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