31
31
import javax .ws .rs .core .Response ;
32
32
import oracle .kubernetes .operator .BaseTest ;
33
33
import oracle .kubernetes .operator .utils .Operator .RestCertType ;
34
- import org .bouncycastle .i18n .MissingEntryException ;
35
34
import org .glassfish .jersey .jsonp .JsonProcessingFeature ;
36
35
import org .yaml .snakeyaml .DumperOptions ;
37
36
import org .yaml .snakeyaml .Yaml ;
@@ -151,7 +150,7 @@ public static boolean checkPodTerminatingNoWait(String podName, String domainNS)
151
150
cmd .append ("kubectl get pod " ).append (podName ).append (" -n " ).append (domainNS );
152
151
153
152
// check for admin pod
154
- return checkPodMatch (cmd .toString (), "Terminating" , podName );
153
+ return checkPodContains (cmd .toString (), "Terminating" , podName );
155
154
}
156
155
157
156
/**
@@ -1445,7 +1444,7 @@ public static void checkCmdInLoop(String cmd, String matchStr, String k8sObjName
1445
1444
}
1446
1445
1447
1446
/**
1448
- * Check if the pod is in a specific status.
1447
+ * Check if the pod output contains the specified string
1449
1448
*
1450
1449
* @param cmd command to execute
1451
1450
* @param matchStr matching string
@@ -1454,7 +1453,7 @@ public static void checkCmdInLoop(String cmd, String matchStr, String k8sObjName
1454
1453
* @return true for match else false
1455
1454
* @throws Exception
1456
1455
*/
1457
- public static boolean checkPodMatch (String cmd , String matchStr , String k8sObjName )
1456
+ public static boolean checkPodContains (String cmd , String matchStr , String k8sObjName )
1458
1457
throws Exception {
1459
1458
ExecResult result = ExecCommand .exec (cmd );
1460
1459
if (result .exitValue () != 0
0 commit comments