parent
6d99686220
commit
2070420673
2 changed files with 4 additions and 13 deletions
|
@ -114,16 +114,6 @@
|
|||
<artifactId>keycloak-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- FIXME: Adding BC since removed from common, this will need to be removed -->
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15on</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcpkix-jdk15on</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Test -->
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
|
|
|
@ -21,7 +21,6 @@ import io.fabric8.kubernetes.api.model.Secret;
|
|||
import io.quarkus.logging.Log;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.bouncycastle.util.encoders.Base64;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.keycloak.operator.Constants;
|
||||
|
@ -30,7 +29,7 @@ import org.keycloak.operator.crds.v2alpha1.deployment.Keycloak;
|
|||
import org.keycloak.operator.crds.v2alpha1.deployment.KeycloakStatusCondition;
|
||||
import org.keycloak.operator.crds.v2alpha1.deployment.ValueOrSecret;
|
||||
|
||||
|
||||
import java.util.Base64;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
@ -94,7 +93,9 @@ public class WatchedSecretsTest extends BaseOperatorTest {
|
|||
var prevPodNames = getPodNamesForCrs(Set.of(kc));
|
||||
|
||||
var dbSecret = getDbSecret();
|
||||
dbSecret.getData().put("username", Base64.toBase64String(username.getBytes()));
|
||||
|
||||
dbSecret.getData().put("username",
|
||||
Base64.getEncoder().encodeToString(username.getBytes()));
|
||||
k8sclient.secrets().createOrReplace(dbSecret);
|
||||
|
||||
Awaitility.await()
|
||||
|
|
Loading…
Reference in a new issue