OCL API 2
Build: #1617 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 4 minutes
- Revision
-
56500f6f8162a4640bab344d2b668a863c39d976
56500f6f8162a4640bab344d2b668a863c39d976 - Fixed in
- #1621 (Code changes detected)
Error summary
The build generated some errors. See the full build log for more details.
test_to_dict ... ok
core.users.tests.tests.TasksTest
test_send_user_reset_password_email ... ok
test_send_user_verification_email ... ok
core.users.tests.tests.TokenAuthenticationViewTest
test_get_200 ... ok
test_get_405 ... ok
test_post ... ok
core.users.tests.tests.UserLogoViewTest
test_post_200 ... ok
core.users.tests.tests.UserProfileTest
test_auth_groups ... ok
test_create_userprofile_positive ... ok
test_deactivate ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-04-25 04:11:56.439295) while time zone support is active.
warnings.warn(
ok
test_delete ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-04-25 04:11:56.451617) while time zone support is active.
warnings.warn(
ok
test_email_verification_url ... ok
test_full_name ... ok
test_get_search_document ... ok
test_get_token ... ok
test_is_valid_auth_group ... ok
test_mark_verified ... ok
test_mnemonic ... ok
test_name ... ok
test_public_collections ... ok
test_public_sources ... ok
test_reset_password_url ... ok
test_resource_type ... ok
test_send_reset_password_email ... ok
test_send_verification_email ... ok
test_set_token ... ok
test_status ... ok
test_update_password ... ok
test_user ... ok
test_user_active_inactive_should_affect_children ... ok
test_verify ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-04-25 04:11:57.467326) while time zone support is active.
warnings.warn(
ok
core.value_sets.tests.ValueSetTest
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 ... Traceback (most recent call last):
File "/code/core/value_sets/serializers.py", line 249, in to_representation
IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
File "/code/core/common/serializers.py", line 138, in include_ocl_identifier
return IdentifierSerializer.parse_identifier(ident)
File "/code/core/common/serializers.py", line 85, in parse_identifier
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')]
Failed to represent "/invalid/uri" as ValueSet
ok
test_update_with_compose ... ok
test_validate_code ... ok
test_validate_code_globally ... ok
test_validate_code_globally_negative ... ok
test_validate_code_globally_via_post ... ok
test_validate_code_negative ... ok
======================================================================
ERROR: test_language_to_default_locale (core.common.tests.FhirHelpersTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/common/tests.py"[39m, line [38;5;241m405[39m, in test_language_to_default_locale
[38;5;250m [39mquery_set [38;5;241m=[39m translate_fhir_query(query_fields, query_params, query_set)
File [38;5;28m"/code/core/common/fhir_helpers.py"[39m, line [38;5;241m10[39m, in translate_fhir_query
[38;5;250m [39mqueryset [38;5;241m=[39m queryset[38;5;241m.[39mfilter(default_locale[38;5;241m=[39mlanguage)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/query.py"[39m, line [38;5;241m1421[39m, in filter
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39m_filter_or_exclude([38;5;28;01mFalse[39;00m, args, kwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/query.py"[39m, line [38;5;241m1439[39m, in _filter_or_exclude
[38;5;250m [39mclone[38;5;241m.[39m_filter_or_exclude_inplace(negate, args, kwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/query.py"[39m, line [38;5;241m1446[39m, in _filter_or_exclude_inplace
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m_query[38;5;241m.[39madd_q(Q([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs))
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1532[39m, in add_q
[38;5;250m [39mclause, _ [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39m_add_q(q_object, [38;5;28mself[39m[38;5;241m.[39mused_aliases)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1562[39m, in _add_q
[38;5;250m [39mchild_clause, needed_inner [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mbuild_filter(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1407[39m, in build_filter
[38;5;250m [39mlookups, parts, reffed_expression [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39msolve_lookup_type(arg)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1217[39m, in solve_lookup_type
[38;5;250m [39m_, field, _, lookup_parts [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mnames_to_path(lookup_splitted, [38;5;28mself[39m[38;5;241m.[39mget_meta())
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1709[39m, in names_to_path
[38;5;250m [39m[38;5;28;01mraise[39;00m FieldError(
[38;5;160mdjango.core.exceptions.FieldError[39m: Cannot resolve keyword 'default_locale' into field. Choices are: _counted, _index, checksums, child_concepts, child_parent, comment, concept_class, created_at, created_by, created_by_id, datatype, descriptions, expansion_set, external_id, extras, full_name, id, is_active, is_latest_version, mappings_from, mappings_to, mnemonic, name, names, parent, parent_child, parent_concepts, parent_id, public_access, referencedconcept, references, released, retired, source, sources, updated_at, updated_by, updated_by_id, uri, version, versioned_object, versioned_object_id, versions_set
----------------------------------------------------------------------
Ran 789 tests in 208.699s
FAILED (errors=1, skipped=2)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_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
core.users.tests.tests.TasksTest
test_send_user_reset_password_email ... ok
test_send_user_verification_email ... ok
core.users.tests.tests.TokenAuthenticationViewTest
test_get_200 ... ok
test_get_405 ... ok
test_post ... ok
core.users.tests.tests.UserLogoViewTest
test_post_200 ... ok
core.users.tests.tests.UserProfileTest
test_auth_groups ... ok
test_create_userprofile_positive ... ok
test_deactivate ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-04-25 04:11:56.439295) while time zone support is active.
warnings.warn(
ok
test_delete ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-04-25 04:11:56.451617) while time zone support is active.
warnings.warn(
ok
test_email_verification_url ... ok
test_full_name ... ok
test_get_search_document ... ok
test_get_token ... ok
test_is_valid_auth_group ... ok
test_mark_verified ... ok
test_mnemonic ... ok
test_name ... ok
test_public_collections ... ok
test_public_sources ... ok
test_reset_password_url ... ok
test_resource_type ... ok
test_send_reset_password_email ... ok
test_send_verification_email ... ok
test_set_token ... ok
test_status ... ok
test_update_password ... ok
test_user ... ok
test_user_active_inactive_should_affect_children ... ok
test_verify ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-04-25 04:11:57.467326) while time zone support is active.
warnings.warn(
ok
core.value_sets.tests.ValueSetTest
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 ... Traceback (most recent call last):
File "/code/core/value_sets/serializers.py", line 249, in to_representation
IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
File "/code/core/common/serializers.py", line 138, in include_ocl_identifier
return IdentifierSerializer.parse_identifier(ident)
File "/code/core/common/serializers.py", line 85, in parse_identifier
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')]
Failed to represent "/invalid/uri" as ValueSet
ok
test_update_with_compose ... ok
test_validate_code ... ok
test_validate_code_globally ... ok
test_validate_code_globally_negative ... ok
test_validate_code_globally_via_post ... ok
test_validate_code_negative ... ok
======================================================================
ERROR: test_language_to_default_locale (core.common.tests.FhirHelpersTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/common/tests.py"[39m, line [38;5;241m405[39m, in test_language_to_default_locale
[38;5;250m [39mquery_set [38;5;241m=[39m translate_fhir_query(query_fields, query_params, query_set)
File [38;5;28m"/code/core/common/fhir_helpers.py"[39m, line [38;5;241m10[39m, in translate_fhir_query
[38;5;250m [39mqueryset [38;5;241m=[39m queryset[38;5;241m.[39mfilter(default_locale[38;5;241m=[39mlanguage)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/query.py"[39m, line [38;5;241m1421[39m, in filter
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39m_filter_or_exclude([38;5;28;01mFalse[39;00m, args, kwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/query.py"[39m, line [38;5;241m1439[39m, in _filter_or_exclude
[38;5;250m [39mclone[38;5;241m.[39m_filter_or_exclude_inplace(negate, args, kwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/query.py"[39m, line [38;5;241m1446[39m, in _filter_or_exclude_inplace
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m_query[38;5;241m.[39madd_q(Q([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs))
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1532[39m, in add_q
[38;5;250m [39mclause, _ [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39m_add_q(q_object, [38;5;28mself[39m[38;5;241m.[39mused_aliases)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1562[39m, in _add_q
[38;5;250m [39mchild_clause, needed_inner [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mbuild_filter(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1407[39m, in build_filter
[38;5;250m [39mlookups, parts, reffed_expression [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39msolve_lookup_type(arg)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1217[39m, in solve_lookup_type
[38;5;250m [39m_, field, _, lookup_parts [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mnames_to_path(lookup_splitted, [38;5;28mself[39m[38;5;241m.[39mget_meta())
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/sql/query.py"[39m, line [38;5;241m1709[39m, in names_to_path
[38;5;250m [39m[38;5;28;01mraise[39;00m FieldError(
[38;5;160mdjango.core.exceptions.FieldError[39m: Cannot resolve keyword 'default_locale' into field. Choices are: _counted, _index, checksums, child_concepts, child_parent, comment, concept_class, created_at, created_by, created_by_id, datatype, descriptions, expansion_set, external_id, extras, full_name, id, is_active, is_latest_version, mappings_from, mappings_to, mnemonic, name, names, parent, parent_child, parent_concepts, parent_id, public_access, referencedconcept, references, released, retired, source, sources, updated_at, updated_by, updated_by_id, uri, version, versioned_object, versioned_object_id, versions_set
----------------------------------------------------------------------
Ran 789 tests in 208.699s
FAILED (errors=1, skipped=2)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_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