Add reports for originals and topleft #384
Unit Test Results ✅
✅ ./target/test-reports/TEST-swiss.dasch.api.AuthenticatorLiveSpec.xml
6 tests were completed in 1s with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.AuthenticatorLiveSpec | 6✅ | 1s |
✅ swiss.dasch.api.AuthenticatorLiveSpec
✅ AuthenticatorLive - An invalid token should fail with JwtProblem
✅ AuthenticatorLive - A token with invalid audience 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 issuer should fail with JwtProblem
✅ ./target/test-reports/TEST-swiss.dasch.api.AuthenticatorMiddlewareSpec.xml
3 tests were completed in 180ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.AuthenticatorMiddlewareSpec | 3✅ | 180ms |
✅ 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 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 5s with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.ImportEndpointSpec | 5✅ | 5s |
✅ 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 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 121ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.ListProjectsEndpointSpec | 1✅ | 121ms |
✅ 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 2s with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.MaintenanceEndpointSpec | 4✅ | 2s |
✅ swiss.dasch.api.MaintenanceEndpointSpec
✅ MaintenanceEndpoint - /maintenance/create-originals - should return 400 for an invalid project shortcode
✅ MaintenanceEndpoint - /maintenance/create-originals - should return 204 for a 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
✅ ./target/test-reports/TEST-swiss.dasch.api.monitoring.HealthEndpointSpec.xml
2 tests were completed in 96ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.monitoring.HealthEndpointSpec | 2✅ | 96ms |
✅ 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 39ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.monitoring.InfoEndpointSpec | 1✅ | 39ms |
✅ 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 1s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.AssetInfoFileContentSpec | 1✅ | 1s |
✅ swiss.dasch.domain.AssetInfoFileContentSpec
✅ AssetInfoFileContent - parsing a file works
✅ ./target/test-reports/TEST-swiss.dasch.domain.FileChecksumServiceLiveSpec.xml
5 tests were completed in 1s with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.FileChecksumServiceLiveSpec | 5✅ | 1s |
✅ 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 1s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ImageServiceLiveSpec | 2✅ | 1s |
✅ 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 8s with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ProjectServiceSpec | 7✅ | 8s |
✅ swiss.dasch.domain.ProjectServiceSpec
✅ ProjectService - zipping a project - given it does not exist, should return None
✅ 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 - findAssetsOfProject path - should find asset infos from existing project
✅ ProjectService - findProject path - should not find not existing projects
✅ ProjectService - listAllProjects - should list all projects which contain assets in the asset directory
✅ 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 3s with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ProjectShortcodeSpec | 3✅ | 3s |
✅ 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 214ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.SipiCommandSpec | 3✅ | 214ms |
✅ 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 asset path
✅ - should return project directory
✅ - should return the path of the folder where the asset is stored
✅ - should return temp path
✅ - 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
✅ - create temp directory scoped - should create a temp directory
✅ - 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 79ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ZipUtilitySpec | 2✅ | 79ms |
✅ 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 125ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.infrastructure.FileSystemCheckLiveSpec | 2✅ | 125ms |
✅ 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