diff --git a/src/integration-test/kotlin/de/bixilon/minosoft/config/profile/profiles/resources/ResourceProfileMigrationTest.kt b/src/integration-test/kotlin/de/bixilon/minosoft/config/profile/profiles/resources/ResourceProfileMigrationTest.kt index 0102ec7ed..4cbb7e362 100644 --- a/src/integration-test/kotlin/de/bixilon/minosoft/config/profile/profiles/resources/ResourceProfileMigrationTest.kt +++ b/src/integration-test/kotlin/de/bixilon/minosoft/config/profile/profiles/resources/ResourceProfileMigrationTest.kt @@ -27,7 +27,7 @@ class ResourceProfileMigrationTest { val data = mapOf( "source" to mapOf( "pixlyzer" to "https://gitlab.bixilon.de/bixilon/pixlyzer-data/-/raw/master/hash/\${hashPrefix}/\${fullHash}.mbf?inline=false", - "minosoft-meta" to "https://gitlab.bixilon.de/bixilon/minosoft-meta-bin/-/raw/master/\${hashPrefix}/\${fullHash}?ref_type=heads", + "minosoft_meta" to "https://gitlab.bixilon.de/bixilon/minosoft-meta-bin/-/raw/master/\${hashPrefix}/\${fullHash}?ref_type=heads", ) ) val tree = Jackson.MAPPER.valueToTree(data) @@ -43,7 +43,7 @@ class ResourceProfileMigrationTest { val data = mapOf( "source" to mapOf( "pixlyzer" to "https://custom.bixilon.de/bixilon/pixlyzer-data/-/raw/master/hash/\${hashPrefix}/\${fullHash}.mbf?inline=false", - "minosoft-meta" to "https://custom.bixilon.de/bixilon/minosoft-meta-bin/-/raw/master/\${hashPrefix}/\${fullHash}?ref_type=heads", + "minosoft_meta" to "https://custom.bixilon.de/bixilon/minosoft-meta-bin/-/raw/master/\${hashPrefix}/\${fullHash}?ref_type=heads", ) ) val tree = Jackson.MAPPER.valueToTree(data) @@ -55,7 +55,7 @@ class ResourceProfileMigrationTest { "pixlyzer" to listOf( "https://custom.bixilon.de/bixilon/pixlyzer-data/-/raw/master/hash/\${hashPrefix}/\${fullHash}.mbf?inline=false", ), - "minosoft-meta" to listOf( + "minosoft_meta" to listOf( "https://custom.bixilon.de/bixilon/minosoft-meta-bin/-/raw/master/\${hashPrefix}/\${fullHash}?ref_type=heads", ), ) diff --git a/src/main/java/de/bixilon/minosoft/config/profile/profiles/resources/ResourceProfileMigration.kt b/src/main/java/de/bixilon/minosoft/config/profile/profiles/resources/ResourceProfileMigration.kt index aef171562..8f89a018b 100644 --- a/src/main/java/de/bixilon/minosoft/config/profile/profiles/resources/ResourceProfileMigration.kt +++ b/src/main/java/de/bixilon/minosoft/config/profile/profiles/resources/ResourceProfileMigration.kt @@ -31,7 +31,7 @@ object ResourceProfileMigration { array.add(it) source.replace("pixlyzer", array) } - source.remove("minosoft-meta")?.asText()?.let { + source.remove("minosoft_meta")?.asText()?.let { if (it == "https://gitlab.bixilon.de/bixilon/minosoft-meta-bin/-/raw/master/\${hashPrefix}/\${fullHash}?ref_type=heads") return@let val array = Jackson.MAPPER.createArrayNode() array.add(it)