integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static void checkPodDeleted(String podName, String domainNS) throws Exception {
    StringBuffer cmd = new StringBuffer();
    cmd.append("kubectl -n ")
        .append(domainNS)
        .append(" get pod ")
        .append(podName)
        .append(" | grep \"^")
        .append(podName)
        .append(" \" | wc -l");
    checkCmdInLoopForDelete(cmd.toString(), "\"" + podName + "\" not found", podName);
  }
/**
   * Check that pod is deleted.
   * @param podName pod name
   * @param domainNS namespace
   * @throws Exception on failure
   */
Check that pod is deleted.
@param podName pod name
@param domainNS namespace
@throws Exception on failure
Check that pod is deleted . @param podName pod name @param domainNS namespace @throws Exception on failure
public static void checkPodDeleted(String podName, String domainNS) throws Exception {
    StringBuffer cmd = new StringBuffer();
    cmd.append("kubectl -n ")
        .append(domainNS)
        .append(" get pod ")
        .append(podName)
        .append(" | grep \"^")
        .append(podName)
        .append(" \" | wc -l");
    checkCmdInLoopForDelete(cmd.toString(), "\"" + podName + "\" not found", podName);
  }
public static void checkPodDeleted ( String podName , String domainNS ) throws Exception { StringBuffer cmd = new StringBuffer ( ) ; cmd . append ( "kubectl -n " ) . append ( domainNS ) . append ( " get pod " ) . append ( podName ) . append ( " | grep \"^" ) . append ( podName ) . append ( " \" | wc -l" ) ; checkCmdInLoopForDelete ( cmd . toString ( ) , "\"" + podName + "\" not found" , podName ) ; }
Check that pod is deleted.
Check that pod is deleted .