File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ public class ItOperatorUpgrade extends BaseTest {
31
31
32
32
private static final String OP_BASE_REL = "2.0" ;
33
33
private static final String OP_TARGET_RELEASE = "weblogic-kubernetes-operator:latest" ;
34
- private static String DOM_TARGET_RELEASE_VERSION = "" ;
35
34
private static String OP_NS = "" ;
36
35
private static String OP_DEP_NAME = "" ;
37
36
private static String OP_SA = "" ;
@@ -244,12 +243,16 @@ private void upgradeOperator(boolean restart) throws Exception {
244
243
*/
245
244
private void checkOperatorVersion () throws Exception {
246
245
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" );
248
251
for (int i = 0 ; i < 900 ; i = i + 10 ) {
249
252
ExecResult exec =
250
253
TestUtils .exec (
251
254
"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 () )) {
253
256
logger .log (Level .INFO , "Got the expected apiVersion" );
254
257
result = true ;
255
258
break ;
You can’t perform that action at this time.
0 commit comments