integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java
@AfterAll
  public static void staticUnPrepare() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    if (domain != null) {
      domain.destroy();
      TestUtils.deleteWeblogicDomainResources(domainNS1);
      if (BaseTest.SHARED_CLUSTER) {

        String image = System.getenv("REPO_REGISTRY")
            + "/weblogick8s/"
            + domainNS2
            + "-image:" + currentDateTime;
        String cmd = "docker rmi -f " + image;
        TestUtils.execOrAbortProcess(cmd, true);
      }
      String cmd = "docker rmi -f " + domainNS2 + "-image:" + currentDateTime;
      TestUtils.execOrAbortProcess(cmd, true);
    }
    if (operator != null) {
      operator.destroy();
    }
    try {
      uninstallWebHookPrometheusGrafanaMySql();
    } catch (Exception ex) {
      LoggerHelper.getLocal().log(Level.INFO,
          "Exception caught while uninstalling webhook/prometheus/Grafana/Mysql " + ex.getMessage());
    }

    tearDown(new Object() {}.getClass().getEnclosingClass().getSimpleName(), namespaceList.toString());
    LoggerHelper.getLocal().log(Level.INFO,"SUCCESS");

  }
/**
   * Releases k8s cluster lease, archives result, pv directories.
   *
   * @throws Exception if failed to delete resource
   */
Releases k8s cluster lease, archives result, pv directories.
@throws Exception if failed to delete resource
Releases k8s cluster lease archives result pv directories . @throws Exception if failed to delete resource
@AfterAll
  public static void staticUnPrepare() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    if (domain != null) {
      domain.destroy();
      TestUtils.deleteWeblogicDomainResources(domainNS1);
      if (BaseTest.SHARED_CLUSTER) {
        String image = System.getenv("REPO_REGISTRY")
            + "/weblogick8s/"
            + domainNS2
            + "-image:" + currentDateTime;
        String cmd = "docker rmi -f " + image;
        TestUtils.execOrAbortProcess(cmd, true);
      }
      String cmd = "docker rmi -f " + domainNS2 + "-image:" + currentDateTime;
      TestUtils.execOrAbortProcess(cmd, true);
    }
    if (operator != null) {
      operator.destroy();
    }
    try {
      uninstallWebHookPrometheusGrafanaMySql();
    } catch (Exception ex) {
      LoggerHelper.getLocal().log(Level.INFO,
          "Exception caught while uninstalling webhook/prometheus/Grafana/Mysql " + ex.getMessage());
    }
    tearDown(new Object() {}.getClass().getEnclosingClass().getSimpleName(), namespaceList.toString());
    LoggerHelper.getLocal().log(Level.INFO,"SUCCESS");
  }
@ AfterAll public static void staticUnPrepare ( ) throws Exception { Assumptions . assumeTrue ( FULLTEST ) ; if ( domain != null ) { domain . destroy ( ) ; TestUtils . deleteWeblogicDomainResources ( domainNS1 ) ; if ( BaseTest . SHARED_CLUSTER ) { String image = System . getenv ( "REPO_REGISTRY" ) + "/weblogick8s/" + domainNS2 + "-image:" + currentDateTime ; String cmd = "docker rmi -f " + image ; TestUtils . execOrAbortProcess ( cmd , true ) ; } String cmd = "docker rmi -f " + domainNS2 + "-image:" + currentDateTime ; TestUtils . execOrAbortProcess ( cmd , true ) ; } if ( operator != null ) { operator . destroy ( ) ; } try { uninstallWebHookPrometheusGrafanaMySql ( ) ; } catch ( Exception ex ) { LoggerHelper . getLocal ( ) . log ( Level . INFO , "Exception caught while uninstalling webhook/prometheus/Grafana/Mysql " + ex . getMessage ( ) ) ; } tearDown ( new Object ( ) { } . getClass ( ) . getEnclosingClass ( ) . getSimpleName ( ) , namespaceList . toString ( ) ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS" ) ; }
Releases k8s cluster lease, archives result, pv directories.
Releases k8s cluster lease archives result pv directories .