new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItScaleMiiDomainNginx.java
@AfterAll
  public void tearDownAll() {

    // uninstall NGINX release
    if (nginxHelmParams != null) {
      assertThat(uninstallNginx(nginxHelmParams))
          .as("Test uninstallNginx returns true")
          .withFailMessage("uninstallNginx() did not return true")
          .isTrue();
    }

    // delete cluster role binding created for WLDF policy
    if (assertDoesNotThrow(() -> clusterRoleBindingExists(WLDF_CLUSTER_ROLE_BINDING_NAME))) {
      assertTrue(deleteClusterRoleBinding(WLDF_CLUSTER_ROLE_BINDING_NAME));
    }

    // delete cluster role created for WLDF policy
    if (assertDoesNotThrow(() -> clusterRoleExists(WLDF_CLUSTER_ROLE_NAME))) {
      assertThat(assertDoesNotThrow(() -> deleteClusterRole(WLDF_CLUSTER_ROLE_NAME),
          "deleteClusterRole failed with ApiException"))
          .as("Test delete cluster role returns true")
          .withFailMessage("deleteClusterRole() did not return true")
          .isTrue();
    }
  }
/**
   * TODO: remove this after Sankar's PR is merged
   * The cleanup framework does not uninstall NGINX release. Do it here for now.
   */
remove this after Sankar's PR is merged
The cleanup framework does not uninstall NGINX release. Do it here for now.
remove this after Sankar ' s PR is merged The cleanup framework does not uninstall NGINX release . Do it here for now .
@AfterAll
  public void tearDownAll() {
    if (nginxHelmParams != null) {
      assertThat(uninstallNginx(nginxHelmParams))
          .as("Test uninstallNginx returns true")
          .withFailMessage("uninstallNginx() did not return true")
          .isTrue();
    }
    if (assertDoesNotThrow(() -> clusterRoleBindingExists(WLDF_CLUSTER_ROLE_BINDING_NAME))) {
      assertTrue(deleteClusterRoleBinding(WLDF_CLUSTER_ROLE_BINDING_NAME));
    }
    if (assertDoesNotThrow(() -> clusterRoleExists(WLDF_CLUSTER_ROLE_NAME))) {
      assertThat(assertDoesNotThrow(() -> deleteClusterRole(WLDF_CLUSTER_ROLE_NAME),
          "deleteClusterRole failed with ApiException"))
          .as("Test delete cluster role returns true")
          .withFailMessage("deleteClusterRole() did not return true")
          .isTrue();
    }
  }
@ AfterAll public void tearDownAll ( ) { if ( nginxHelmParams != null ) { assertThat ( uninstallNginx ( nginxHelmParams ) ) . as ( "Test uninstallNginx returns true" ) . withFailMessage ( "uninstallNginx() did not return true" ) . isTrue ( ) ; } if ( assertDoesNotThrow ( ( ) -> clusterRoleBindingExists ( WLDF_CLUSTER_ROLE_BINDING_NAME ) ) ) { assertTrue ( deleteClusterRoleBinding ( WLDF_CLUSTER_ROLE_BINDING_NAME ) ) ; } if ( assertDoesNotThrow ( ( ) -> clusterRoleExists ( WLDF_CLUSTER_ROLE_NAME ) ) ) { assertThat ( assertDoesNotThrow ( ( ) -> deleteClusterRole ( WLDF_CLUSTER_ROLE_NAME ) , "deleteClusterRole failed with ApiException" ) ) . as ( "Test delete cluster role returns true" ) . withFailMessage ( "deleteClusterRole() did not return true" ) . isTrue ( ) ; } }
TODO: remove this after Sankar's PR is merged
 The cleanup framework does not uninstall NGINX release.
TODO : remove this after Sankar ' s PR is merged The cleanup framework does not uninstall NGINX release .
// uninstall NGINX release // delete cluster role binding created for WLDF policy // delete cluster role created for WLDF policy