OCL API 2

Build: #1980 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
12 minutes
Agent
xindi.openmrs.org
Revision
e04e09a2ae40b2671354198a3fe12efb47986df4 e04e09a2ae40b2671354198a3fe12efb47986df4
Fixed in
#1984 (Manual run from the stage: Deploy for testing by Rafal Korytkowski)
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/test/client.py", line 891, in request
    self.check_exception(response)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 738, in check_exception
    raise exc_value
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/code/core/middlewares/middlewares.py", line 122, in __call__
    if accept_content_type.startswith('application/xml') or \
AttributeError: 'NoneType' object has no attribute 'startswith'

======================================================================
ERROR: test_validate_code_globally_negative (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/value_sets/tests.py", line 420, in test_validate_code_globally_negative
    response = self.client.get(
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 289, in get
    response = super().get(path, data=data, **extra)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 206, in get
    return self.generic('GET', path, **r)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 234, in generic
    return super().generic(
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 609, in generic
    return self.request(**r)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 286, in request
    return super().request(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 238, in request
    request = super().request(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 891, in request
    self.check_exception(response)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 738, in check_exception
    raise exc_value
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/code/core/middlewares/middlewares.py", line 122, in __call__
    if accept_content_type.startswith('application/xml') or \
AttributeError: 'NoneType' object has no attribute 'startswith'

======================================================================
ERROR: test_validate_code_globally_via_post (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/value_sets/tests.py", line 389, in test_validate_code_globally_via_post
    response = self.client.post(
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 296, in post
    response = super().post(
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 210, in post
    return self.generic('POST', path, data, content_type, **extra)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 234, in generic
    return super().generic(
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 609, in generic
    return self.request(**r)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 286, in request
    return super().request(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 238, in request
    request = super().request(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 891, in request
    self.check_exception(response)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 738, in check_exception
    raise exc_value
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/code/core/middlewares/middlewares.py", line 122, in __call__
    if accept_content_type.startswith('application/xml') or \
AttributeError: 'NoneType' object has no attribute 'startswith'

======================================================================
ERROR: test_validate_code_negative (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/value_sets/tests.py", line 344, in test_validate_code_negative
    response = self.client.get(
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 289, in get
    response = super().get(path, data=data, **extra)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 206, in get
    return self.generic('GET', path, **r)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 234, in generic
    return super().generic(
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 609, in generic
    return self.request(**r)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 286, in request
    return super().request(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 238, in request
    request = super().request(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 891, in request
    self.check_exception(response)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 738, in check_exception
    raise exc_value
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/code/core/middlewares/middlewares.py", line 122, in __call__
    if accept_content_type.startswith('application/xml') or \
AttributeError: 'NoneType' object has no attribute 'startswith'

----------------------------------------------------------------------
Ran 836 tests in 667.440s

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