Skip to content

Commit 1c89696

Browse files
committed
fix
1 parent 76947fc commit 1c89696

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ItOperatorUpgrade.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public class ItOperatorUpgrade extends BaseTest {
3131

3232
private static final String OP_BASE_REL = "2.0";
3333
private static final String OP_TARGET_RELEASE = "weblogic-kubernetes-operator:latest";
34-
private static String DOM_TARGET_RELEASE_VERSION = "";
3534
private static String OP_NS = "";
3635
private static String OP_DEP_NAME = "";
3736
private static String OP_SA = "";
@@ -244,12 +243,16 @@ private void upgradeOperator(boolean restart) throws Exception {
244243
*/
245244
private void checkOperatorVersion() throws Exception {
246245
boolean result = false;
247-
logger.log(Level.INFO, "Checking for the domain apiVersion in a loop for up to 15 minutes");
246+
logger.log(
247+
Level.INFO,
248+
"Checking for the domain apiVersion "
249+
+ getDomainApiVersion()
250+
+ " in a loop for up to 15 minutes");
248251
for (int i = 0; i < 900; i = i + 10) {
249252
ExecResult exec =
250253
TestUtils.exec(
251254
"kubectl get domain -n " + DOM_NS + " " + DUID + " -o jsonpath={.apiVersion}", true);
252-
if (exec.stdout().contains(DOM_TARGET_RELEASE_VERSION)) {
255+
if (exec.stdout().contains(getDomainApiVersion())) {
253256
logger.log(Level.INFO, "Got the expected apiVersion");
254257
result = true;
255258
break;

0 commit comments

Comments
 (0)