Skip to content

Update jwt-zio-json to 9.4.3 (#54) #381

Update jwt-zio-json to 9.4.3 (#54)

Update jwt-zio-json to 9.4.3 (#54) #381

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Unit Test Results succeeded Aug 4, 2023 in 0s

Unit Test Results ✅

Tests passed successfully

Report Passed Failed Skipped Time
./target/test-reports/TEST-swiss.dasch.api.AuthenticatorLiveSpec.xml 6✅ 748ms
./target/test-reports/TEST-swiss.dasch.api.AuthenticatorMiddlewareSpec.xml 3✅ 97ms
./target/test-reports/TEST-swiss.dasch.api.ExportEndpointSpec.xml 3✅ 4s
./target/test-reports/TEST-swiss.dasch.api.ImportEndpointSpec.xml 5✅ 3s
./target/test-reports/TEST-swiss.dasch.api.ListProjectsEndpointSpec.xml 1✅ 85ms
./target/test-reports/TEST-swiss.dasch.api.MaintenanceEndpointSpec.xml 4✅ 1s
./target/test-reports/TEST-swiss.dasch.api.monitoring.HealthEndpointSpec.xml 2✅ 64ms
./target/test-reports/TEST-swiss.dasch.api.monitoring.InfoEndpointSpec.xml 1✅ 23ms
./target/test-reports/TEST-swiss.dasch.domain.AssetIdSpec.xml 3✅ 1s
./target/test-reports/TEST-swiss.dasch.domain.AssetInfoFileContentSpec.xml 1✅ 258ms
./target/test-reports/TEST-swiss.dasch.domain.FileChecksumServiceLiveSpec.xml 5✅ 813ms
./target/test-reports/TEST-swiss.dasch.domain.ImageServiceLiveSpec.xml 2✅ 638ms
./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✅ 72ms
./target/test-reports/TEST-swiss.dasch.domain.StorageServiceLiveSpec.xml 11✅ 5s
./target/test-reports/TEST-swiss.dasch.domain.ZipUtilitySpec.xml 2✅ 106ms
./target/test-reports/TEST-swiss.dasch.infrastructure.FileSystemCheckLiveSpec.xml 2✅ 105ms

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

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

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

✅ swiss.dasch.api.AuthenticatorLiveSpec

✅ AuthenticatorLive - A token with invalid signature should fail with JwtProblem
✅ AuthenticatorLive - A valid token should be verified
✅ AuthenticatorLive - An expired token should fail with a JwtProblem
✅ AuthenticatorLive - An invalid token should fail with JwtProblem
✅ 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 97ms with 3 passed, 0 failed and 0 skipped.

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

✅ 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 4s with 3 passed, 0 failed and 0 skipped.

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

✅ swiss.dasch.api.ExportEndpointSpec

✅ 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 shortcode is invalid, return 400
✅ 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 3s with 5 passed, 0 failed and 0 skipped.

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

✅ 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 85ms with 1 passed, 0 failed and 0 skipped.

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

✅ swiss.dasch.api.ListProjectsEndpointSpec

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

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

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

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

✅ 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/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 64ms with 2 passed, 0 failed and 0 skipped.

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

✅ swiss.dasch.api.monitoring.HealthEndpointSpec

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

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

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

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

✅ swiss.dasch.api.monitoring.InfoEndpointSpec

✅ - InfoEndpoint should return 200

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

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

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

✅ 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 258ms with 1 passed, 0 failed and 0 skipped.

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

✅ swiss.dasch.domain.AssetInfoFileContentSpec

✅ AssetInfoFileContent - parsing a file works

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

5 tests were completed in 813ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
swiss.dasch.domain.FileChecksumServiceLiveSpec 5✅ 813ms

✅ swiss.dasch.domain.FileChecksumServiceLiveSpec

✅ FileChecksumService - should calculate checksum of .jp2.orig should be correct
✅ FileChecksumService - should calculate checksum of .jp2 should not match orig
✅ 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 638ms with 2 passed, 0 failed and 0 skipped.

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

✅ 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 - listAllProjects - should list all projects which contain assets in the asset directory
✅ ProjectService - findProject path - should not find not existing projects
✅ ProjectService - findAssetsOfProject path - should not find non existing projects
✅ ProjectService - zipping a project - given it does not exist, should return None
✅ ProjectService - findAssetsOfProject path - should find asset infos from existing project
✅ 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 72ms with 3 passed, 0 failed and 0 skipped.

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

✅ 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 5s with 11 passed, 0 failed and 0 skipped.

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

✅ swiss.dasch.domain.StorageServiceLiveSpec

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

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

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

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

✅ 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 105ms with 2 passed, 0 failed and 0 skipped.

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

✅ 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