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

    logTestBegin(testMethodName);
    LoggerHelper.getLocal().log(Level.INFO,
        "Creating coeherence domain on pv using wlst and testing the cache");

    testCompletedSuccessfully = false;
    domain = null;
    try {
      Map<String, Object> domainMap = createDomainMap(getNewSuffixCount(), testClassName);
      domainMap.put("clusterName", "appCluster");
      domainMap.put("domainUID", DOMAINUID);
      domainMap.put("customDomainTemplate", customDomainTemplate);
      domainMap.put("namespace", domainNS1);
      domainMap.put(
          "createDomainPyScript",
          "integration-tests/src/test/resources/domain-home-on-pv/" + COHERENCE_CLUSTER_SCRIPT);
      domainMap.put(
          "javaOptions",
          "-Dweblogic.debug.DebugDeploymentService=true -Dweblogic.debug.DebugDeploymentServiceTransport=true " 
          + "-Dweblogic.debug.DebugDeploymentServiceInternal=true "
          + "-Dweblogic.debug.DebugDeploymentServiceTransport=true");

      createDomainAndDeployApp(domainMap, DOMAINUID);
      coherenceCacheTest();

      testCompletedSuccessfully = true;
    } finally {
      if (domain != null) {
        domain.logServerPods();
      }
      if (domain != null && (JENKINS || testCompletedSuccessfully)) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
/**
   * Create operator and verify its deployed successfully. Create domain with 2 Managed coherence
   * clusters verify domain is started. Deploy an application to the cluster with no storage enabled
   * and the GAR file to the cluster with storage enabled. Verify that data can be added and stored
   * in the cache and can also be retrieved from cache.
   *
   * @throws Exception exception
   */
Create operator and verify its deployed successfully. Create domain with 2 Managed coherence
clusters verify domain is started. Deploy an application to the cluster with no storage enabled
and the GAR file to the cluster with storage enabled. Verify that data can be added and stored
in the cache and can also be retrieved from cache.

@throws Exception exception
Create operator and verify its deployed successfully . Create domain with 2 Managed coherence clusters verify domain is started . Deploy an application to the cluster with no storage enabled and the GAR file to the cluster with storage enabled . Verify that data can be added and stored in the cache and can also be retrieved from cache . @throws Exception exception
@Test
  public void testCreateCoherenceDomainOnPvUsingWlst() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    LoggerHelper.getLocal().log(Level.INFO,
        "Creating coeherence domain on pv using wlst and testing the cache");
    testCompletedSuccessfully = false;
    domain = null;
    try {
      Map<String, Object> domainMap = createDomainMap(getNewSuffixCount(), testClassName);
      domainMap.put("clusterName", "appCluster");
      domainMap.put("domainUID", DOMAINUID);
      domainMap.put("customDomainTemplate", customDomainTemplate);
      domainMap.put("namespace", domainNS1);
      domainMap.put(
          "createDomainPyScript",
          "integration-tests/src/test/resources/domain-home-on-pv/" + COHERENCE_CLUSTER_SCRIPT);
      domainMap.put(
          "javaOptions",
          "-Dweblogic.debug.DebugDeploymentService=true -Dweblogic.debug.DebugDeploymentServiceTransport=true " 
          + "-Dweblogic.debug.DebugDeploymentServiceInternal=true "
          + "-Dweblogic.debug.DebugDeploymentServiceTransport=true");
      createDomainAndDeployApp(domainMap, DOMAINUID);
      coherenceCacheTest();
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null) {
        domain.logServerPods();
      }
      if (domain != null && (JENKINS || testCompletedSuccessfully)) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
@ Test public void testCreateCoherenceDomainOnPvUsingWlst ( ) throws Exception { Assumptions . assumeTrue ( FULLTEST ) ; String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethodName ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Creating coeherence domain on pv using wlst and testing the cache" ) ; testCompletedSuccessfully = false ; domain = null ; try { Map < String , Object > domainMap = createDomainMap ( getNewSuffixCount ( ) , testClassName ) ; domainMap . put ( "clusterName" , "appCluster" ) ; domainMap . put ( "domainUID" , DOMAINUID ) ; domainMap . put ( "customDomainTemplate" , customDomainTemplate ) ; domainMap . put ( "namespace" , domainNS1 ) ; domainMap . put ( "createDomainPyScript" , "integration-tests/src/test/resources/domain-home-on-pv/" + COHERENCE_CLUSTER_SCRIPT ) ; domainMap . put ( "javaOptions" , "-Dweblogic.debug.DebugDeploymentService=true -Dweblogic.debug.DebugDeploymentServiceTransport=true " + "-Dweblogic.debug.DebugDeploymentServiceInternal=true " + "-Dweblogic.debug.DebugDeploymentServiceTransport=true" ) ; createDomainAndDeployApp ( domainMap , DOMAINUID ) ; coherenceCacheTest ( ) ; testCompletedSuccessfully = true ; } finally { if ( domain != null ) { domain . logServerPods ( ) ; } if ( domain != null && ( JENKINS || testCompletedSuccessfully ) ) { TestUtils . deleteWeblogicDomainResources ( domain . getDomainUid ( ) ) ; } } LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethodName ) ; }
Create operator and verify its deployed successfully.
Create operator and verify its deployed successfully .