OCL API 2

Build: #1479 was successful

Job: Run tests was successful

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
3 minutes
Revision
2b617352ef947d84e0e842170f898bd890b7c14a 2b617352ef947d84e0e842170f898bd890b7c14a
Successful since
#1471 ()

Error summary

The build generated some errors. See the full build log for more details.

    test_can_create_empty ... ok
    test_can_create_with_compose ... ok
    test_can_update_empty ... ok
    test_create_with_filter_and_concept ... ok
    test_create_with_filter_and_system ... ok
    test_expand ... ok
    test_public_can_find_globally ... ok
    test_public_can_find_globally_without_compose ... ok
    test_public_can_view ... ok
    test_unable_to_represent_as_fhir ... --- Logging error ---
Traceback (most recent call last):
  File "/code/core/value_sets/serializers.py", line 208, in to_representation
    IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
  File "/code/core/common/serializers.py", line 116, in include_ocl_identifier
    ident = IdentifierSerializer.convert_ocl_uri_to_fhir_url(uri, resource_type)
  File "/code/core/common/serializers.py", line 96, in convert_ocl_uri_to_fhir_url
    raise ValidationError(
rest_framework.exceptions.ValidationError: [ErrorDetail(string='Identifier must be in a format: /{owner_type}/{owner_id}/{resourceType}/{resource_id}/, given: invalid/uri', code='invalid')]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1098, in emit
    msg = self.format(record)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 942, in format
    return fmt.format(record)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 678, in format
    record.message = record.getMessage()
  File "/usr/local/lib/python3.10/logging/__init__.py", line 368, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "/usr/local/bin/coverage", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/coverage/cmdline.py", line 943, in main
    status = CoverageScript().command_line(argv)
  File "/usr/local/lib/python3.10/site-packages/coverage/cmdline.py", line 659, in command_line
    return self.do_run(options, args)
  File "/usr/local/lib/python3.10/site-packages/coverage/cmdline.py", line 830, in do_run
    runner.run()
  File "/usr/local/lib/python3.10/site-packages/coverage/execfile.py", line 199, in run
    exec(code, main_mod.__dict__)
  File "/code/manage.py", line 21, in <module>
    main()
  File "/code/manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/test.py", line 24, in run_from_argv
    super().run_from_argv(argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 402, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 448, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/test.py", line 68, in handle
    failures = test_runner.run_tests(test_labels)
  File "/usr/local/lib/python3.10/site-packages/django/test/runner.py", line 1058, in run_tests
    result = self.run_suite(suite)
  File "/usr/local/lib/python3.10/site-packages/colour_runner/django_runner.py", line 17, in run_suite
    ).run(suite)
  File "/usr/local/lib/python3.10/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/local/lib/python3.10/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/lib/python3.10/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/local/lib/python3.10/site-packages/django/test/testcases.py", line 381, in __call__
    self._setup_and_call(result)
  File "/usr/local/lib/python3.10/site-packages/django/test/testcases.py", line 416, in _setup_and_call
    super().__call__(result)
  File "/usr/local/lib/python3.10/unittest/case.py", line 650, in __call__
    return self.run(*args, **kwds)
  File "/usr/local/lib/python3.10/unittest/case.py", line 591, in run
    self._callTestMethod(testMethod)
  File "/usr/local/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
  File "/code/core/value_sets/tests.py", line 455, in test_unable_to_represent_as_fhir
    serialized = ValueSetDetailSerializer(instance=instance).data
  File "/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py", line 555, in data
    ret = super().data
  File "/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py", line 253, in data
    self._data = self.to_representation(self.instance)
  File "/code/core/value_sets/serializers.py", line 211, in to_representation
    logger.error(msg, error)
Message: 'Failed to represent "/invalid/uri" as ValueSet'
Arguments: (ValidationError('Identifier must be in a format: /{owner_type}/{owner_id}/{resourceType}/{resource_id}/, given: invalid/uri'),)
ok
    test_update_with_compose ... ok
    test_validate_code ... ok
    test_validate_code_globally ... ok
    test_validate_code_globally_negative ... ok
    test_validate_code_negative ... ok

----------------------------------------------------------------------
Ran 736 tests in 159.257s

OK (skipped=3)
Preserving test database for alias 'default' ('test_postgres')...
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