integration-tests/src/test/java/oracle/kubernetes/operator/ItDomainInImage.java
@Test
  public void testDomainInImageUsingWlst() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);

    LoggerHelper.getLocal().log(Level.INFO, "Creating Domain & verifying the domain creation");
    // create domain
    Domain domain = null;
    boolean testCompletedSuccessfully = false;
    try {
      Map<String, Object> domainMap = createDomainInImageMap(
              getNewSuffixCount(), false, testClassName);
      domainMap.put("namespace", domainNS1);
      domainMap.remove("clusterType");
      domain = TestUtils.createDomain(domainMap);
      domain.verifyDomainCreated();
      domain.enablePrecreateService();
      testBasicUseCases(domain, true);
      testClusterScaling(operator1, domain, false);
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null && (JENKINS || testCompletedSuccessfully)) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
      if (domain != null) {
        domain.deleteImage();
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
/**
   * Create Operator and create domain using domain-in-image option. Verify the domain is started
   * successfully and web application can be deployed and accessed.
   *
   * @throws Exception exception
   */
Create Operator and create domain using domain-in-image option. Verify the domain is started
successfully and web application can be deployed and accessed.

@throws Exception exception
Create Operator and create domain using domain - in - image option . Verify the domain is started successfully and web application can be deployed and accessed . @throws Exception exception
@Test
  public void testDomainInImageUsingWlst() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    LoggerHelper.getLocal().log(Level.INFO, "Creating Domain & verifying the domain creation");
    Domain domain = null;
    boolean testCompletedSuccessfully = false;
    try {
      Map<String, Object> domainMap = createDomainInImageMap(
              getNewSuffixCount(), false, testClassName);
      domainMap.put("namespace", domainNS1);
      domainMap.remove("clusterType");
      domain = TestUtils.createDomain(domainMap);
      domain.verifyDomainCreated();
      domain.enablePrecreateService();
      testBasicUseCases(domain, true);
      testClusterScaling(operator1, domain, false);
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null && (JENKINS || testCompletedSuccessfully)) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
      if (domain != null) {
        domain.deleteImage();
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
@ Test public void testDomainInImageUsingWlst ( ) throws Exception { Assumptions . assumeTrue ( FULLTEST ) ; String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethodName ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Creating Domain & verifying the domain creation" ) ; Domain domain = null ; boolean testCompletedSuccessfully = false ; try { Map < String , Object > domainMap = createDomainInImageMap ( getNewSuffixCount ( ) , false , testClassName ) ; domainMap . put ( "namespace" , domainNS1 ) ; domainMap . remove ( "clusterType" ) ; domain = TestUtils . createDomain ( domainMap ) ; domain . verifyDomainCreated ( ) ; domain . enablePrecreateService ( ) ; testBasicUseCases ( domain , true ) ; testClusterScaling ( operator1 , domain , false ) ; testCompletedSuccessfully = true ; } finally { if ( domain != null && ( JENKINS || testCompletedSuccessfully ) ) { TestUtils . deleteWeblogicDomainResources ( domain . getDomainUid ( ) ) ; } if ( domain != null ) { domain . deleteImage ( ) ; } } LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethodName ) ; }
Create Operator and create domain using domain-in-image option.
Create Operator and create domain using domain - in - image option .
// create domain