OCL API 2
Build: #1796 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 12 minutes
- Agent
- xindi.openmrs.org
- Revision
-
23b9a223a40094b8d29fe1ccc258c6cc62188983
23b9a223a40094b8d29fe1ccc258c6cc62188983 - Fixed in
- #1798 (Manual run from the stage: Test by Sunny Aggarwal.)
Error summary
The build generated some errors. See the full build log for more details.
core.tasks.tests.TaskViewTest
test_get_200 ... ok
test_get_400 ... ok
test_get_404 ... ok
core.toggles.tests.ToggleTest
test_all ... ok
test_get ... ok
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:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-09-05 05:40:20.412190) while time zone support is active.
warnings.warn(
ok
test_delete ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-09-05 05:40:20.424234) 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:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-09-05 05:40:21.800183) 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 141, in include_ocl_identifier
return IdentifierSerializer.parse_identifier(ident)
File "/code/core/common/serializers.py", line 88, 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
core.tasks.tests.UtilsTest
test_wait_until_task_complete_finished ... ok
test_wait_until_task_complete_pending ... ok
======================================================================
ERROR: test_resources_report (core.common.tests.TaskTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/unittest/mock.py"[39m, line [38;5;241m1370[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/common/tests.py"[39m, line [38;5;241m1041[39m, in test_resources_report
[38;5;250m [39mres [38;5;241m=[39m resources_report()
File [38;5;28m"/usr/local/lib/python3.10/site-packages/celery/local.py"[39m, line [38;5;241m182[39m, in __call__
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39m_get_current_object()([38;5;241m*[39ma, [38;5;241m*[39m[38;5;241m*[39mkw)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/celery/app/task.py"[39m, line [38;5;241m411[39m, in __call__
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39mrun([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/common/tasks.py"[39m, line [38;5;241m642[39m, in resources_report
[38;5;250m [39m[38;5;28;01mwith[39;00m [38;5;28mopen[39m(file_name, [38;5;124m'[39m[38;5;124mwb[39m[38;5;124m'[39m) [38;5;28;01mas[39;00m file:
[38;5;160mPermissionError[39m: [Errno 13] Permission denied: 'ci_resource_report_2023-09-05-05-30.csv'
----------------------------------------------------------------------
Ran 798 tests in 656.540s
FAILED (errors=1)
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
Removing volume ocl-oclapi2-rt_redis-data
test_get_200 ... ok
test_get_400 ... ok
test_get_404 ... ok
core.toggles.tests.ToggleTest
test_all ... ok
test_get ... ok
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:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-09-05 05:40:20.412190) while time zone support is active.
warnings.warn(
ok
test_delete ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-09-05 05:40:20.424234) 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:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-09-05 05:40:21.800183) 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 141, in include_ocl_identifier
return IdentifierSerializer.parse_identifier(ident)
File "/code/core/common/serializers.py", line 88, 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
core.tasks.tests.UtilsTest
test_wait_until_task_complete_finished ... ok
test_wait_until_task_complete_pending ... ok
======================================================================
ERROR: test_resources_report (core.common.tests.TaskTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/unittest/mock.py"[39m, line [38;5;241m1370[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/common/tests.py"[39m, line [38;5;241m1041[39m, in test_resources_report
[38;5;250m [39mres [38;5;241m=[39m resources_report()
File [38;5;28m"/usr/local/lib/python3.10/site-packages/celery/local.py"[39m, line [38;5;241m182[39m, in __call__
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39m_get_current_object()([38;5;241m*[39ma, [38;5;241m*[39m[38;5;241m*[39mkw)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/celery/app/task.py"[39m, line [38;5;241m411[39m, in __call__
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39mrun([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/common/tasks.py"[39m, line [38;5;241m642[39m, in resources_report
[38;5;250m [39m[38;5;28;01mwith[39;00m [38;5;28mopen[39m(file_name, [38;5;124m'[39m[38;5;124mwb[39m[38;5;124m'[39m) [38;5;28;01mas[39;00m file:
[38;5;160mPermissionError[39m: [Errno 13] Permission denied: 'ci_resource_report_2023-09-05-05-30.csv'
----------------------------------------------------------------------
Ran 798 tests in 656.540s
FAILED (errors=1)
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
Removing volume ocl-oclapi2-rt_redis-data