integration-tests/src/test/java/oracle/kubernetes/operator/ItUsabilityOperatorHelmChart.java
@Test
  public void testDeleteOperatorButNotDomain() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    LoggerHelper.getLocal().log(Level.INFO, "Creating Operator & waiting for the script to complete execution");
    // create operator
    Operator operator = null;
    Domain domain = null;
    boolean testCompletedSuccessfully = false;
    try {
      int testNumber = getNewSuffixCount();
      Map<String, Object> operatorMap = createOperatorMap(testNumber, true, "usab");

      operator = new Operator(operatorMap, RestCertType.SELF_SIGNED);
      operator.callHelmInstall();
      domain = createVerifyDomain(testNumber, operator);
      LoggerHelper.getLocal().log(Level.INFO, "Deleting operator to check that domain functionality is not effected");
      operator.destroy();
      operator = null;
      //Check domain is still up and running
      domain.verifyDomainCreated();
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
      if (operator != null) {
        operator.destroy();
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
/**
   * Create operator and verify it is deployed successfully 
   * Create domain1 and verify domain is started 
   * Delete operator.
   * Make sure domain1 is still accessible by checking liveness probe for server(s)
   * @throws Exception when domain1 is not accessible in the absence of operator
   */
Create operator and verify it is deployed successfully
Create domain1 and verify domain is started
Delete operator.
Make sure domain1 is still accessible by checking liveness probe for server(s)
@throws Exception when domain1 is not accessible in the absence of operator
Create operator and verify it is deployed successfully Create domain1 and verify domain is started Delete operator . Make sure domain1 is still accessible by checking liveness probe for server ( s ) @throws Exception when domain1 is not accessible in the absence of operator
@Test
  public void testDeleteOperatorButNotDomain() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    LoggerHelper.getLocal().log(Level.INFO, "Creating Operator & waiting for the script to complete execution");
    Operator operator = null;
    Domain domain = null;
    boolean testCompletedSuccessfully = false;
    try {
      int testNumber = getNewSuffixCount();
      Map<String, Object> operatorMap = createOperatorMap(testNumber, true, "usab");
      operator = new Operator(operatorMap, RestCertType.SELF_SIGNED);
      operator.callHelmInstall();
      domain = createVerifyDomain(testNumber, operator);
      LoggerHelper.getLocal().log(Level.INFO, "Deleting operator to check that domain functionality is not effected");
      operator.destroy();
      operator = null;
      domain.verifyDomainCreated();
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
      if (operator != null) {
        operator.destroy();
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
@ Test public void testDeleteOperatorButNotDomain ( ) throws Exception { Assumptions . assumeTrue ( FULLTEST ) ; String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethodName ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Creating Operator & waiting for the script to complete execution" ) ; Operator operator = null ; Domain domain = null ; boolean testCompletedSuccessfully = false ; try { int testNumber = getNewSuffixCount ( ) ; Map < String , Object > operatorMap = createOperatorMap ( testNumber , true , "usab" ) ; operator = new Operator ( operatorMap , RestCertType . SELF_SIGNED ) ; operator . callHelmInstall ( ) ; domain = createVerifyDomain ( testNumber , operator ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Deleting operator to check that domain functionality is not effected" ) ; operator . destroy ( ) ; operator = null ; domain . verifyDomainCreated ( ) ; testCompletedSuccessfully = true ; } finally { if ( domain != null ) { TestUtils . deleteWeblogicDomainResources ( domain . getDomainUid ( ) ) ; } if ( operator != null ) { operator . destroy ( ) ; } } LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethodName ) ; }
Create operator and verify it is deployed successfully
 Create domain1 and verify domain is started
 Delete operator.
Create operator and verify it is deployed successfully Create domain1 and verify domain is started Delete operator .
// create operator //Check domain is still up and running