OCL API 2

Build: #1619 failed Changes by Sunny Aggarwal.

Stages & jobs

  1. Build

  2. Test

  3. Deploy for testing

    Requires a user to start manually
  4. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
4 minutes
Labels
None
Revisions
OCL API 2
6224eadc987cb19c029a0451f7f31e3178de5c12 6224eadc987cb19c029a0451f7f31e3178de5c12
OCL CI
3a5aa873674ab3c0ed904029536d426abb31bdd0 3a5aa873674ab3c0ed904029536d426abb31bdd0
Failing since
#1617 (Changes by Sunny Aggarwal.)
Fixed in
#1621 (Changes by Sunny Aggarwal.)
No failed test found. A possible compilation error occurred.

Responsible

Code commits

OCL API 2
Author Commit Message Commit date
Sunny Aggarwal. Sunny Aggarwal. 6224eadc987cb19c029a0451f7f31e3178de5c12 6224eadc987cb19c029a0451f7f31e3178de5c12 OpenConceptLab/ocl_issues#1564 | removed name from concept factory

Error summary for Run tests

The job generated some errors, drill down into 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