@@ -416,21 +416,21 @@ void configurationCustomizersAreConfiguredAndOrdered() {
416
416
@ Test
417
417
void batchIsCorrectlyMapped () {
418
418
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
419
- .withPropertyValues ("spring.flyway.batch=true" ).run (validateTeamsPropertyCorrectlyMapped ("batch" ));
419
+ .withPropertyValues ("spring.flyway.batch=true" ).run (validateFlywayTeamsPropertyOnly ("batch" ));
420
420
}
421
421
422
422
@ Test
423
423
void dryRunOutputIsCorrectlyMapped () {
424
424
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
425
425
.withPropertyValues ("spring.flyway.dryRunOutput=dryrun.sql" )
426
- .run (validateTeamsPropertyCorrectlyMapped ("dryRunOutput" ));
426
+ .run (validateFlywayTeamsPropertyOnly ("dryRunOutput" ));
427
427
}
428
428
429
429
@ Test
430
430
void errorOverridesIsCorrectlyMapped () {
431
431
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
432
432
.withPropertyValues ("spring.flyway.errorOverrides=D12345" )
433
- .run (validateTeamsPropertyCorrectlyMapped ("errorOverrides" ));
433
+ .run (validateFlywayTeamsPropertyOnly ("errorOverrides" ));
434
434
}
435
435
436
436
@ Test
@@ -444,27 +444,27 @@ void licenseKeyIsCorrectlyMapped(CapturedOutput output) {
444
444
void oracleSqlplusIsCorrectlyMapped () {
445
445
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
446
446
.withPropertyValues ("spring.flyway.oracle-sqlplus=true" )
447
- .run (validateTeamsPropertyCorrectlyMapped ("oracle.sqlplus" ));
447
+ .run (validateFlywayTeamsPropertyOnly ("oracle.sqlplus" ));
448
448
}
449
449
450
450
@ Test
451
451
void oracleSqlplusWarnIsCorrectlyMapped () {
452
452
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
453
453
.withPropertyValues ("spring.flyway.oracle-sqlplus-warn=true" )
454
- .run (validateTeamsPropertyCorrectlyMapped ("oracle.sqlplusWarn" ));
454
+ .run (validateFlywayTeamsPropertyOnly ("oracle.sqlplusWarn" ));
455
455
}
456
456
457
457
@ Test
458
458
void streamIsCorrectlyMapped () {
459
459
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
460
- .withPropertyValues ("spring.flyway.stream=true" ).run (validateTeamsPropertyCorrectlyMapped ("stream" ));
460
+ .withPropertyValues ("spring.flyway.stream=true" ).run (validateFlywayTeamsPropertyOnly ("stream" ));
461
461
}
462
462
463
463
@ Test
464
464
void undoSqlMigrationPrefix () {
465
465
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
466
466
.withPropertyValues ("spring.flyway.undo-sql-migration-prefix=undo" )
467
- .run (validateTeamsPropertyCorrectlyMapped ("undoSqlMigrationPrefix" ));
467
+ .run (validateFlywayTeamsPropertyOnly ("undoSqlMigrationPrefix" ));
468
468
}
469
469
470
470
@ Test
@@ -499,78 +499,77 @@ void initSqlsWithFlywayUrl() {
499
499
@ Test
500
500
void cherryPickIsCorrectlyMapped () {
501
501
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
502
- .withPropertyValues ("spring.flyway.cherry-pick=1.1" )
503
- .run (validateTeamsPropertyCorrectlyMapped ("cherryPick" ));
502
+ .withPropertyValues ("spring.flyway.cherry-pick=1.1" ).run (validateFlywayTeamsPropertyOnly ("cherryPick" ));
504
503
}
505
504
506
505
@ Test
507
506
void jdbcPropertiesAreCorrectlyMapped () {
508
507
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
509
508
.withPropertyValues ("spring.flyway.jdbc-properties.prop=value" )
510
- .run (validateTeamsPropertyCorrectlyMapped ("jdbcProperties" ));
509
+ .run (validateFlywayTeamsPropertyOnly ("jdbcProperties" ));
511
510
}
512
511
513
512
@ Test
514
513
void oracleKerberosCacheFileIsCorrectlyMapped () {
515
514
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
516
515
.withPropertyValues ("spring.flyway.oracle-kerberos-cache-file=/tmp/cache" )
517
- .run (validateTeamsPropertyCorrectlyMapped ("oracle.kerberosCacheFile" ));
516
+ .run (validateFlywayTeamsPropertyOnly ("oracle.kerberosCacheFile" ));
518
517
}
519
518
520
519
@ Test
521
520
void oracleKerberosConfigFileIsCorrectlyMapped () {
522
521
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
523
522
.withPropertyValues ("spring.flyway.oracle-kerberos-config-file=/tmp/config" )
524
- .run (validateTeamsPropertyCorrectlyMapped ("oracle.kerberosConfigFile" ));
523
+ .run (validateFlywayTeamsPropertyOnly ("oracle.kerberosConfigFile" ));
525
524
}
526
525
527
526
@ Test
528
527
void outputQueryResultsIsCorrectlyMapped () {
529
528
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
530
529
.withPropertyValues ("spring.flyway.output-query-results=false" )
531
- .run (validateTeamsPropertyCorrectlyMapped ("outputQueryResults" ));
530
+ .run (validateFlywayTeamsPropertyOnly ("outputQueryResults" ));
532
531
}
533
532
534
533
@ Test
535
534
void skipExecutingMigrationsIsCorrectlyMapped () {
536
535
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
537
536
.withPropertyValues ("spring.flyway.skip-executing-migrations=true" )
538
- .run (validateTeamsPropertyCorrectlyMapped ("skipExecutingMigrations" ));
537
+ .run (validateFlywayTeamsPropertyOnly ("skipExecutingMigrations" ));
539
538
}
540
539
541
540
@ Test
542
541
void conjurUrlIsCorrectlyMapped () {
543
542
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
544
543
.withPropertyValues ("spring.flyway.conjur-url=http://foo.com/secrets" )
545
- .run (validateTeamsPropertyCorrectlyMapped ("conjurUrl" ));
544
+ .run (validateFlywayTeamsPropertyOnly ("conjurUrl" ));
546
545
}
547
546
548
547
@ Test
549
548
void conjurTokenIsCorrectlyMapped () {
550
549
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
551
550
.withPropertyValues ("spring.flyway.conjur-token=5150" )
552
- .run (validateTeamsPropertyCorrectlyMapped ("conjurToken" ));
551
+ .run (validateFlywayTeamsPropertyOnly ("conjurToken" ));
553
552
}
554
553
555
554
@ Test
556
555
void vaultUrlIsCorrectlyMapped () {
557
556
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
558
557
.withPropertyValues ("spring.flyway.vault-url=http://foo.com/secrets" )
559
- .run (validateTeamsPropertyCorrectlyMapped ("vaultUrl" ));
558
+ .run (validateFlywayTeamsPropertyOnly ("vaultUrl" ));
560
559
}
561
560
562
561
@ Test
563
562
void vaultTokenIsCorrectlyMapped () {
564
563
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
565
564
.withPropertyValues ("spring.flyway.vault-token=5150" )
566
- .run (validateTeamsPropertyCorrectlyMapped ("vaultToken" ));
565
+ .run (validateFlywayTeamsPropertyOnly ("vaultToken" ));
567
566
}
568
567
569
568
@ Test
570
569
void vaultSecretsIsCorrectlyMapped () {
571
570
this .contextRunner .withUserConfiguration (EmbeddedDataSourceConfiguration .class )
572
- .withPropertyValues ("spring.flyway.vault-secrets=kv/test/1/config,kv/test/2/config" )
573
- .run (validateTeamsPropertyCorrectlyMapped ("vaultSecrets" ));
571
+ .withPropertyValues ("spring.flyway.vault-secrets=kv/data/ test/1/config,kv/data /test/2/config" )
572
+ .run (validateFlywayTeamsPropertyOnly ("vaultSecrets" ));
574
573
}
575
574
576
575
@ Test
@@ -600,7 +599,7 @@ void whenCustomFlywayIsDefinedThenJooqDslContextDependsOnIt() {
600
599
});
601
600
}
602
601
603
- private ContextConsumer <AssertableApplicationContext > validateTeamsPropertyCorrectlyMapped (String propertyName ) {
602
+ private ContextConsumer <AssertableApplicationContext > validateFlywayTeamsPropertyOnly (String propertyName ) {
604
603
return (context ) -> {
605
604
assertThat (context ).hasFailed ();
606
605
Throwable failure = context .getStartupFailure ();
0 commit comments