integration-tests/src/test/java/oracle/kubernetes/operator/ItPodsShutdown.java
@BeforeEach
  public void prepare() throws Exception {
    // initialize test properties and create the directories
    if (FULLTEST) {
      LoggerHelper.getLocal().log(Level.INFO, "Checking if operator1 and domain are running, if not creating");
      createResultAndPvDirs(testClassName);
      // create operator1
      if (operator1 == null) {
        ArrayList<String> targetDomainsNS = new ArrayList<String>();
        targetDomainsNS.add(domainNSShutOpCluster);
        targetDomainsNS.add(domainNSShutOpDomain);
        targetDomainsNS.add(domainNSShutOpEnv);
        targetDomainsNS.add(domainNSShutOpMS);
        targetDomainsNS.add(domainNSShutOpMSForced);
        targetDomainsNS.add(domainNSShutOpMSIgnoreSessions);
        targetDomainsNS.add(domainNSShutOpMSTimeout);
        targetDomainsNS.add(domainNSShutOpOverrideViaCluster);
        targetDomainsNS.add(domainNSShutOpOverrideViaEnv);
        Map<String, Object> operatorMap = createOperatorMap(getNewSuffixCount(), true, testClassName);
        operatorMap.put("domainNamespaces",targetDomainsNS);
        operator1 = TestUtils.createOperator(operatorMap, Operator.RestCertType.SELF_SIGNED);
        Assertions.assertNotNull(operator1);
        namespaceList.append((String)operatorMap.get("namespace"));
        namespaceList.append(" ")
            .append(domainNSShutOpOverrideViaCluster)
            .append(" ")
            .append(domainNSShutOpMS)
            .append(" ")
            .append(domainNSShutOpMSForced)
            .append(" ")
            .append(domainNSShutOpMSIgnoreSessions)
            .append(" ")
            .append(domainNSShutOpMSTimeout)
            .append(" ")
            .append(domainNSShutOpEnv)
            .append(" ")
            .append(domainNSShutOpDomain)
            .append(" ")
            .append(domainNSShutOpOverrideViaEnv)
            .append(" ")
            .append(domainNSShutOpCluster);
      }
    }
  }
/**
   * This method gets called before every test. It creates the result/pv root directories
   * for the test. Creates the operator and domain if its not running.
   *
   * @throws Exception If result/pv/operator/domain creation fails
   */
This method gets called before every test. It creates the result/pv root directories
for the test. Creates the operator and domain if its not running.

@throws Exception If result/pv/operator/domain creation fails
This method gets called before every test . It creates the result / pv root directories for the test . Creates the operator and domain if its not running . @throws Exception If result / pv / operator / domain creation fails
@BeforeEach
  public void prepare() throws Exception {
    if (FULLTEST) {
      LoggerHelper.getLocal().log(Level.INFO, "Checking if operator1 and domain are running, if not creating");
      createResultAndPvDirs(testClassName);
      if (operator1 == null) {
        ArrayList<String> targetDomainsNS = new ArrayList<String>();
        targetDomainsNS.add(domainNSShutOpCluster);
        targetDomainsNS.add(domainNSShutOpDomain);
        targetDomainsNS.add(domainNSShutOpEnv);
        targetDomainsNS.add(domainNSShutOpMS);
        targetDomainsNS.add(domainNSShutOpMSForced);
        targetDomainsNS.add(domainNSShutOpMSIgnoreSessions);
        targetDomainsNS.add(domainNSShutOpMSTimeout);
        targetDomainsNS.add(domainNSShutOpOverrideViaCluster);
        targetDomainsNS.add(domainNSShutOpOverrideViaEnv);
        Map<String, Object> operatorMap = createOperatorMap(getNewSuffixCount(), true, testClassName);
        operatorMap.put("domainNamespaces",targetDomainsNS);
        operator1 = TestUtils.createOperator(operatorMap, Operator.RestCertType.SELF_SIGNED);
        Assertions.assertNotNull(operator1);
        namespaceList.append((String)operatorMap.get("namespace"));
        namespaceList.append(" ")
            .append(domainNSShutOpOverrideViaCluster)
            .append(" ")
            .append(domainNSShutOpMS)
            .append(" ")
            .append(domainNSShutOpMSForced)
            .append(" ")
            .append(domainNSShutOpMSIgnoreSessions)
            .append(" ")
            .append(domainNSShutOpMSTimeout)
            .append(" ")
            .append(domainNSShutOpEnv)
            .append(" ")
            .append(domainNSShutOpDomain)
            .append(" ")
            .append(domainNSShutOpOverrideViaEnv)
            .append(" ")
            .append(domainNSShutOpCluster);
      }
    }
  }
@ BeforeEach public void prepare ( ) throws Exception { if ( FULLTEST ) { LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking if operator1 and domain are running, if not creating" ) ; createResultAndPvDirs ( testClassName ) ; if ( operator1 == null ) { ArrayList < String > targetDomainsNS = new ArrayList < String > ( ) ; targetDomainsNS . add ( domainNSShutOpCluster ) ; targetDomainsNS . add ( domainNSShutOpDomain ) ; targetDomainsNS . add ( domainNSShutOpEnv ) ; targetDomainsNS . add ( domainNSShutOpMS ) ; targetDomainsNS . add ( domainNSShutOpMSForced ) ; targetDomainsNS . add ( domainNSShutOpMSIgnoreSessions ) ; targetDomainsNS . add ( domainNSShutOpMSTimeout ) ; targetDomainsNS . add ( domainNSShutOpOverrideViaCluster ) ; targetDomainsNS . add ( domainNSShutOpOverrideViaEnv ) ; Map < String , Object > operatorMap = createOperatorMap ( getNewSuffixCount ( ) , true , testClassName ) ; operatorMap . put ( "domainNamespaces" , targetDomainsNS ) ; operator1 = TestUtils . createOperator ( operatorMap , Operator . RestCertType . SELF_SIGNED ) ; Assertions . assertNotNull ( operator1 ) ; namespaceList . append ( ( String ) operatorMap . get ( "namespace" ) ) ; namespaceList . append ( " " ) . append ( domainNSShutOpOverrideViaCluster ) . append ( " " ) . append ( domainNSShutOpMS ) . append ( " " ) . append ( domainNSShutOpMSForced ) . append ( " " ) . append ( domainNSShutOpMSIgnoreSessions ) . append ( " " ) . append ( domainNSShutOpMSTimeout ) . append ( " " ) . append ( domainNSShutOpEnv ) . append ( " " ) . append ( domainNSShutOpDomain ) . append ( " " ) . append ( domainNSShutOpOverrideViaEnv ) . append ( " " ) . append ( domainNSShutOpCluster ) ; } } }
This method gets called before every test.
This method gets called before every test .
// initialize test properties and create the directories // create operator1