Skip to content

Update zio-prelude to 1.0.0-RC20 #396

Update zio-prelude to 1.0.0-RC20

Update zio-prelude to 1.0.0-RC20 #396

GitHub Actions / Unit Test Results succeeded Aug 18, 2023 in 0s

Unit Test Results ✅

Tests passed successfully

Report Passed Failed Skipped Time
./target/test-reports/TEST-swiss.dasch.api.AuthenticatorLiveSpec.xml 6✅ 810ms
./target/test-reports/TEST-swiss.dasch.api.AuthenticatorMiddlewareSpec.xml 3✅ 150ms
./target/test-reports/TEST-swiss.dasch.api.ExportEndpointSpec.xml 3✅ 5s
./target/test-reports/TEST-swiss.dasch.api.ImportEndpointSpec.xml 5✅ 4s
./target/test-reports/TEST-swiss.dasch.api.ListProjectsEndpointSpec.xml 1✅ 108ms
./target/test-reports/TEST-swiss.dasch.api.MaintenanceEndpointSpec.xml 7✅ 4s
./target/test-reports/TEST-swiss.dasch.api.monitoring.HealthEndpointSpec.xml 2✅ 63ms
./target/test-reports/TEST-swiss.dasch.api.monitoring.InfoEndpointSpec.xml 1✅ 32ms
./target/test-reports/TEST-swiss.dasch.domain.AssetIdSpec.xml 3✅ 2s
./target/test-reports/TEST-swiss.dasch.domain.AssetInfoFileContentSpec.xml 1✅ 294ms
./target/test-reports/TEST-swiss.dasch.domain.FileChecksumServiceLiveSpec.xml 5✅ 7s
./target/test-reports/TEST-swiss.dasch.domain.ImageServiceLiveSpec.xml 2✅ 882ms
./target/test-reports/TEST-swiss.dasch.domain.ProjectServiceSpec.xml 7✅ 7s
./target/test-reports/TEST-swiss.dasch.domain.ProjectShortcodeSpec.xml 3✅ 2s
./target/test-reports/TEST-swiss.dasch.domain.SipiCommandSpec.xml 3✅ 139ms
./target/test-reports/TEST-swiss.dasch.domain.StorageServiceLiveSpec.xml 11✅ 4s
./target/test-reports/TEST-swiss.dasch.domain.ZipUtilitySpec.xml 2✅ 53ms
./target/test-reports/TEST-swiss.dasch.infrastructure.FileSystemCheckLiveSpec.xml 2✅ 146ms

✅ ./target/test-reports/TEST-swiss.dasch.api.AuthenticatorLiveSpec.xml

6 tests were completed in 810ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.api.AuthenticatorLiveSpec 6✅ 810ms

✅ swiss.dasch.api.AuthenticatorLiveSpec

✅ AuthenticatorLive - An invalid token should fail with JwtProblem
✅ AuthenticatorLive - A token with invalid signature should fail with JwtProblem
✅ AuthenticatorLive - An expired token should fail with a JwtProblem
✅ AuthenticatorLive - A valid token should be verified
✅ AuthenticatorLive - A token with invalid audience should fail with JwtProblem
✅ AuthenticatorLive - A token with invalid issuer should fail with JwtProblem

✅ ./target/test-reports/TEST-swiss.dasch.api.AuthenticatorMiddlewareSpec.xml

3 tests were completed in 150ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.api.AuthenticatorMiddlewareSpec 3✅ 150ms

✅ swiss.dasch.api.AuthenticatorMiddlewareSpec

✅ AuthenticationMiddlewareSpec - request without auth header should be unauthorized
✅ AuthenticationMiddlewareSpec - valid token should be accepted
✅ AuthenticationMiddlewareSpec - request with invalid token should be unauthorized

✅ ./target/test-reports/TEST-swiss.dasch.api.ExportEndpointSpec.xml

3 tests were completed in 5s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.api.ExportEndpointSpec 3✅ 5s

✅ swiss.dasch.api.ExportEndpointSpec

