Update scalafmt-core to 3.7.12 #393
Unit Test Results ✅
✅ ./target/test-reports/TEST-swiss.dasch.api.AuthenticatorLiveSpec.xml
6 tests were completed in 952ms with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.AuthenticatorLiveSpec | 6✅ | 952ms |
✅ 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 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 - valid token should be accepted
✅ AuthenticationMiddlewareSpec - request with invalid token should be unauthorized
✅ AuthenticationMiddlewareSpec - request without auth header 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 89ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.ListProjectsEndpointSpec | 1✅ | 89ms |
✅ 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 7s with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.MaintenanceEndpointSpec | 7✅ | 7s |
✅ swiss.dasch.api.MaintenanceEndpointSpec
✅ MaintenanceEndpoint - /maintenance/create-originals - should return 404 for a non-existent project
✅ 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/needs-top-left-correction should - should return 204 and create a report
✅ 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 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 205ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.monitoring.HealthEndpointSpec | 2✅ | 205ms |
✅ 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 53ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.monitoring.InfoEndpointSpec | 1✅ | 53ms |
✅ 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 300ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.AssetInfoFileContentSpec | 1✅ | 300ms |
✅ swiss.dasch.domain.AssetInfoFileContentSpec
✅ AssetInfoFileContent - parsing a file works
✅ ./target/test-reports/TEST-swiss.dasch.domain.FileChecksumServiceLiveSpec.xml
5 tests were completed in 4s with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.FileChecksumServiceLiveSpec | 5✅ | 4s |
✅ swiss.dasch.domain.FileChecksumServiceLiveSpec
✅ FileChecksumService - should verify the checksums of an asset's derivative
✅ FileChecksumService - should calculate checksum of .jp2 should not match orig
✅ FileChecksumService - should verify the checksums of an asset's original
✅ FileChecksumService - should calculate checksum of .jp2.orig should be correct
✅ 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 913ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ImageServiceLiveSpec | 2✅ | 913ms |
✅ 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 6s with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ProjectServiceSpec | 7✅ | 6s |
✅ 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 - zipping a project - given it does not exist, should return None
✅ 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 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 119ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.SipiCommandSpec | 3✅ | 119ms |
✅ 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 project directory
✅ - should return temp path
✅ - should return the path of the folder where the asset is stored
✅ - should return asset path
✅ - 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
✅ - should load asset info file
✅ - create temp directory scoped - should create a temp directory
✅ - create temp directory scoped - Should remove directory and content after scope
✅ - 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 66ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ZipUtilitySpec | 2✅ | 66ms |
✅ 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 112ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.infrastructure.FileSystemCheckLiveSpec | 2✅ | 112ms |
✅ 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