integration-tests/src/test/java/oracle/kubernetes/operator/ItMultipleClusters.java
@Test
  public void testCreateDomainTwoMixedCluster() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String domainuid = "twomixedclusterdomain";
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    Domain domain = null;
    boolean testCompletedSuccessfully = false;
    try {
      Map<String, Object> domainMap = createDomainMap(getNewSuffixCount(), testClassName);
      domainMap.put("domainUID", domainuid);
      domainMap.put("customDomainTemplate", customDomainTemplate);
      domainMap.put("namespace", domainNS1);
      domainMap.put(
          "createDomainPyScript",
          "integration-tests/src/test/resources/domain-home-on-pv/" + TWO_MIXED_CLUSTER_SCRIPT);
      domain = TestUtils.createDomain(domainMap);
      domain.verifyDomainCreated();

      String cluster2PodName1 = domainuid + "-new-managed-server1";
      String cluster2PodName2 = domainuid + "-new-managed-server2";

      TestUtils.checkPodReady(cluster2PodName1, domainNS1);
      TestUtils.checkPodReady(cluster2PodName2, domainNS1);

      TestUtils.checkServiceCreated(cluster2PodName1, domainNS1);
      TestUtils.checkServiceCreated(cluster2PodName2, domainNS1);

      TestUtils.resolveServiceName(cluster2PodName1,
          domainuid + "-" + domain.getAdminServerName(), domainNS1, retriesToResolveServiceName);
      TestUtils.resolveServiceName(cluster2PodName2,
          domainuid + "-" + domain.getAdminServerName(), domainNS1, retriesToResolveServiceName);

      testBasicUseCases(domain, false);
      domain.testWlsLivenessProbe();
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null && (JENKINS || testCompletedSuccessfully)) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
/**
   * Create 2 clusters(configured and dynamic) in a domain each having 2 managed servers. Verify the
   * managed servers are running and verify the basic use cases.
   *
   * @throws Exception exception
   */
Create 2 clusters(configured and dynamic) in a domain each having 2 managed servers. Verify the
managed servers are running and verify the basic use cases.

@throws Exception exception
Create 2 clusters ( configured and dynamic ) in a domain each having 2 managed servers . Verify the managed servers are running and verify the basic use cases . @throws Exception exception
@Test
  public void testCreateDomainTwoMixedCluster() throws Exception {
    Assumptions.assumeTrue(FULLTEST);
    String domainuid = "twomixedclusterdomain";
    String testMethodName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    logTestBegin(testMethodName);
    Domain domain = null;
    boolean testCompletedSuccessfully = false;
    try {
      Map<String, Object> domainMap = createDomainMap(getNewSuffixCount(), testClassName);
      domainMap.put("domainUID", domainuid);
      domainMap.put("customDomainTemplate", customDomainTemplate);
      domainMap.put("namespace", domainNS1);
      domainMap.put(
          "createDomainPyScript",
          "integration-tests/src/test/resources/domain-home-on-pv/" + TWO_MIXED_CLUSTER_SCRIPT);
      domain = TestUtils.createDomain(domainMap);
      domain.verifyDomainCreated();
      String cluster2PodName1 = domainuid + "-new-managed-server1";
      String cluster2PodName2 = domainuid + "-new-managed-server2";
      TestUtils.checkPodReady(cluster2PodName1, domainNS1);
      TestUtils.checkPodReady(cluster2PodName2, domainNS1);
      TestUtils.checkServiceCreated(cluster2PodName1, domainNS1);
      TestUtils.checkServiceCreated(cluster2PodName2, domainNS1);
      TestUtils.resolveServiceName(cluster2PodName1,
          domainuid + "-" + domain.getAdminServerName(), domainNS1, retriesToResolveServiceName);
      TestUtils.resolveServiceName(cluster2PodName2,
          domainuid + "-" + domain.getAdminServerName(), domainNS1, retriesToResolveServiceName);
      testBasicUseCases(domain, false);
      domain.testWlsLivenessProbe();
      testCompletedSuccessfully = true;
    } finally {
      if (domain != null && (JENKINS || testCompletedSuccessfully)) {
        TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
      }
    }
    LoggerHelper.getLocal().log(Level.INFO, "SUCCESS - " + testMethodName);
  }
@ Test public void testCreateDomainTwoMixedCluster ( ) throws Exception { Assumptions . assumeTrue ( FULLTEST ) ; String domainuid = "twomixedclusterdomain" ; String testMethodName = new Object ( ) { } . getClass ( ) . getEnclosingMethod ( ) . getName ( ) ; logTestBegin ( testMethodName ) ; Domain domain = null ; boolean testCompletedSuccessfully = false ; try { Map < String , Object > domainMap = createDomainMap ( getNewSuffixCount ( ) , testClassName ) ; domainMap . put ( "domainUID" , domainuid ) ; domainMap . put ( "customDomainTemplate" , customDomainTemplate ) ; domainMap . put ( "namespace" , domainNS1 ) ; domainMap . put ( "createDomainPyScript" , "integration-tests/src/test/resources/domain-home-on-pv/" + TWO_MIXED_CLUSTER_SCRIPT ) ; domain = TestUtils . createDomain ( domainMap ) ; domain . verifyDomainCreated ( ) ; String cluster2PodName1 = domainuid + "-new-managed-server1" ; String cluster2PodName2 = domainuid + "-new-managed-server2" ; TestUtils . checkPodReady ( cluster2PodName1 , domainNS1 ) ; TestUtils . checkPodReady ( cluster2PodName2 , domainNS1 ) ; TestUtils . checkServiceCreated ( cluster2PodName1 , domainNS1 ) ; TestUtils . checkServiceCreated ( cluster2PodName2 , domainNS1 ) ; TestUtils . resolveServiceName ( cluster2PodName1 , domainuid + "-" + domain . getAdminServerName ( ) , domainNS1 , retriesToResolveServiceName ) ; TestUtils . resolveServiceName ( cluster2PodName2 , domainuid + "-" + domain . getAdminServerName ( ) , domainNS1 , retriesToResolveServiceName ) ; testBasicUseCases ( domain , false ) ; domain . testWlsLivenessProbe ( ) ; testCompletedSuccessfully = true ; } finally { if ( domain != null && ( JENKINS || testCompletedSuccessfully ) ) { TestUtils . deleteWeblogicDomainResources ( domain . getDomainUid ( ) ) ; } } LoggerHelper . getLocal ( ) . log ( Level . INFO , "SUCCESS - " + testMethodName ) ; }
Create 2 clusters(configured and dynamic) in a domain each having 2 managed servers.
Create 2 clusters ( configured and dynamic ) in a domain each having 2 managed servers .