Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski committed Apr 3, 2024
1 parent e356d2d commit cf3b0dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ship/src/test/resources/config/project-mapping-sscx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ship {
project-mapping = {
"public/sscx": "obp/somato"
}
}
3 changes: 1 addition & 2 deletions ship/src/test/resources/config/project-mapping.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ship {
project-mapping = {
"public/sscx": "obp/somato"
"private/mmb": "obp/reference",
"private/mmb": "obp/reference"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ class RunShipSuite extends NexusSuite with RunShipSuite.Fixture {
} yield ()
}

test("Import with project mapping") {
test("Import and map public/sscx to obp/somato") {
for {
externalConfigPath <- loader.absolutePath("config/project-mapping.conf").map(x => Some(Path(x)))
externalConfigPath <- loader.absolutePath("config/project-mapping-sscx.conf").map(x => Some(Path(x)))
importFileWithTwoProjects <- asPath("import/import.json")
_ <- new RunShip().run(importFileWithTwoProjects, externalConfigPath, Offset.start)
_ <- check(xas).map { projects =>
Expand Down

0 comments on commit cf3b0dd

Please sign in to comment.