Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,9 @@ public void testInvalidCustomImageHasErrorMessage() {
}

@Test
public void testConfigErrorLog() {
public void testConfigErrorLogUnoptimized() {
var kc = getTestKeycloakDeployment(true);
kc.getSpec().setStartOptimized(false);
kc.getSpec().setFeatureSpec(new FeatureSpecBuilder().addToEnabledFeatures("feature doesn't exist").build());

deployKeycloak(k8sclient, kc, false);
Expand All @@ -589,7 +590,7 @@ public void testConfigErrorLog() {
CRAssert.assertKeycloakStatusCondition(current, KeycloakStatusCondition.READY, false);
CRAssert.assertKeycloakStatusCondition(current, KeycloakStatusCondition.HAS_ERRORS, true, null).has(new Condition<>(
c -> c.getMessage().contains(String.format("Waiting for %s/%s-0 due to CrashLoopBackOff", k8sclient.getNamespace(), kc.getMetadata().getName()))
&& c.getMessage().contains("The following build time options have values"), "message"
&& c.getMessage().contains("'feature doesn't exist' is an unrecognized feature"), "message"
));
});
}
Expand Down
Loading