Skip to content

Commit e1a2628

Browse files
committed
revert change to BaseTest.java
1 parent a433db9 commit e1a2628

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ public static ExecResult cleanup() throws Exception {
305305
+ getProjectRoot()
306306
+ "/src/integration-tests/bash/cleanup.sh";
307307
logger.info("Command to call cleanup script " + cmd);
308-
309308
return ExecCommand.exec(cmd);
310309
}
311310

integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import javax.ws.rs.core.Response;
3232
import oracle.kubernetes.operator.BaseTest;
3333
import oracle.kubernetes.operator.utils.Operator.RestCertType;
34-
import org.bouncycastle.i18n.MissingEntryException;
3534
import org.glassfish.jersey.jsonp.JsonProcessingFeature;
3635
import org.yaml.snakeyaml.DumperOptions;
3736
import org.yaml.snakeyaml.Yaml;
@@ -151,7 +150,7 @@ public static boolean checkPodTerminatingNoWait(String podName, String domainNS)
151150
cmd.append("kubectl get pod ").append(podName).append(" -n ").append(domainNS);
152151

153152
// check for admin pod
154-
return checkPodMatch(cmd.toString(), "Terminating", podName);
153+
return checkPodContains(cmd.toString(), "Terminating", podName);
155154
}
156155

157156
/**
@@ -1445,7 +1444,7 @@ public static void checkCmdInLoop(String cmd, String matchStr, String k8sObjName
14451444
}
14461445

14471446
/**
1448-
* Check if the pod is in a specific status.
1447+
* Check if the pod output contains the specified string
14491448
*
14501449
* @param cmd command to execute
14511450
* @param matchStr matching string
@@ -1454,7 +1453,7 @@ public static void checkCmdInLoop(String cmd, String matchStr, String k8sObjName
14541453
* @return true for match else false
14551454
* @throws Exception
14561455
*/
1457-
public static boolean checkPodMatch(String cmd, String matchStr, String k8sObjName)
1456+
public static boolean checkPodContains(String cmd, String matchStr, String k8sObjName)
14581457
throws Exception {
14591458
ExecResult result = ExecCommand.exec(cmd);
14601459
if (result.exitValue() != 0

0 commit comments

Comments
 (0)