integration-tests/src/test/java/oracle/kubernetes/operator/ItJrfPvWlst.java
@Test
  public void testJrfDomainOnPvUsingWlst() {
    if (QUICKTEST) {
      String testMethodName = new Object() {
      }.getClass().getEnclosingMethod().getName();
      LoggerHelper.getLocal().log(Level.INFO,
          "+++++++++++++++++++++++++++++++++---------------------------------+");
      LoggerHelper.getLocal().log(Level.INFO, "BEGIN " + testMethodName);
      
      boolean testCompletedSuccessfully = false;

      try {
        // create JRF domain
        Map<String, Object> domainMap = createDomainMap(getNewSuffixCount(), testClassName);
        domainMap.put("namespace", domainNS);
        domainMap.put("initialManagedServerReplicas", new Integer("2"));
        domainMap.put("clusterName", "infra-cluster");
        domainMap.put("managedServerNameBase", "infraserver");
        domainMap.put("domainHomeSourceType", "PersistentVolume");
        domainMap.put("rcuSchemaPrefix", "jrfdomain");
        LoggerHelper.getLocal().log(Level.INFO, "DEBUG " + testClassName + "domain: dbUrl: " 
            + dbUrl);
        domainMap.put("rcuDatabaseURL", dbUrl);
        domainUid = (String) domainMap.get("domainUID");
        LoggerHelper.getLocal().log(Level.INFO,
            "Creating and verifying the domain creation with domainUid: " + domainUid);

        jrfdomain = assertDoesNotThrow(() -> new JrfDomain(domainMap), 
            "Failed: JRF domain creation");
        LoggerHelper.getLocal().log(Level.INFO, "JRF domain is created for {0}", 
            testClassName);
        assertDoesNotThrow(() -> jrfdomain.verifyDomainCreated(), 
            "Failed: domain verification");
        LoggerHelper.getLocal().log(Level.INFO, "JRF domain verification succeeded for {0}", 
            testClassName);
        
        // basic test cases
        assertDoesNotThrow(() -> testBasicUseCases(jrfdomain, false));
        LoggerHelper.getLocal().log(Level.INFO, "JRF domain BasicUseCases succeeded for {0}", 
            testClassName);

        testCompletedSuccessfully = true;
      } finally {
        if (jrfdomain != null  && (JENKINS || testCompletedSuccessfully)) {
          assertDoesNotThrow(() -> jrfdomain.shutdownUsingServerStartPolicy());
        }
      }

      LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
    }
  }
/**
   * Create and deploy a JRF domain. Verify the domain is created successfully.
   */
Create and deploy a JRF domain. Verify the domain is created successfully.
Create and deploy a JRF domain . Verify the domain is created successfully .
@Test
  public void testJrfDomainOnPvUsingWlst() {
    if (QUICKTEST) {
      String testMethodName = new Object() {
      }.getClass().getEnclosingMethod().getName();
      LoggerHelper.getLocal().log(Level.INFO,
          "+++++++++++++++++++++++++++++++++---------------------------------+");
      LoggerHelper.getLocal().log(Level.INFO, "BEGIN " + testMethodName);
      boolean testCompletedSuccessfully = false;
      try {
        Map<String, Object> domainMap = createDomainMap(getNewSuffixCount(), testClassName);
        domainMap.put("namespace", domainNS);
        domainMap.put("initialManagedServerReplicas", new Integer("2"));
        domainMap.put("clusterName", "infra-cluster");
        domainMap.put("managedServerNameBase", "infraserver");
        domainMap.put("domainHomeSourceType", "PersistentVolume");
        domainMap.put("rcuSchemaPrefix", "jrfdomain");
        LoggerHelper.getLocal().log(Level.INFO, "DEBUG " + testClassName + "domain: dbUrl: " 
            + dbUrl);
        domainMap.put("rcuDatabaseURL", dbUrl);
        domainUid = (String) domainMap.get("domainUID");
        LoggerHelper.getLocal().log(Level.INFO,
            "Creating and verifying the domain creation with domainUid: " + domainUid);
        jrfdomain = assertDoesNotThrow(() -> new JrfDomain(domainMap), 
            "Failed: JRF domain creation");
        LoggerHelper.getLocal().log(Level.INFO, "JRF domain is created for {0}", 
            testClassName);
        assertDoesNotThrow(() -> jrfdomain.verifyDomainCreated(), 
            "Failed: domain verification");
        LoggerHelper.getLocal().log(Level.INFO, "JRF domain verification succeeded for {0}", 
            testClassName);
        assertDoesNotThrow(() -> testBasicUseCases(jrfdomain, false));
        LoggerHelper.getLocal().log(Level.INFO, "JRF domain BasicUseCases succeeded for {0}", 
            testClassName);
        testCompletedSuccessfully = true;
      } finally {
        if (jrfdomain != null  && (JENKINS || testCompletedSuccessfully)) {
          assertDoesNotThrow(() -> jrfdomain.shutdownUsingServerStartPolicy());
        }
      }
      LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
    }
  }
@ Test public void testJrfDomainOnPvUsingWlst ( ) { if ( QUICKTEST ) { String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "+++++++++++++++++++++++++++++++++---------------------------------+" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "BEGIN " + testMethodName ) ; boolean testCompletedSuccessfully = false ; try { Map < String , Object > domainMap = createDomainMap ( getNewSuffixCount ( ) , testClassName ) ; domainMap . put ( "namespace" , domainNS ) ; domainMap . put ( "initialManagedServerReplicas" , new Integer ( "2" ) ) ; domainMap . put ( "clusterName" , "infra-cluster" ) ; domainMap . put ( "managedServerNameBase" , "infraserver" ) ; domainMap . put ( "domainHomeSourceType" , "PersistentVolume" ) ; domainMap . put ( "rcuSchemaPrefix" , "jrfdomain" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "DEBUG " + testClassName + "domain: dbUrl: " + dbUrl ) ; domainMap . put ( "rcuDatabaseURL" , dbUrl ) ; domainUid = ( String ) domainMap . get ( "domainUID" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Creating and verifying the domain creation with domainUid: " + domainUid ) ; jrfdomain = assertDoesNotThrow ( ( ) -> new JrfDomain ( domainMap ) , "Failed: JRF domain creation" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "JRF domain is created for {0}" , testClassName ) ; assertDoesNotThrow ( ( ) -> jrfdomain . verifyDomainCreated ( ) , "Failed: domain verification" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "JRF domain verification succeeded for {0}" , testClassName ) ; assertDoesNotThrow ( ( ) -> testBasicUseCases ( jrfdomain , false ) ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "JRF domain BasicUseCases succeeded for {0}" , testClassName ) ; testCompletedSuccessfully = true ; } finally { if ( jrfdomain != null && ( JENKINS || testCompletedSuccessfully ) ) { assertDoesNotThrow ( ( ) -> jrfdomain . shutdownUsingServerStartPolicy ( ) ) ; } } LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethodName ) ; } }
Create and deploy a JRF domain.
Create and deploy a JRF domain .
// create JRF domain // basic test cases