✅ ExportEndpoint - POST on /projects/{shortcode}/export should - given the project shortcode is invalid, return 400
✅ ExportEndpoint - POST on /projects/{shortcode}/export should - given the project does not exist, return 404
✅ ExportEndpoint - POST on /projects/{shortcode}/export should - given the project is valid, return 200 with correct headers

✅ ./target/test-reports/TEST-swiss.dasch.api.ImportEndpointSpec.xml

5 tests were completed in 4s with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.api.ImportEndpointSpec 5✅ 4s

✅ swiss.dasch.api.ImportEndpointSpec

✅ ImportEndpoint - POST on /projects/{shortcode}/import should - given the shortcode is invalid, return 400
✅ ImportEndpoint - POST on /projects/{shortcode}/import should - given the Content-Type header is invalid/not-present, return 400
✅ ImportEndpoint - POST on /projects/{shortcode}/import should - given the Body is empty, return 400
✅ ImportEndpoint - POST on /projects/{shortcode}/import should - given the Body is not a zip, will return 400
✅ ImportEndpoint - POST on /projects/{shortcode}/import should - given the Body is a zip, return 200

✅ ./target/test-reports/TEST-swiss.dasch.api.ListProjectsEndpointSpec.xml

1 tests were completed in 108ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.api.ListProjectsEndpointSpec 1✅ 108ms

✅ swiss.dasch.api.ListProjectsEndpointSpec

✅ ListProjectsEndpoint - should list non-empty project in test folders

✅ ./target/test-reports/TEST-swiss.dasch.api.MaintenanceEndpointSpec.xml

7 tests were completed in 4s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.api.MaintenanceEndpointSpec 7✅ 4s

✅ swiss.dasch.api.MaintenanceEndpointSpec

✅ MaintenanceEndpoint - /maintenance/create-originals - should return 400 for an invalid project shortcode
✅ MaintenanceEndpoint - /maintenance/create-originals - should return 404 for a non-existent project
✅ MaintenanceEndpoint - /maintenance/needs-top-left-correction should - should return 204 and create a report
✅ MaintenanceEndpoint - /maintenance/needs-originals should - should return 204 and create a extended report
✅ MaintenanceEndpoint - /maintenance/needs-originals should - should return 204 and create a report
✅ MaintenanceEndpoint - /maintenance/create-originals - should return 204 for a project shortcode and create originals for jp2 and jpx assets
✅ MaintenanceEndpoint - /maintenance/create-originals - should return 204 for a project shortcode

✅ ./target/test-reports/TEST-swiss.dasch.api.monitoring.HealthEndpointSpec.xml

2 tests were completed in 63ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.api.monitoring.HealthEndpointSpec 2✅ 63ms

✅ swiss.dasch.api.monitoring.HealthEndpointSpec

✅ HealthEndpoint - when healthy should return status UP
✅ HealthEndpoint - when unhealthy should return status DOWN

✅ ./target/test-reports/TEST-swiss.dasch.api.monitoring.InfoEndpointSpec.xml

1 tests were completed in 32ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.api.monitoring.InfoEndpointSpec 1✅ 32ms

✅ swiss.dasch.api.monitoring.InfoEndpointSpec

✅ - InfoEndpoint should return 200

✅ ./target/test-reports/TEST-swiss.dasch.domain.AssetIdSpec.xml

3 tests were completed in 2s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.AssetIdSpec 3✅ 2s

✅ swiss.dasch.domain.AssetIdSpec

✅ - AssetId should not be created from an String containing invalid characters
✅ - AssetId should not be created from a String shorter than four characters
✅ - AssetId should be created from a valid string

✅ ./target/test-reports/TEST-swiss.dasch.domain.AssetInfoFileContentSpec.xml

1 tests were completed in 294ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.AssetInfoFileContentSpec 1✅ 294ms

✅ swiss.dasch.domain.AssetInfoFileContentSpec

✅ AssetInfoFileContent - parsing a file works

✅ ./target/test-reports/TEST-swiss.dasch.domain.FileChecksumServiceLiveSpec.xml

