-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Quarkus configuration to mix different storage providers
Closes #13312
- Loading branch information
Showing
9 changed files
with
361 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 86 additions & 43 deletions
129
quarkus/config-api/src/main/java/org/keycloak/config/StorageOptions.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
quarkus/tests/integration/src/test/java/org/keycloak/it/storage/map/MixedStoreDistTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.keycloak.it.storage.map; | ||
|
||
import io.quarkus.test.junit.main.Launch; | ||
import io.quarkus.test.junit.main.LaunchResult; | ||
import org.junit.jupiter.api.Test; | ||
import org.keycloak.it.junit5.extension.CLIResult; | ||
import org.keycloak.it.junit5.extension.DistributionTest; | ||
import org.keycloak.it.junit5.extension.RawDistOnly; | ||
import org.keycloak.it.junit5.extension.WithDatabase; | ||
import org.keycloak.it.utils.RawDistRootPath; | ||
|
||
import java.io.File; | ||
import java.nio.file.Paths; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
@DistributionTest | ||
@RawDistOnly(reason = "Containers are immutable") | ||
@WithDatabase(alias = "postgres", buildOptions = {"storage=jpa", "storage-realm=chm"}) | ||
public class MixedStoreDistTest { | ||
|
||
@Test | ||
@Launch({ "start", "--http-enabled=true", "--hostname-strict=false" }) | ||
void testStartUsingMixedStorage(LaunchResult result, RawDistRootPath distRoot) { | ||
CLIResult cliResult = (CLIResult) result; | ||
cliResult.assertStarted(); | ||
File chmRealmsFile = Paths.get(distRoot.getDistRootPath().toString(), "data","chm", "map-realms.json").toFile(); | ||
assertTrue(chmRealmsFile.isFile(), "File for realms does not exist!"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.