OCL API 2

Build: #2136 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
20 minutes
Agent
yu.openmrs.org
Revision
b2e4c61d0e76bfe09eb970825d89e367ebdb48a8 b2e4c61d0e76bfe09eb970825d89e367ebdb48a8
Failing since
#2135 (Code changes detected – )
Fixed in
#2139 (Manual run from the stage: Release 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.

    self.assertEqual(response.status_code, 201)
AssertionError: 400 != 201

======================================================================
FAIL: test_post_201_with_autoexpand_head_false (core.integration_tests.tests_collections.CollectionListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_collections.py", line 264, in test_post_201_with_autoexpand_head_false
    self.assertEqual(response.status_code, 201)
AssertionError: 400 != 201

======================================================================
FAIL: test_post_400 (core.integration_tests.tests_collections.CollectionListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_collections.py", line 316, in test_post_400
    self.assertEqual(response.data, {'name': [ErrorDetail(string='This field is required.', code='required')]})
AssertionError: {'nam[63 chars]ed')], 'user': [ErrorDetail(string='This field[29 chars]d')]} != {'nam[63 chars]ed')]}

======================================================================
FAIL: test_post_201 (core.integration_tests.tests_collections.CollectionVersionListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_collections.py", line 1984, in test_post_201
    self.assertEqual(response.status_code, 201)
AssertionError: 400 != 201

======================================================================
FAIL: test_post_201_autoexpand_false (core.integration_tests.tests_collections.CollectionVersionListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_collections.py", line 2012, in test_post_201_autoexpand_false
    self.assertEqual(response.status_code, 201)
AssertionError: 400 != 201

======================================================================
FAIL: test_post_201 (core.integration_tests.tests_sources.SourceListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  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_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 1141.143s

FAILED (failures=12)
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