5 tests were completed in 7s with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.FileChecksumServiceLiveSpec 5✅ 7s

✅ swiss.dasch.domain.FileChecksumServiceLiveSpec

✅ FileChecksumService - should calculate checksum of .jp2 should not match orig
✅ FileChecksumService - should calculate checksum of .jp2.orig should be correct
✅ FileChecksumService - should verify the checksums of an asset's original
✅ FileChecksumService - should verify the checksums of an asset's derivative
✅ FileChecksumService - should verify the checksums of an asset's derivative and original

✅ ./target/test-reports/TEST-swiss.dasch.domain.ImageServiceLiveSpec.xml

2 tests were completed in 882ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.ImageServiceLiveSpec 2✅ 882ms

✅ swiss.dasch.domain.ImageServiceLiveSpec

✅ - not apply top left if not necessary
✅ - apply top left should apply correction, create backup and update info file

✅ ./target/test-reports/TEST-swiss.dasch.domain.ProjectServiceSpec.xml

7 tests were completed in 7s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.ProjectServiceSpec 7✅ 7s

✅ swiss.dasch.domain.ProjectServiceSpec

✅ ProjectService - findProject path - should find existing projects which contain at least one non hidden regular file
✅ ProjectService - findAssetsOfProject path - should not find non existing projects
✅ ProjectService - findProject path - should not find not existing projects
✅ ProjectService - findAssetsOfProject path - should find asset infos from existing project
✅ ProjectService - listAllProjects - should list all projects which contain assets in the asset directory
✅ ProjectService - zipping a project - given it does not exist, should return None
✅ ProjectService - zipping a project - given it does exists, should zip and return file path

✅ ./target/test-reports/TEST-swiss.dasch.domain.ProjectShortcodeSpec.xml

3 tests were completed in 2s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.ProjectShortcodeSpec 3✅ 2s

✅ swiss.dasch.domain.ProjectShortcodeSpec

✅ - ProjectShortcode should not accept invalid strings
✅ - ProjectShortcode should accept any four digit hex strings
✅ - ProjectShortcodes with different cases should be equal

✅ ./target/test-reports/TEST-swiss.dasch.domain.SipiCommandSpec.xml

3 tests were completed in 139ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.SipiCommandSpec 3✅ 139ms

✅ swiss.dasch.domain.SipiCommandSpec

✅ SipiCommand - should assemble query command
✅ SipiCommand - should assemble topleft command
✅ SipiCommand - should render format command

✅ ./target/test-reports/TEST-swiss.dasch.domain.StorageServiceLiveSpec.xml

11 tests were completed in 4s with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.StorageServiceLiveSpec 11✅ 4s

✅ swiss.dasch.domain.StorageServiceLiveSpec

✅ - should return asset path
✅ - should return the path of the folder where the asset is stored
✅ - should return temp path
✅ - should return project directory
✅ - should load asset info file
✅ - create temp directory scoped - Should remove directory and content after scope
✅ - load and save json files - should overwrite (i.e. create new) and load a json file
✅ - load and save json files - should fail to load a non existing json file
✅ - load and save json files - should overwrite existing file and load a json file
✅ - load and save json files - should fail to load a non-existing json file
✅ - create temp directory scoped - should create a temp directory

✅ ./target/test-reports/TEST-swiss.dasch.domain.ZipUtilitySpec.xml

2 tests were completed in 53ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.ZipUtilitySpec 2✅ 53ms

✅ swiss.dasch.domain.ZipUtilitySpec

✅ ZipUtility - creating the test directory should work
✅ ZipUtility - should zip/unzip a folder with a single file

✅ ./target/test-reports/TEST-swiss.dasch.infrastructure.FileSystemCheckLiveSpec.xml

2 tests were completed in 146ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.infrastructure.FileSystemCheckLiveSpec 2✅ 146ms

✅ swiss.dasch.infrastructure.FileSystemCheckLiveSpec

✅ FileSystemCheck - should fail smoke test given the expected folders do not exist
✅ FileSystemCheck - should pass smoke test given the expected folders exist