integration-tests/src/test/java/oracle/kubernetes/operator/ItSitConfigDomainInImage.java
@BeforeEach
  public void prepare() throws Exception {
    // initialize test properties and create the directories
    if (FULLTEST) {
      // create operator1
      if (operator1 == null) {
        createResultAndPvDirs(testClassName);
        Map<String, Object> operatorMap = createOperatorMap(testNumber, true, testprefix);
        operator1 = TestUtils.createOperator(operatorMap, Operator.RestCertType.SELF_SIGNED);
        Assertions.assertNotNull(operator1);
        domainNS = ((ArrayList<String>) operatorMap.get("domainNamespaces")).get(0);
        namespaceList.append((String) operatorMap.get("namespace"));
        namespaceList.append(" ").append(domainNS);
        mysqldbport = String.valueOf(31306 + testNumber);
        domain = prepareDomainAndDB(true, domainNS, mysqldbport);
        JDBC_URL = "jdbc:mysql://" + fqdn + ":" + mysqldbport + "/";
        mysqlYamlFile = getResultDir() + "/sitconfigtemp" + testprefix + "/mysql/mysql-dbservices.yml";
        Assertions.assertNotNull(domain);
      }
    }
  }
/**
   * This method gets called before every test. It creates the resultRoot, pvRoot directories, creates operator and
   * domain if not running.
   *
   * @throws Exception if results/pv directory or operator or domain creation fails.
   */
This method gets called before every test. It creates the resultRoot, pvRoot directories, creates operator and
domain if not running.

@throws Exception if results/pv directory or operator or domain creation fails.
This method gets called before every test . It creates the resultRoot pvRoot directories creates operator and domain if not running . @throws Exception if results / pv directory or operator or domain creation fails .
@BeforeEach
  public void prepare() throws Exception {
    if (FULLTEST) {
      if (operator1 == null) {
        createResultAndPvDirs(testClassName);
        Map<String, Object> operatorMap = createOperatorMap(testNumber, true, testprefix);
        operator1 = TestUtils.createOperator(operatorMap, Operator.RestCertType.SELF_SIGNED);
        Assertions.assertNotNull(operator1);
        domainNS = ((ArrayList<String>) operatorMap.get("domainNamespaces")).get(0);
        namespaceList.append((String) operatorMap.get("namespace"));
        namespaceList.append(" ").append(domainNS);
        mysqldbport = String.valueOf(31306 + testNumber);
        domain = prepareDomainAndDB(true, domainNS, mysqldbport);
        JDBC_URL = "jdbc:mysql://" + fqdn + ":" + mysqldbport + "/";
        mysqlYamlFile = getResultDir() + "/sitconfigtemp" + testprefix + "/mysql/mysql-dbservices.yml";
        Assertions.assertNotNull(domain);
      }
    }
  }
@ BeforeEach public void prepare ( ) throws Exception { if ( FULLTEST ) { if ( operator1 == null ) { createResultAndPvDirs ( testClassName ) ; Map < String , Object > operatorMap = createOperatorMap ( testNumber , true , testprefix ) ; operator1 = TestUtils . createOperator ( operatorMap , Operator . RestCertType . SELF_SIGNED ) ; Assertions . assertNotNull ( operator1 ) ; domainNS = ( ( ArrayList < String > ) operatorMap . get ( "domainNamespaces" ) ) . get ( 0 ) ; namespaceList . append ( ( String ) operatorMap . get ( "namespace" ) ) ; namespaceList . append ( " " ) . append ( domainNS ) ; mysqldbport = String . valueOf ( 31306 + testNumber ) ; domain = prepareDomainAndDB ( true , domainNS , mysqldbport ) ; JDBC_URL = "jdbc:mysql://" + fqdn + ":" + mysqldbport + "/" ; mysqlYamlFile = getResultDir ( ) + "/sitconfigtemp" + testprefix + "/mysql/mysql-dbservices.yml" ; Assertions . assertNotNull ( domain ) ; } } }
This method gets called before every test.
This method gets called before every test .
// initialize test properties and create the directories // create operator1