OCL API 2

Build: #1619 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
4 minutes
Revision
6224eadc987cb19c029a0451f7f31e3178de5c12 6224eadc987cb19c029a0451f7f31e3178de5c12
Failing since
#1617 (Code changes detected – )
Fixed in
#1621 (Code changes detected)
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 "/code/core/concepts/models.py", line 664, in persist_new
    concept = Concept(**data)
  File "/usr/local/lib/python3.10/site-packages/django/db/models/base.py", line 565, in __init__
    raise TypeError(
TypeError: Concept() got unexpected keyword arguments: 'name'

======================================================================
ERROR: test_csv_import_with_retired_concepts (core.importers.tests.BulkImportInlineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1417, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/importers/tests.py", line 596, in test_csv_import_with_retired_concepts
    importer.run()
  File "/code/core/importers/models.py", line 752, in run
    _result = concept_importer.delete() if action == 'delete' else concept_importer.run()
  File "/code/core/importers/models.py", line 168, in run
    return self.process()
  File "/code/core/importers/models.py", line 436, in process
    self.instance = Concept.persist_new(
  File "/code/core/concepts/models.py", line 664, in persist_new
    concept = Concept(**data)
  File "/usr/local/lib/python3.10/site-packages/django/db/models/base.py", line 565, in __init__
    raise TypeError(
TypeError: Concept() got unexpected keyword arguments: 'name'

======================================================================
ERROR: test_csv_import_with_retired_concepts_and_mappings (core.importers.tests.BulkImportInlineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1417, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/importers/tests.py", line 630, in test_csv_import_with_retired_concepts_and_mappings
    importer.run()
  File "/code/core/importers/models.py", line 752, in run
    _result = concept_importer.delete() if action == 'delete' else concept_importer.run()
  File "/code/core/importers/models.py", line 168, in run
    return self.process()
  File "/code/core/importers/models.py", line 436, in process
    self.instance = Concept.persist_new(
  File "/code/core/concepts/models.py", line 664, in persist_new
    concept = Concept(**data)
  File "/usr/local/lib/python3.10/site-packages/django/db/models/base.py", line 565, in __init__
    raise TypeError(
TypeError: Concept() got unexpected keyword arguments: 'name'

======================================================================
ERROR: test_reference_import (core.importers.tests.BulkImportInlineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1417, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/importers/tests.py", line 477, in test_reference_import
    importer.run()
  File "/code/core/importers/models.py", line 752, in run
    _result = concept_importer.delete() if action == 'delete' else concept_importer.run()
  File "/code/core/importers/models.py", line 168, in run
    return self.process()
  File "/code/core/importers/models.py", line 436, in process
    self.instance = Concept.persist_new(
  File "/code/core/concepts/models.py", line 664, in persist_new
    concept = Concept(**data)
  File "/usr/local/lib/python3.10/site-packages/django/db/models/base.py", line 565, in __init__
    raise TypeError(
TypeError: Concept() got unexpected keyword arguments: 'name'

======================================================================
ERROR: test_sample_import (core.importers.tests.BulkImportInlineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1417, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/importers/tests.py", line 522, in test_sample_import
    importer.run()
  File "/code/core/importers/models.py", line 752, in run
    _result = concept_importer.delete() if action == 'delete' else concept_importer.run()
  File "/code/core/importers/models.py", line 168, in run
    return self.process()
  File "/code/core/importers/models.py", line 436, in process
    self.instance = Concept.persist_new(
  File "/code/core/concepts/models.py", line 664, in persist_new
    concept = Concept(**data)
  File "/usr/local/lib/python3.10/site-packages/django/db/models/base.py", line 565, in __init__
    raise TypeError(
TypeError: Concept() got unexpected keyword arguments: 'name'

======================================================================
FAIL: test_post_201 (core.integration_tests.tests_concepts.ConceptCreateUpdateDestroyViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_concepts.py", line 133, in test_post_201
    self.assertEqual(response.data['name'], 'c1')
AssertionError: None != 'c1'

----------------------------------------------------------------------
Ran 789 tests in 174.783s

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