Skip to content

Commit 2938c72

Browse files
committed
OrtConfigurationTest: Shorten a storage name for a test
This also avoids any confusion with the `postgresStorage` property of `ProvenanceStorageConfiguration`. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 5673f9f commit 2938c72

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

model/src/test/kotlin/config/OrtConfigurationTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class OrtConfigurationTest : WordSpec({
242242
ort:
243243
scanner:
244244
storages:
245-
postgresStorage:
245+
postgres:
246246
connection:
247247
url: "postgresql://your-postgresql-server:5444/your-database"
248248
schema: public
@@ -251,20 +251,20 @@ class OrtConfigurationTest : WordSpec({
251251
""".trimIndent()
252252
)
253253

254-
val env = mapOf("ort.scanner.storages.postgresStorage.connection.password" to "envPassword")
254+
val env = mapOf("ort.scanner.storages.postgres.connection.password" to "envPassword")
255255

256256
withEnvironment(env) {
257257
val config = OrtConfiguration.load(
258258
args = mapOf(
259-
"ort.scanner.storages.postgresStorage.connection.schema" to "argsSchema",
260-
"ort.scanner.storages.postgresStorage.connection.password" to "argsPassword",
259+
"ort.scanner.storages.postgres.connection.schema" to "argsSchema",
260+
"ort.scanner.storages.postgres.connection.password" to "argsPassword",
261261
"other.property" to "someValue"
262262
),
263263
file = configFile
264264
)
265265

266266
config.scanner.storages shouldNotBeNull {
267-
val postgresStorage = this["postgresStorage"]
267+
val postgresStorage = this["postgres"]
268268
postgresStorage.shouldBeInstanceOf<PostgresStorageConfiguration>()
269269
with(postgresStorage.connection) {
270270
username shouldBe "username"

0 commit comments

Comments
 (0)