OCL API 2
Build: #2142 failed Manual run by Rafal Korytkowski
Build result summary
Details
- Completed
- Queue duration
- 1 second
- Duration
- 23 minutes
- Labels
- None
- Revisions
-
- OCL API 2
-
5179915c7ef98bc43ad45f015121036b4a5874ad
5179915c7ef98bc43ad45f015121036b4a5874ad - OCL CI
-
6544e7ed40ead274ba8b0995efe09bb9edfd8319
6544e7ed40ead274ba8b0995efe09bb9edfd8319
- Failing since
- #2141 (Changes by Rafal Korytkowski – )
- Fixed in
- #2143 (Manual run from the stage: Deploy for testing by Rafal Korytkowski)
Responsible
- Rafal Korytkowski Automatically assigned
Code commits
Author | Commit | Commit date | |
---|---|---|---|
Rafal Korytkowski |
5179915c7ef98bc43ad45f015121036b4a5874ad
|
Error summary for Run tests
The job generated some errors, drill down into the full build log for more details.
test_public_can_find_globally_without_compose ... ok
test_public_can_view ... ok
test_unable_to_represent_as_fhir ... Failed to represent "/invalid/uri" as ValueSet
Traceback (most recent call last):
File "/code/core/value_sets/serializers.py", line 254, 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')]
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_exists (core.services.storages.cloud.tests.S3Test)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/moto/core/models.py"[39m, line [38;5;241m120[39m, in wrapper
[38;5;250m [39mresult [38;5;241m=[39m func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/services/storages/cloud/tests.py"[39m, line [38;5;241m46[39m, in test_exists
[38;5;250m [39ms3[38;5;241m.[39mupload([38;5;124m'[39m[38;5;124msome/path[39m[38;5;124m'[39m, [38;5;124m'[39m[38;5;124mcontent[39m[38;5;124m'[39m) [38;5;66;03m# pylint: disable=protected-access[39;00m
File [38;5;28m"/code/core/services/storages/cloud/aws.py"[39m, line [38;5;241m153[39m, in upload
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m__get_connection()[38;5;241m.[39mupload_fileobj(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/boto3/s3/inject.py"[39m, line [38;5;241m618[39m, in upload_fileobj
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m'[39m[38;5;124mFileobj must implement read[39m[38;5;124m'[39m)
[38;5;160mValueError[39m: Fileobj must implement read
======================================================================
ERROR: test_remove (core.services.storages.cloud.tests.S3Test)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/moto/core/models.py"[39m, line [38;5;241m120[39m, in wrapper
[38;5;250m [39mresult [38;5;241m=[39m func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/services/storages/cloud/tests.py"[39m, line [38;5;241m155[39m, in test_remove
[38;5;250m [39ms3[38;5;241m.[39mupload([38;5;124m'[39m[38;5;124msome/path[39m[38;5;124m'[39m, [38;5;124m'[39m[38;5;124mcontent[39m[38;5;124m'[39m) [38;5;66;03m# pylint: disable=protected-access[39;00m
File [38;5;28m"/code/core/services/storages/cloud/aws.py"[39m, line [38;5;241m153[39m, in upload
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m__get_connection()[38;5;241m.[39mupload_fileobj(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/boto3/s3/inject.py"[39m, line [38;5;241m618[39m, in upload_fileobj
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m'[39m[38;5;124mFileobj must implement read[39m[38;5;124m'[39m)
[38;5;160mValueError[39m: Fileobj must implement read
======================================================================
ERROR: test_upload (core.services.storages.cloud.tests.S3Test)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/moto/core/models.py"[39m, line [38;5;241m120[39m, in wrapper
[38;5;250m [39mresult [38;5;241m=[39m func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/services/storages/cloud/tests.py"[39m, line [38;5;241m29[39m, in test_upload
[38;5;250m [39mS3()[38;5;241m.[39mupload([38;5;124m'[39m[38;5;124msome/path[39m[38;5;124m'[39m, [38;5;124m'[39m[38;5;124mcontent[39m[38;5;124m'[39m) [38;5;66;03m# pylint: disable=protected-access[39;00m
File [38;5;28m"/code/core/services/storages/cloud/aws.py"[39m, line [38;5;241m153[39m, in upload
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m__get_connection()[38;5;241m.[39mupload_fileobj(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/boto3/s3/inject.py"[39m, line [38;5;241m618[39m, in upload_fileobj
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m'[39m[38;5;124mFileobj must implement read[39m[38;5;124m'[39m)
[38;5;160mValueError[39m: Fileobj must implement read
======================================================================
ERROR: test_url_for (core.services.storages.cloud.tests.S3Test)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/moto/core/models.py"[39m, line [38;5;241m120[39m, in wrapper
[38;5;250m [39mresult [38;5;241m=[39m func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/services/storages/cloud/tests.py"[39m, line [38;5;241m176[39m, in test_url_for
[38;5;250m [39ms3[38;5;241m.[39mupload([38;5;124m'[39m[38;5;124msome/path[39m[38;5;124m'[39m, [38;5;124m'[39m[38;5;124mcontent[39m[38;5;124m'[39m) [38;5;66;03m# pylint: disable=protected-access[39;00m
File [38;5;28m"/code/core/services/storages/cloud/aws.py"[39m, line [38;5;241m153[39m, in upload
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m__get_connection()[38;5;241m.[39mupload_fileobj(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/boto3/s3/inject.py"[39m, line [38;5;241m618[39m, in upload_fileobj
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m'[39m[38;5;124mFileobj must implement read[39m[38;5;124m'[39m)
[38;5;160mValueError[39m: Fileobj must implement read
======================================================================
FAIL: test_get_204_head (core.integration_tests.tests_sources.SourceVersionExportViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[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/integration_tests/tests_sources.py"[39m, line [38;5;241m977[39m, in test_get_204_head
[38;5;250m [39ms3_exists_mock[38;5;241m.[39massert_called_once_with([38;5;124mf[39m[38;5;124m"[39m[38;5;124musers/username/username_source1_vHEAD.[39m[38;5;132;01m{[39;00m[38;5;28mself[39m[38;5;241m.[39mv1_updated_at[38;5;132;01m}[39;00m[38;5;124m.zip[39m[38;5;124m"[39m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m993[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39massert_called_with([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m980[39m, in assert_called_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(_error_message()) [38;5;28;01mfrom[39;00m [38;5;21;01mcause[39;00m
[38;5;160mAssertionError[39m: expected call not found.
Expected: exists('users/username/username_source1_vHEAD.2024-11-06_143316.zip')
Actual: exists('users/username/username_source1_vHEAD.2024-11-06_143315.zip')
----------------------------------------------------------------------
Ran 896 tests in 1150.001s
FAILED (failures=1, errors=4)
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
Removing volume ocl-oclapi2-rt_upload-data
test_public_can_view ... ok
test_unable_to_represent_as_fhir ... Failed to represent "/invalid/uri" as ValueSet
Traceback (most recent call last):
File "/code/core/value_sets/serializers.py", line 254, 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')]
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_exists (core.services.storages.cloud.tests.S3Test)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/moto/core/models.py"[39m, line [38;5;241m120[39m, in wrapper
[38;5;250m [39mresult [38;5;241m=[39m func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/services/storages/cloud/tests.py"[39m, line [38;5;241m46[39m, in test_exists
[38;5;250m [39ms3[38;5;241m.[39mupload([38;5;124m'[39m[38;5;124msome/path[39m[38;5;124m'[39m, [38;5;124m'[39m[38;5;124mcontent[39m[38;5;124m'[39m) [38;5;66;03m# pylint: disable=protected-access[39;00m
File [38;5;28m"/code/core/services/storages/cloud/aws.py"[39m, line [38;5;241m153[39m, in upload
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m__get_connection()[38;5;241m.[39mupload_fileobj(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/boto3/s3/inject.py"[39m, line [38;5;241m618[39m, in upload_fileobj
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m'[39m[38;5;124mFileobj must implement read[39m[38;5;124m'[39m)
[38;5;160mValueError[39m: Fileobj must implement read
======================================================================
ERROR: test_remove (core.services.storages.cloud.tests.S3Test)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/moto/core/models.py"[39m, line [38;5;241m120[39m, in wrapper
[38;5;250m [39mresult [38;5;241m=[39m func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/services/storages/cloud/tests.py"[39m, line [38;5;241m155[39m, in test_remove
[38;5;250m [39ms3[38;5;241m.[39mupload([38;5;124m'[39m[38;5;124msome/path[39m[38;5;124m'[39m, [38;5;124m'[39m[38;5;124mcontent[39m[38;5;124m'[39m) [38;5;66;03m# pylint: disable=protected-access[39;00m
File [38;5;28m"/code/core/services/storages/cloud/aws.py"[39m, line [38;5;241m153[39m, in upload
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m__get_connection()[38;5;241m.[39mupload_fileobj(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/boto3/s3/inject.py"[39m, line [38;5;241m618[39m, in upload_fileobj
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m'[39m[38;5;124mFileobj must implement read[39m[38;5;124m'[39m)
[38;5;160mValueError[39m: Fileobj must implement read
======================================================================
ERROR: test_upload (core.services.storages.cloud.tests.S3Test)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/moto/core/models.py"[39m, line [38;5;241m120[39m, in wrapper
[38;5;250m [39mresult [38;5;241m=[39m func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/services/storages/cloud/tests.py"[39m, line [38;5;241m29[39m, in test_upload
[38;5;250m [39mS3()[38;5;241m.[39mupload([38;5;124m'[39m[38;5;124msome/path[39m[38;5;124m'[39m, [38;5;124m'[39m[38;5;124mcontent[39m[38;5;124m'[39m) [38;5;66;03m# pylint: disable=protected-access[39;00m
File [38;5;28m"/code/core/services/storages/cloud/aws.py"[39m, line [38;5;241m153[39m, in upload
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m__get_connection()[38;5;241m.[39mupload_fileobj(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/boto3/s3/inject.py"[39m, line [38;5;241m618[39m, in upload_fileobj
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m'[39m[38;5;124mFileobj must implement read[39m[38;5;124m'[39m)
[38;5;160mValueError[39m: Fileobj must implement read
======================================================================
ERROR: test_url_for (core.services.storages.cloud.tests.S3Test)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/moto/core/models.py"[39m, line [38;5;241m120[39m, in wrapper
[38;5;250m [39mresult [38;5;241m=[39m func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/code/core/services/storages/cloud/tests.py"[39m, line [38;5;241m176[39m, in test_url_for
[38;5;250m [39ms3[38;5;241m.[39mupload([38;5;124m'[39m[38;5;124msome/path[39m[38;5;124m'[39m, [38;5;124m'[39m[38;5;124mcontent[39m[38;5;124m'[39m) [38;5;66;03m# pylint: disable=protected-access[39;00m
File [38;5;28m"/code/core/services/storages/cloud/aws.py"[39m, line [38;5;241m153[39m, in upload
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39m__get_connection()[38;5;241m.[39mupload_fileobj(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/boto3/s3/inject.py"[39m, line [38;5;241m618[39m, in upload_fileobj
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m'[39m[38;5;124mFileobj must implement read[39m[38;5;124m'[39m)
[38;5;160mValueError[39m: Fileobj must implement read
======================================================================
FAIL: test_get_204_head (core.integration_tests.tests_sources.SourceVersionExportViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[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/integration_tests/tests_sources.py"[39m, line [38;5;241m977[39m, in test_get_204_head
[38;5;250m [39ms3_exists_mock[38;5;241m.[39massert_called_once_with([38;5;124mf[39m[38;5;124m"[39m[38;5;124musers/username/username_source1_vHEAD.[39m[38;5;132;01m{[39;00m[38;5;28mself[39m[38;5;241m.[39mv1_updated_at[38;5;132;01m}[39;00m[38;5;124m.zip[39m[38;5;124m"[39m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m993[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39massert_called_with([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m980[39m, in assert_called_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(_error_message()) [38;5;28;01mfrom[39;00m [38;5;21;01mcause[39;00m
[38;5;160mAssertionError[39m: expected call not found.
Expected: exists('users/username/username_source1_vHEAD.2024-11-06_143316.zip')
Actual: exists('users/username/username_source1_vHEAD.2024-11-06_143315.zip')
----------------------------------------------------------------------
Ran 896 tests in 1150.001s
FAILED (failures=1, errors=4)
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
Removing volume ocl-oclapi2-rt_upload-data