OCL API 2

Build: #2137 failed Changes by Sunny Aggarwal.

Stages & jobs

  1. Build

  2. Test

  3. Deploy for testing

    Requires a user to start manually
  4. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
22 minutes
Labels
None
Revisions
OCL API 2
58966d7571ba2cd07cc7bb2ae1dc573154e5e737 58966d7571ba2cd07cc7bb2ae1dc573154e5e737
OCL CI
6544e7ed40ead274ba8b0995efe09bb9edfd8319 6544e7ed40ead274ba8b0995efe09bb9edfd8319
Failing since
#2135 (Changes by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>)
Fixed in
#2139 (Manual run from the stage: Release by Sunny Aggarwal.)
No failed test found. A possible compilation error occurred.

Responsible

This build has been failing since #2135
No one has taken responsibility

Code commits

OCL API 2
Author Commit Message Commit date
Sunny Aggarwal. Sunny Aggarwal. 58966d7571ba2cd07cc7bb2ae1dc573154e5e737 58966d7571ba2cd07cc7bb2ae1dc573154e5e737 OpenConceptLab/ocl_issues#1867 | using ocldev 0.2.1 | added tests for encoded concept/mapping code checksum

Error summary for Run tests

The job generated some errors, drill down into the full build log for more details.

  File "/code/core/integration_tests/tests_sources.py", line 138, in test_post_201
    self.assertEqual(response.status_code, 201)
AssertionError: 400 != 201

======================================================================
FAIL: test_post_400 (core.integration_tests.tests_sources.SourceListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_sources.py", line 183, in test_post_400
    self.assertEqual(list(response.data.keys()), ['name'])
AssertionError: 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)
----------------------------------------------------------------------
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 426, in test_post_201
    self.assertEqual(response.status_code, 201)
AssertionError: 400 != 201

======================================================================
FAIL: test_post_400 (core.integration_tests.tests_sources.SourceVersionListViewTest)
----------------------------------------------------------------------
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 460, in test_post_400
    self.assertEqual(response.data, {'version': [ErrorDetail(string='This field may not be null.', code='null')]})
AssertionError: {'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)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_sources.py", line 444, in test_post_409
    self.assertEqual(response.status_code, 409)
AssertionError: 400 != 409

======================================================================
FAIL: test_post_200 (core.integration_tests.tests_sources.SourceVersionsComparisonViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_sources.py", line 1970, in test_post_200
    self.assertEqual(
AssertionError: {'meta': {'version1': {'uri': '/orgs/org681/sources/source8[885 chars]']}}} != {'meta': {'version2': {'uri': '/orgs/org681/sources/source8[910 chars]']}}}
  {'concepts': {'changed_major': {'mnemonic': ['concept2'], 'total': 1},
                'changed_minor': {'mnemonic': ['concept4'], 'total': 1},
                'changed_retired': {'mnemonic': ['concept3'], 'total': 1},
                'changed_total': 3,
                'new': {'mnemonic': ['concept6'], 'total': 1},
                'removed': {'mnemonic': ['concept5'], 'total': 1},
                'same_major': {'mnemonic': ['concept1'], 'total': 1},
                'same_minor': 0,
                'same_total': 1},
-  'mappings': {'changed_major': {'mnemonic': ['mapping2', 'mapping4'],
?                                                        ------------

+  'mappings': {'changed_major': {'mnemonic': ['mapping2'], 'total': 1},
?                                                          +++++++++++++

+               'changed_minor': {'mnemonic': ['mapping4'], 'total': 1},
-                                 'total': 2},
-               'changed_minor': 0,
                'changed_retired': {'mnemonic': ['mapping3'], 'total': 1},
                'changed_total': 3,
                'new': {'mnemonic': ['mapping6'], 'total': 1},
                'removed': {'mnemonic': ['mapping5'], 'total': 1},
                'same_major': {'mnemonic': ['mapping1'], 'total': 1},
                'same_minor': 0,
                'same_total': 1},
   'meta': {'version1': {'concepts': 5,
                         'mappings': 5,
                         'uri': '/orgs/org681/sources/source857/v1/'},
            'version2': {'concepts': 4,
                         'mappings': 4,
                         'uri': '/orgs/org681/sources/source857/v2/'}}}

======================================================================
FAIL: test_post_global_registry (core.integration_tests.tests_url_registries.URLRegistriesViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_url_registries.py", line 43, in test_post_global_registry
    self.assertEqual(
AssertionError: {'url': [ErrorDetail(string='url registry w[42 chars]e')]} != {'non_fields_error': [ErrorDetail(string='T[40 chars]d')]}

----------------------------------------------------------------------
Ran 896 tests in 1048.521s

FAILED (failures=13, errors=1)
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