Skip to content

Add reports for originals and topleft #386

Add reports for originals and topleft

Add reports for originals and topleft #386

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 1s

Unit Test Results ✅

Tests passed successfully

Report Passed Failed Skipped Time
./target/test-reports/TEST-swiss.dasch.api.AuthenticatorLiveSpec.xml 6✅ 909ms
./target/test-reports/TEST-swiss.dasch.api.AuthenticatorMiddlewareSpec.xml 3✅ 148ms
./target/test-reports/TEST-swiss.dasch.api.ExportEndpointSpec.xml 3✅ 4s
./target/test-reports/TEST-swiss.dasch.api.ImportEndpointSpec.xml 5✅ 4s
./target/test-reports/TEST-swiss.dasch.api.ListProjectsEndpointSpec.xml 1✅ 165ms
./target/test-reports/TEST-swiss.dasch.api.MaintenanceEndpointSpec.xml 7✅ 4s
./target/test-reports/TEST-swiss.dasch.api.monitoring.HealthEndpointSpec.xml 2✅ 49ms
./target/test-reports/TEST-swiss.dasch.api.monitoring.InfoEndpointSpec.xml 1✅ 88ms
./target/test-reports/TEST-swiss.dasch.domain.AssetIdSpec.xml 3✅ 2s
./target/test-reports/TEST-swiss.dasch.domain.AssetInfoFileContentSpec.xml 1✅ 547ms
./target/test-reports/TEST-swiss.dasch.domain.FileChecksumServiceLiveSpec.xml 5✅ 902ms
./target/test-reports/TEST-swiss.dasch.domain.ImageServiceLiveSpec.xml 2✅ 585ms
./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✅ 120ms
./target/test-reports/TEST-swiss.dasch.domain.StorageServiceLiveSpec.xml 11✅ 4s
./target/test-reports/TEST-swiss.dasch.domain.ZipUtilitySpec.xml 2✅ 55ms
./target/test-reports/TEST-swiss.dasch.infrastructure.FileSystemCheckLiveSpec.xml 2✅ 155ms

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

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

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

✅ 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 token with invalid audience should fail with JwtProblem
✅ AuthenticatorLive - A valid token should be verified
✅ AuthenticatorLive - A token with invalid issuer should fail with JwtProblem

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

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

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

✅ 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 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 Content-Type header is invalid/not-present, return 400
✅ ImportEndpoint - POST on /projects/{shortcode}/import should - given the shortcode is invalid, 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 a zip, return 200
✅ ImportEndpoint - POST on /projects/{shortcode}/import should - given the Body is not a zip, will return 400

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

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

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

✅ 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/needs-originals should - should return 204 and create a report
✅ MaintenanceEndpoint - /maintenance/needs-originals should - should return 204 and create a extended report
✅ 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/create-originals - should return 204 for a project shortcode
✅ MaintenanceEndpoint - /maintenance/create-originals - should return 204 for a project shortcode and create originals for jp2 and jpx assets

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

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

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

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

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

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

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

✅ swiss.dasch.domain.AssetInfoFileContentSpec

✅ AssetInfoFileContent - parsing a file works

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

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

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

✅ swiss.dasch.domain.FileChecksumServiceLiveSpec

✅ FileChecksumService - should calculate checksum of .jp2 should not match orig
✅ FileChecksumService - should verify the checksums of an asset's derivative
✅ 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 and original

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

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

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

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

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

✅ swiss.dasch.domain.SipiCommandSpec

✅ SipiCommand - should assemble topleft command
✅ SipiCommand - should assemble query 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 load asset info file
✅ - should return temp path
✅ - should return project directory
✅ - create temp directory scoped - should create a temp directory
✅ - load and save json files - should overwrite (i.e. create new) and load a json file
✅ - create temp directory scoped - Should remove directory and content after scope
✅ - 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

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

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

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

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

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

✅ 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