OCL API 2

Build: #86 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
4f9fa95c1e4b9d1c070d4ee7bcfa75c8fd7b65f6 4f9fa95c1e4b9d1c070d4ee7bcfa75c8fd7b65f6
Fixed in
#89 (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/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 "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/generics.py", line 208, in get
    return self.retrieve(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/mixins.py", line 54, in retrieve
    instance = self.get_object()
  File "/code/core/collections/views.py", line 258, in get_object
    truthy = get_truthy_values()
NameError: name 'get_truthy_values' is not defined

======================================================================
ERROR: test_update_with_compose (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/value_sets/tests.py", line 272, in test_update_with_compose
    response = self.client.put(
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 304, in put
    response = super().put(
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 214, in put
    return self.generic('PUT', 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 "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/code/core/common/mixins.py", line 393, in put
    return self.update(request)
  File "/code/core/common/mixins.py", line 399, in update
    self.object = self.get_object()
  File "/code/core/collections/views.py", line 258, in get_object
    truthy = get_truthy_values()
NameError: name 'get_truthy_values' is not defined

======================================================================
FAIL: test_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_concepts.py", line 1702, in test_search
    self.assertEqual(
AssertionError: [OrderedDict([('uuid', '4402'), ('id', 'My[1549 chars]')])] != [{'name': 'high', 'threshold': <ANY>, 'con[173 chars]: 0}]

----------------------------------------------------------------------
Ran 805 tests in 656.951s

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