integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void destroy() throws Exception {
    int replicas = TestUtils.getClusterReplicas(domainUid, clusterName, domainNS);
    StringBuffer cmd = new StringBuffer("kubectl delete -f ");
    cmd.append(userProjectsDir)
        .append("/weblogic-domains/")
        .append(domainUid)
        .append("/domain.yaml");
    ExecResult result = TestUtils.execOrAbortProcess(cmd.toString());
    String output = result.stdout().trim();
    LoggerHelper.getLocal().log(Level.INFO,
        "command to delete domain " + cmd + " \n returned " + output);
    verifyDomainDeleted(replicas);

  }
/**
   * Delete domain crd using yaml.
   *
   * @throws Exception If failed to delete crd
   */
Delete domain crd using yaml.
@throws Exception If failed to delete crd
Delete domain crd using yaml . @throws Exception If failed to delete crd
public void destroy() throws Exception {
    int replicas = TestUtils.getClusterReplicas(domainUid, clusterName, domainNS);
    StringBuffer cmd = new StringBuffer("kubectl delete -f ");
    cmd.append(userProjectsDir)
        .append("/weblogic-domains/")
        .append(domainUid)
        .append("/domain.yaml");
    ExecResult result = TestUtils.execOrAbortProcess(cmd.toString());
    String output = result.stdout().trim();
    LoggerHelper.getLocal().log(Level.INFO,
        "command to delete domain " + cmd + " \n returned " + output);
    verifyDomainDeleted(replicas);
  }
public void destroy ( ) throws Exception { int replicas = TestUtils . getClusterReplicas ( domainUid , clusterName , domainNS ) ; StringBuffer cmd = new StringBuffer ( "kubectl delete -f " ) ; cmd . append ( userProjectsDir ) . append ( "/weblogic-domains/" ) . append ( domainUid ) . append ( "/domain.yaml" ) ; ExecResult result = TestUtils . execOrAbortProcess ( cmd . toString ( ) ) ; String output = result . stdout ( ) . trim ( ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "command to delete domain " + cmd + " \n returned " + output ) ; verifyDomainDeleted ( replicas ) ; }
Delete domain crd using yaml.
Delete domain crd using yaml .