new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItOperatorTwoDomains.java
private void shutdownBothDomainsAndVerify() {

    // shutdown both domains
    logger.info("Shutting down both domains");
    for (int i = 0; i < numberOfDomains; i++) {
      shutdownDomain(domainUids.get(i), domainNamespaces.get(i));
    }

    // verify all the pods were shutdown
    logger.info("Verifying all server pods were shutdown for both domains");
    for (int i = 0; i < numberOfDomains; i++) {
      // check admin server pod was shutdown
      checkPodDoesNotExist(domainUids.get(i) + "-" + ADMIN_SERVER_NAME_BASE,
          domainUids.get(i), domainNamespaces.get(i));

      for (int j = 1; j <= replicaCount; j++) {
        String managedServerPodName = domainUids.get(i) + "-" + MANAGED_SERVER_NAME_BASE + j;
        checkPodDoesNotExist(managedServerPodName, domainUids.get(i), domainNamespaces.get(i));
      }
    }

    // check the scaled up managed servers in domain1 were shutdown
    logger.info("Verifying the scaled up managed servers in domain1 were shutdown");
    for (int i = replicaCount + 1; i <= replicasAfterScale; i++) {
      String managedServerPodName = domain1Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
      checkPodDoesNotExist(managedServerPodName, domain1Uid, domain1Namespace);
    }

  }
/**
   * Shutdown both domains and verify all the server pods were shutdown.
   */
Shutdown both domains and verify all the server pods were shutdown.
Shutdown both domains and verify all the server pods were shutdown .
private void shutdownBothDomainsAndVerify() {
    logger.info("Shutting down both domains");
    for (int i = 0; i < numberOfDomains; i++) {
      shutdownDomain(domainUids.get(i), domainNamespaces.get(i));
    }
    logger.info("Verifying all server pods were shutdown for both domains");
    for (int i = 0; i < numberOfDomains; i++) {
      checkPodDoesNotExist(domainUids.get(i) + "-" + ADMIN_SERVER_NAME_BASE,
          domainUids.get(i), domainNamespaces.get(i));
      for (int j = 1; j <= replicaCount; j++) {
        String managedServerPodName = domainUids.get(i) + "-" + MANAGED_SERVER_NAME_BASE + j;
        checkPodDoesNotExist(managedServerPodName, domainUids.get(i), domainNamespaces.get(i));
      }
    }
    logger.info("Verifying the scaled up managed servers in domain1 were shutdown");
    for (int i = replicaCount + 1; i <= replicasAfterScale; i++) {
      String managedServerPodName = domain1Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
      checkPodDoesNotExist(managedServerPodName, domain1Uid, domain1Namespace);
    }
  }
private void shutdownBothDomainsAndVerify ( ) { logger . info ( "Shutting down both domains" ) ; for ( int i = 0 ; i < numberOfDomains ; i ++ ) { shutdownDomain ( domainUids . get ( i ) , domainNamespaces . get ( i ) ) ; } logger . info ( "Verifying all server pods were shutdown for both domains" ) ; for ( int i = 0 ; i < numberOfDomains ; i ++ ) { checkPodDoesNotExist ( domainUids . get ( i ) + "-" + ADMIN_SERVER_NAME_BASE , domainUids . get ( i ) , domainNamespaces . get ( i ) ) ; for ( int j = 1 ; j <= replicaCount ; j ++ ) { String managedServerPodName = domainUids . get ( i ) + "-" + MANAGED_SERVER_NAME_BASE + j ; checkPodDoesNotExist ( managedServerPodName , domainUids . get ( i ) , domainNamespaces . get ( i ) ) ; } } logger . info ( "Verifying the scaled up managed servers in domain1 were shutdown" ) ; for ( int i = replicaCount + 1 ; i <= replicasAfterScale ; i ++ ) { String managedServerPodName = domain1Uid + "-" + MANAGED_SERVER_NAME_BASE + i ; checkPodDoesNotExist ( managedServerPodName , domain1Uid , domain1Namespace ) ; } }
Shutdown both domains and verify all the server pods were shutdown.
Shutdown both domains and verify all the server pods were shutdown .
// shutdown both domains // verify all the pods were shutdown // check admin server pod was shutdown // check the scaled up managed servers in domain1 were shutdown