OCL API 2

Build: #1981 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
e194a64b53de3f7a30e08c4ce9c81863cd8b54cf
Failing since
#1980 (Changes by Rafal Korytkowski)
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.

?                                                                   ^

                                                                     'conflicting_concept_url': '/orgs/org78/sources/source99/concepts/concept77/',
                                                                     'conflicting_name': 'name21',
                                                                     'conflicting_name_url': '/orgs/org78/sources/source99/concepts/concept77/names/43/',
                                                                     'conflicting_references': ['/orgs/org79/collections/collection22/references/24/'],
                                                                     'description': 'Concept '
                                                                                    'fully '
                                                                                    'specified '
                                                                                    'name '
                                                                                    'must '
                                                                                    'be '
                                                                                    'unique '
                                                                                    'for '
                                                                                    'same '
                                                                                    'collection '
                                                                                    'and '
                                                                                    'locale.'},
-                                                                   {'conflicting_concept_id': 'concept77',
-                                                                    'conflicting_concept_name': 'name22',
?                                                                   ^

+                                                                   {'conflicting_concept_name': 'name22',
?                                                                   ^

                                                                     'conflicting_concept_url': '/orgs/org78/sources/source99/concepts/concept77/',
                                                                     'conflicting_name': 'name22',
                                                                     'conflicting_name_url': '/orgs/org78/sources/source99/concepts/concept77/names/44/',
                                                                     'conflicting_references': ['/orgs/org79/collections/collection22/references/24/'],
                                                                     'description': 'Concept '
                                                                                    'preferred '
                                                                                    'name '
                                                                                    'must '
                                                                                    'be '
                                                                                    'unique '
                                                                                    'for '
                                                                                    'same '
                                                                                    'collection '
                                                                                    'and '
                                                                                    'locale.'},
-                                                                   {'conflicting_concept_id': 'concept77',
-                                                                    'conflicting_concept_name': 'name22',
?                                                                   ^

+                                                                   {'conflicting_concept_name': 'name22',
?                                                                   ^

                                                                     'conflicting_concept_url': '/orgs/org78/sources/source99/concepts/concept77/',
                                                                     'conflicting_name': 'name21',
                                                                     'conflicting_name_url': '/orgs/org78/sources/source99/concepts/concept77/names/43/',
                                                                     'conflicting_references': ['/orgs/org79/collections/collection22/references/24/'],
                                                                     'description': 'Concept '
                                                                                    'preferred '
                                                                                    'name '
                                                                                    'must '
                                                                                    'be '
                                                                                    'unique '
                                                                                    'for '
                                                                                    'same '
                                                                                    'collection '
                                                                                    'and '
                                                                                    'locale.'}]}}

======================================================================
FAIL: test_validate_openmrs_schema_matching_name_locale (core.collections.tests.tests.CollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/collections/tests/tests.py", line 302, in test_validate_openmrs_schema_matching_name_locale
    self.assertEqual(
AssertionError: {'/or[252 chars]cept_id': 'concept80', 'conflicting_concept_na[154 chars]]}]}} != {'/or[252 chars]cept_name': 'name', 'conflicting_name_url': '/[115 chars]]}]}}
- {'/orgs/org83/sources/source102/concepts/concept80/': {'errors': [{'conflicting_concept_id': 'concept80',
?                                                                                         ^^    -- ^ ----

+ {'/orgs/org83/sources/source102/concepts/concept80/': {'errors': [{'conflicting_concept_name': 'name',
?                                                                                         ^^^^     ^^

-                                                                    'conflicting_concept_name': 'name',
                                                                     'conflicting_concept_url': '/orgs/org83/sources/source102/concepts/concept80/',
                                                                     'conflicting_name': 'name',
                                                                     'conflicting_name_url': '/orgs/org83/sources/source102/concepts/concept80/names/53/',
                                                                     'conflicting_references': [],
                                                                     'description': 'Concept '
                                                                                    'fully '
                                                                                    'specified '
                                                                                    'name '
                                                                                    'must '
                                                                                    'be '
                                                                                    'unique '
                                                                                    'for '
                                                                                    'same '
                                                                                    'collection '
                                                                                    'and '
                                                                                    'locale.'}]}}

----------------------------------------------------------------------
Ran 836 tests in 641.501s

FAILED (failures=2, 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