fix: Fix argument order with --topleft (DEV-4481) (#324) #1638
152 passed, 0 failed and 0 skipped
✅ ./target/test-reports/TEST-swiss.dasch.api.AuthorizationHandlerSpec.xml
3 tests were completed in 28ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.AuthorizationHandlerSpec | 3✅ | 28ms |
✅ swiss.dasch.api.AuthorizationHandlerSpec
✅ should disable auth - should authorize anyone
✅ should handle auth - should check admin
✅ should handle auth - should authorize project read with read or admin
✅ ./target/test-reports/TEST-swiss.dasch.api.AuthServiceLiveSpec.xml
9 tests were completed in 447ms with 9 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.AuthServiceLiveSpec | 9✅ | 447ms |
✅ swiss.dasch.api.AuthServiceLiveSpec
✅ AuthServiceLive - An expired token should fail with a JwtProblem
✅ AuthServiceLive - An invalid token should fail with JwtProblem
✅ AuthServiceLive - A token with invalid signature should fail with JwtProblem
✅ AuthServiceLive - A token with invalid audience should fail with JwtProblem
✅ AuthServiceLive - Should validate contents
✅ AuthServiceLive - A valid token should be verified
✅ AuthServiceLive - Should extract AuthScope from contents
✅ AuthServiceLive - A token without subject should fail with JwtProblem
✅ AuthServiceLive - A token with invalid issuer should fail with JwtProblem
✅ ./target/test-reports/TEST-swiss.dasch.api.MaintenanceEndpointsSpec.xml
1 tests were completed in 353ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.MaintenanceEndpointsSpec | 1✅ | 353ms |
✅ swiss.dasch.api.MaintenanceEndpointsSpec
✅ MaintenanceEndpoint - /maintenance/needs-top-left-correction should - should return 204 and create a report
✅ ./target/test-reports/TEST-swiss.dasch.api.MonitoringEndpointsSpec.xml
3 tests were completed in 555ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.MonitoringEndpointsSpec | 3✅ | 555ms |
✅ swiss.dasch.api.MonitoringEndpointsSpec
✅ MonitoringEndpoints - get /info - should return 200
✅ MonitoringEndpoints - get /health - when healthy should return status UP
✅ MonitoringEndpoints - get /health - when unhealthy should return status DOWN
✅ ./target/test-reports/TEST-swiss.dasch.api.ProjectsEndpointSpec.xml
23 tests were completed in 23s with 23 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.api.ProjectsEndpointSpec | 23✅ | 23s |
✅ swiss.dasch.api.ProjectsEndpointSpec
✅ ProjectsEndpoint - POST /projects/{shortcode}/import should - given the shortcode is invalid, return 400
✅ ProjectsEndpoint - POST /projects/{shortcode}/export should, - given the project does not exist, return 404
✅ ProjectsEndpoint - POST /projects/{shortcode}/import should - given the Content-Type header is invalid, return correct error
✅ ProjectsEndpoint - POST /projects/{shortcode}/import should - given the Content-Type header is not-present, return correct error
✅ ProjectsEndpoint - /projects/<shortcode>/asset/ingest/<filename>.mp3 - should consult AuthService
✅ ProjectsEndpoint - /projects/<shortcode>/asset/<assetId> - given the project folder does not exist should return Not Found
✅ ProjectsEndpoint - POST /projects/{shortcode}/import should - given the Body is empty, return 400
✅ ProjectsEndpoint - POST /projects/{shortcode}/export should, - given the project shortcode is invalid, return 400
✅ ProjectsEndpoint - /projects/<shortcode>/asset/<assetId> - given a basic asset info file exists it should return the info
✅ ProjectsEndpoint - /projects/<shortcode>/asset/<assetId> - given a still image asset info file exists it should return the info
✅ ProjectsEndpoint - /projects/<shortcode>/asset/ingest/<filename>.mp3 - should refuse ingesting without content
✅ ProjectsEndpoint - /projects/<shortcode>/asset/<assetId> - given the project folder exists but the asset info file does not exist should return Not Found
✅ ProjectsEndpoint - /projects/<shortcode>/asset/ingest/<filename>.mp3 - should handle ingest denormalized filenames
✅ ProjectsEndpoint - /projects/<shortcode>/asset/ingest/<filename>.mp3 - should ingest successfully
✅ ProjectsEndpoint - /projects/<shortcode>/asset/<assetId> - given a moving image asset info file exists it should return the info
✅ ProjectsEndpoint - POST /projects/{shortcode}/import should - given the Body is not a zip, will return 400
✅ ProjectsEndpoint - POST /projects/{shortcode}/import should - given the Body is a zip, return 200
✅ ProjectsEndpoint with SttpStub - /projects/<shortcode>/asset/<assetId>/original - fail by no permissions
✅ ProjectsEndpoint - /projects/<shortcode>/asset/<assetId>/original - given the info file does not exist, it should return Not Found
✅ ProjectsEndpoint - /projects/<shortcode>/asset/<assetId>/original - return the original contents
✅ ProjectsEndpoint - GET /projects should list non-empty project in test folders
✅ ProjectsEndpoint - /admin/projects/{shortcode} - DELETE ./erase should delete the project folder
✅ ProjectsEndpoint - POST /projects/{shortcode}/export should, - given the project is valid, return 200 with correct headers
✅ ./target/test-reports/TEST-swiss.dasch.domain.AssetFilenameSpec.xml
4 tests were completed in 151ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.AssetFilenameSpec | 4✅ | 151ms |
✅ swiss.dasch.domain.AssetFilenameSpec
✅ - should not allow invalid filenames missing a valid extension
✅ - should not allow invalid filenames containing path traversals
✅ - should not allow invalid characters
✅ - should allow valid filenames
✅ ./target/test-reports/TEST-swiss.dasch.domain.AssetIdSpec.xml
4 tests were completed in 833ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.AssetIdSpec | 4✅ | 833ms |
✅ swiss.dasch.domain.AssetIdSpec
✅ - AssetId.makeNew should create a UUID in Base 62 encoding
✅ - 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.AssetInfoServiceSpec.xml
4 tests were completed in 1s with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.AssetInfoServiceSpec | 4✅ | 1s |
✅ swiss.dasch.domain.AssetInfoServiceSpec
✅ - findByAssetRef - parsing an info file for a other file type with complete metadata info works
✅ - findByAssetRef - parsing an info file for a still image with complete metadata info works
✅ - findByAssetRef - parsing an info file for a moving image with complete metadata info works
✅ - findByAssetRef - parsing a simple file info works
✅ ./target/test-reports/TEST-swiss.dasch.domain.AssetOverviewReportRowBuilderSpec.xml
1 tests were completed in 15ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.AssetOverviewReportRowBuilderSpec | 1✅ | 15ms |
✅ swiss.dasch.domain.AssetOverviewReportRowBuilderSpec
✅ AssetOverviewReportRowBuilder - should return the rows in correct order
✅ ./target/test-reports/TEST-swiss.dasch.domain.AugmentedPathSpec.xml
22 tests were completed in 2s with 22 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.AugmentedPathSpec | 22✅ | 2s |
✅ swiss.dasch.domain.AugmentedPathSpec
✅ AugmentedPath - ProjectFolder - cannot be created from a Path which is not a project folder
✅ AugmentedPath - ProjectFolder - cannot be created from a Path which is hidden
✅ AugmentedPath - ProjectFolder - can be created from a Path which is a project folder
✅ AugmentedPath - JpxDerivativeFile - cannot be created from original file
✅ AugmentedPath - JpxDerivativeFile - cannot be created from directory
✅ AugmentedPath - JpxDerivativeFile - can be created from a Path which is a derivative file jpx
✅ AugmentedPath - MovingImageDerivativeFile - can be created from a Path which is a derivative file mov
✅ AugmentedPath - JpxDerivativeFile - cannot be created if filename is not a valid AssetId
✅ AugmentedPath - OrigFile - can be created if Path ends with .orig
✅ AugmentedPath - OrigFile - cannot be created if filename is not a valid AssetId
✅ AugmentedPath - MovingImageDerivativeFile - cannot be created if filename is not a valid AssetId
✅ AugmentedPath - OrigFile - cannot be created if file is not an .orig file, e.g. directory or other extension
✅ AugmentedPath - MovingImageDerivativeFile - cannot be created from original file
✅ AugmentedPath - MovingImageDerivativeFile - cannot be created from directory
✅ AugmentedPath - OrigFile - cannot be created from hidden file
✅ AugmentedPath - OtherDerivativeFile - cannot be created from directory
✅ AugmentedPath - OtherDerivativeFile - can be created from a Path which is a derivative file
✅ AugmentedPath - OtherDerivativeFile - cannot be created from original file
✅ AugmentedPath - OtherDerivativeFile - cannot be created if filename is not a valid AssetId
✅ AugmentedPath - MovingImageDerivativeFile - cannot be created from hidden file
✅ AugmentedPath - JpxDerivativeFile - cannot be created from hidden file
✅ AugmentedPath - OtherDerivativeFile - cannot be created from hidden file
✅ ./target/test-reports/TEST-swiss.dasch.domain.AuthScopeSpec.xml
4 tests were completed in 86ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.AuthScopeSpec | 4✅ | 86ms |
✅ swiss.dasch.domain.AuthScopeSpec
✅ - should parse the admin scope
✅ - should ignore unknown keys, report bad project shortcodes
✅ - should parse the project read scope
✅ - should parse the project write scope
✅ ./target/test-reports/TEST-swiss.dasch.domain.BulkIngestServiceSpec.xml
7 tests were completed in 9s with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.BulkIngestServiceSpec | 7✅ | 9s |
✅ swiss.dasch.domain.BulkIngestServiceSpec
✅ BulkIngestServiceLive - start ingest - fail when import folder does not exist
✅ BulkIngestServiceLive - finalize bulk ingest should - fail when import folder does not exist
✅ BulkIngestServiceLive - finalize bulk ingest should - remove all files
✅ BulkIngestServiceLive - getBulkIngestMappingCsv - return the mapping csv file
✅ BulkIngestServiceLive - check semaphores released - check semaphores
✅ BulkIngestServiceLive - postBulkIngestEndpoint - test bulk-ingest individual upload
✅ BulkIngestServiceLive - start ingest - lock project while ingesting
✅ ./target/test-reports/TEST-swiss.dasch.domain.CsvUtilSpec.xml
3 tests were completed in 117ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.CsvUtilSpec | 3✅ | 117ms |
✅ swiss.dasch.domain.CsvUtilSpec
✅ - escapeCsvValue - Should not escape a value without special characters
✅ - escapeCsvValue - Should escape a value with a double quote
✅ - escapeCsvValue - Should escape a value with a comma
✅ ./target/test-reports/TEST-swiss.dasch.domain.FileChecksumServiceLiveSpec.xml
5 tests were completed in 616ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.FileChecksumServiceLiveSpec | 5✅ | 616ms |
✅ 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 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.IngestServiceSpec.xml
1 tests were completed in 142ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.IngestServiceSpec | 1✅ | 142ms |
✅ swiss.dasch.domain.IngestServiceSpec
✅ IngestService - should ingest a simple csv file
✅ ./target/test-reports/TEST-swiss.dasch.domain.MimeTypeGuesserSpec.xml
2 tests were completed in 18ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.MimeTypeGuesserSpec | 2✅ | 18ms |
✅ swiss.dasch.domain.MimeTypeGuesserSpec
✅ MimeTypeGuesser - should return None if it cannot guess the MIME type
✅ MimeTypeGuesser - should guess the MIME type from the filename
✅ ./target/test-reports/TEST-swiss.dasch.domain.MovingImageServiceSpec.xml
4 tests were completed in 991ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.MovingImageServiceSpec | 4✅ | 991ms |
✅ swiss.dasch.domain.MovingImageServiceSpec
✅ MovingImageService - createDerivative - should die for unsupported files
✅ MovingImageService - createDerivative - should create a derivative for supported files
✅ MovingImageService - extractMetaData - given correct metadata it should extract
✅ MovingImageService - extractMetaData - given invalid metadata it should not extract
✅ ./target/test-reports/TEST-swiss.dasch.domain.ProjectRepositoryLiveSpec.xml
8 tests were completed in 512ms with 8 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ProjectRepositoryLiveSpec | 8✅ | 512ms |
✅ swiss.dasch.domain.ProjectRepositoryLiveSpec
✅ ProjectRepositoryLive - given an empty database should find nothing
✅ ProjectRepositoryLive - findByShortcode
✅ ProjectRepositoryLive - findById
✅ ProjectRepositoryLive - is advancing the id
✅ ProjectRepositoryLive - deleteProjectByShortcode
✅ ProjectRepositoryLive - deleteProjectById
✅ ProjectRepositoryLive - refuse to create a project twice
✅ ProjectRepositoryLive - is deleting multiple projects
✅ ./target/test-reports/TEST-swiss.dasch.domain.ProjectServiceSpec.xml
7 tests were completed in 5s with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ProjectServiceSpec | 7✅ | 5s |
✅ swiss.dasch.domain.ProjectServiceSpec
✅ ProjectService - listAllProjects - should list all projects which contain assets in the asset directory
✅ ProjectService - findProject path - should not find not existing projects
✅ 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 - 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
✅ - ProjectShortcodes with different cases should be equal
✅ - ProjectShortcode should accept any four digit hex strings
✅ ./target/test-reports/TEST-swiss.dasch.domain.SipiCommandSpec.xml
3 tests were completed in 41ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.SipiCommandSpec | 3✅ | 41ms |
✅ 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.StillImageServiceLiveSpec.xml
6 tests were completed in 1s with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.StillImageServiceLiveSpec | 6✅ | 1s |
✅ swiss.dasch.domain.StillImageServiceLiveSpec
✅ StillImageServiceLive - createDerivative should create a jpx file with correct name
✅ StillImageServiceLive - createDerivative should fail if Sipi silently does not transcode the image
✅ StillImageServiceLive - not apply top left if not necessary
✅ StillImageServiceLive - apply top left should apply correction, create backup and update info file
✅ StillImageServiceLive - getDimensions should return Dimensions if Sipi returns them
✅ StillImageServiceLive - getDimensions should fail Dimensions if Sipi does not return them
✅ ./target/test-reports/TEST-swiss.dasch.domain.StorageServiceLiveSpec.xml
10 tests were completed in 2s with 10 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.StorageServiceLiveSpec | 10✅ | 2s |
✅ 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
✅ - create temp directory scoped - Should remove directory and content after scope
✅ - 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
✅ - load and save json files - should fail to load a file which does not contain json
✅ - 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
✅ ./target/test-reports/TEST-swiss.dasch.domain.SupportedFileTypeSpec.xml
6 tests were completed in 159ms with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.SupportedFileTypeSpec | 6✅ | 159ms |
✅ swiss.dasch.domain.SupportedFileTypeSpec
✅ SupportedFileTypesSpec - All still images which are supported by Sipi are supported
✅ SupportedFileTypesSpec - All valid extensions for StillImage are supported
✅ SupportedFileTypesSpec - All valid extensions for Audio are supported
✅ SupportedFileTypesSpec - All valid extensions for Other are supported
✅ SupportedFileTypesSpec - All valid extensions for MovingImage are supported
✅ SupportedFileTypesSpec - Unknown file extensions are not supported
✅ ./target/test-reports/TEST-swiss.dasch.domain.ZipUtilitySpec.xml
2 tests were completed in 22ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.domain.ZipUtilitySpec | 2✅ | 22ms |
✅ 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.AggregatedHealthSpec.xml
1 tests were completed in 6ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.infrastructure.AggregatedHealthSpec | 1✅ | 6ms |
✅ swiss.dasch.infrastructure.AggregatedHealthSpec
✅ AggregatedHealth - aggregates Health
✅ ./target/test-reports/TEST-swiss.dasch.infrastructure.Base62Spec.xml
1 tests were completed in 53ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.infrastructure.Base62Spec | 1✅ | 53ms |
✅ swiss.dasch.infrastructure.Base62Spec
✅ Base62 - should encode and decode a UUID
✅ ./target/test-reports/TEST-swiss.dasch.infrastructure.CommandExecutorLiveSpec.xml
2 tests were completed in 178ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.infrastructure.CommandExecutorLiveSpec | 2✅ | 178ms |
✅ swiss.dasch.infrastructure.CommandExecutorLiveSpec
✅ CommandExecutorLive - buildCommand without docker when useLocalDev is false
✅ CommandExecutorLive - buildCommand with docker when useLocalDev is true
✅ ./target/test-reports/TEST-swiss.dasch.infrastructure.FileSystemHealthIndicatorLiveSpec.xml
2 tests were completed in 91ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.infrastructure.FileSystemHealthIndicatorLiveSpec | 2✅ | 91ms |
✅ swiss.dasch.infrastructure.FileSystemHealthIndicatorLiveSpec
✅ FileSystemCheck - should fail smoke test given the expected folders do not exist
✅ FileSystemCheck - should pass smoke test given the expected folders exist
✅ ./target/test-reports/TEST-swiss.dasch.infrastructure.HealthSpec.xml
1 tests were completed in 3ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
swiss.dasch.infrastructure.HealthSpec | 1✅ | 3ms |
✅ swiss.dasch.infrastructure.HealthSpec
✅ Health - aggregation