File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
scala/ch/epfl/bluebrain/nexus/ship/config Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 44 resource-types-to-ignore = [
55 "https://some.resource.type"
66 ]
7+ files {
8+ location-prefix-to-strip = "file:///prefix/to/strip"
9+ }
710 }
811}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package ch.epfl.bluebrain.nexus.ship.config
22
33import ch .epfl .bluebrain .nexus .delta .plugins .storage .storages .operations .s3 .LocalStackS3StorageClient
44import ch .epfl .bluebrain .nexus .delta .plugins .storage .storages .operations .s3 .LocalStackS3StorageClient .uploadFileToS3
5- import ch .epfl .bluebrain .nexus .delta .rdf .syntax .iriStringContextSyntax
5+ import ch .epfl .bluebrain .nexus .delta .rdf .syntax .{ iriStringContextSyntax , uriStringContextSyntax }
66import ch .epfl .bluebrain .nexus .delta .sdk .Defaults
77import ch .epfl .bluebrain .nexus .delta .sdk .model .BaseUri
88import ch .epfl .bluebrain .nexus .delta .sourcing .model .{Label , ProjectRef }
@@ -38,8 +38,11 @@ class ShipConfigSuite extends NexusSuite with ShipConfigFixtures with LocalStack
3838 val expectedBaseUri = BaseUri (" https://bbp.epfl.ch" , Label .unsafe(" v1" ))
3939 for {
4040 externalConfigPath <- loader.absolutePath(" config/external.conf" )
41- _ <- ShipConfig .load(Some (Path (externalConfigPath))).map(_.input.targetBaseUri).assertEquals(expectedBaseUri)
42- } yield ()
41+ config <- ShipConfig .load(Some (Path (externalConfigPath)))
42+ } yield {
43+ assertEquals(config.input.files.locationPrefixToStrip, Some (uri """ file:///prefix/to/strip """ ))
44+ assertEquals(config.input.targetBaseUri, expectedBaseUri)
45+ }
4346 }
4447
4548 test(" Should have correct project mapping" ) {
You can’t perform that action at this time.
0 commit comments