integration-tests/src/test/java/oracle/kubernetes/operator/ItModelInImage.java
@Test
  public void testMiiWithConfigMapBothBeforeAndAfterDeployingDomain() throws Exception {
    Assumptions.assumeTrue(QUICKTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    LoggerHelper.getLocal().log(Level.INFO,
        "Creating Domain & waiting for the script to complete execution");
    Domain domain = null;
    boolean testCompletedSuccessfully = false;
    try {

      domain = createMiiDomainWithConfigMap(testClassName, domainNS, "./model.wls.yaml",
          "./model.empty.properties", "./model.properties", "WLS");
      Map<String, Object> domainMap = domain.getDomainMap();
      //ToDo: access MS using port given in the configmap props

      // config map after deploying domain crd
      String cmName = domainMap.get("domainUID") + "-mii-config-map2";
      String cmFile = getResultDir() + "/samples/model-in-image/model.cm.properties";
      TestUtils.createConfigMap(cmName, cmFile, domainNS,
          " weblogic.domainUID=" + domainMap.get("domainUID"));

      // update domain yaml with new config map, restartVersion and
      // apply the domain yaml, verify domain restarted
      modifyDomainYamlWithNewConfigMapAndDomainRestartVersion(
          cmName, domain);
      LoggerHelper.getLocal().log(Level.INFO, "Verifying if the domain is restarted");
      domain.verifyDomainRestarted();
      //ToDo: access MS using port given in the new configmap props
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null && (JENKINS || testCompletedSuccessfully)) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
    }

    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
/**
   * Create a domain using model in image and having configmap in the domain.yaml
   * before deploying the domain. After deploying the domain crd, create a new
   * config map and update the domain crd to new config map and change domain
   * restartVersion to reload the model, generate new config and initiate a
   * rolling restart.
   * @throws Exception exception
   */
Create a domain using model in image and having configmap in the domain.yaml
before deploying the domain. After deploying the domain crd, create a new
config map and update the domain crd to new config map and change domain
restartVersion to reload the model, generate new config and initiate a
rolling restart.
@throws Exception exception
Create a domain using model in image and having configmap in the domain . yaml before deploying the domain . After deploying the domain crd create a new config map and update the domain crd to new config map and change domain restartVersion to reload the model generate new config and initiate a rolling restart . @throws Exception exception
@Test
  public void testMiiWithConfigMapBothBeforeAndAfterDeployingDomain() throws Exception {
    Assumptions.assumeTrue(QUICKTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    LoggerHelper.getLocal().log(Level.INFO,
        "Creating Domain & waiting for the script to complete execution");
    Domain domain = null;
    boolean testCompletedSuccessfully = false;
    try {
      domain = createMiiDomainWithConfigMap(testClassName, domainNS, "./model.wls.yaml",
          "./model.empty.properties", "./model.properties", "WLS");
      Map<String, Object> domainMap = domain.getDomainMap();
      String cmName = domainMap.get("domainUID") + "-mii-config-map2";
      String cmFile = getResultDir() + "/samples/model-in-image/model.cm.properties";
      TestUtils.createConfigMap(cmName, cmFile, domainNS,
          " weblogic.domainUID=" + domainMap.get("domainUID"));
      modifyDomainYamlWithNewConfigMapAndDomainRestartVersion(
          cmName, domain);
      LoggerHelper.getLocal().log(Level.INFO, "Verifying if the domain is restarted");
      domain.verifyDomainRestarted();
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null && (JENKINS || testCompletedSuccessfully)) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
@ Test public void testMiiWithConfigMapBothBeforeAndAfterDeployingDomain ( ) throws Exception { Assumptions . assumeTrue ( QUICKTEST ) ; String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethodName ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Creating Domain & waiting for the script to complete execution" ) ; Domain domain = null ; boolean testCompletedSuccessfully = false ; try { domain = createMiiDomainWithConfigMap ( testClassName , domainNS , "./model.wls.yaml" , "./model.empty.properties" , "./model.properties" , "WLS" ) ; Map < String , Object > domainMap = domain . getDomainMap ( ) ; String cmName = domainMap . get ( "domainUID" ) + "-mii-config-map2" ; String cmFile = getResultDir ( ) + "/samples/model-in-image/model.cm.properties" ; TestUtils . createConfigMap ( cmName , cmFile , domainNS , " weblogic.domainUID=" + domainMap . get ( "domainUID" ) ) ; modifyDomainYamlWithNewConfigMapAndDomainRestartVersion ( cmName , domain ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Verifying if the domain is restarted" ) ; domain . verifyDomainRestarted ( ) ; testCompletedSuccessfully = true ; } finally { if ( domain != null && ( JENKINS || testCompletedSuccessfully ) ) { TestUtils . deleteWeblogicDomainResources ( domain . getDomainUid ( ) ) ; } } LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethodName ) ; }
Create a domain using model in image and having configmap in the domain.yaml
 before deploying the domain.
Create a domain using model in image and having configmap in the domain . yaml before deploying the domain .
//ToDo: access MS using port given in the configmap props // config map after deploying domain crd // update domain yaml with new config map, restartVersion and // apply the domain yaml, verify domain restarted //ToDo: access MS using port given in the new configmap props