new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItConfigDistributionStrategy.java
private void restartDomain() {
    logger.info("Restarting domain {0}", domainNamespace);
    shutdownDomain(domainUid, domainNamespace);

    logger.info("Checking for admin server pod shutdown");
    checkPodDoesNotExist(adminServerPodName, domainUid, domainNamespace);
    logger.info("Checking managed server pods were shutdown");
    for (int i = 1; i <= replicaCount; i++) {
      checkPodDoesNotExist(managedServerPodNamePrefix + i, domainUid, domainNamespace);
    }

    startDomain(domainUid, domainNamespace);
    //make sure that the introspector runs on a cold start
    verifyIntrospectorRuns();


    // verify the admin server service created
    checkServiceExists(adminServerPodName, domainNamespace);

    logger.info("Checking for admin server pod readiness");
    checkPodReady(adminServerPodName, domainUid, domainNamespace);

    // verify managed server services created
    for (int i = 1; i <= replicaCount; i++) {
      logger.info("Checking managed server service {0} is created in namespace {1}",
          managedServerPodNamePrefix + i, domainNamespace);
      checkServiceExists(managedServerPodNamePrefix + i, domainNamespace);
    }

    logger.info("Checking for managed servers pod readiness");
    for (int i = 1; i <= replicaCount; i++) {
      checkPodReady(managedServerPodNamePrefix + i, domainUid, domainNamespace);
    }
  }
//restart pods by manipulating the serverStartPolicy to NEVER and IF_NEEDED
restart pods by manipulating the serverStartPolicy to NEVER and IF_NEEDED
restart pods by manipulating the serverStartPolicy to NEVER and IF_NEEDED
private void restartDomain() {
    logger.info("Restarting domain {0}", domainNamespace);
    shutdownDomain(domainUid, domainNamespace);
    logger.info("Checking for admin server pod shutdown");
    checkPodDoesNotExist(adminServerPodName, domainUid, domainNamespace);
    logger.info("Checking managed server pods were shutdown");
    for (int i = 1; i <= replicaCount; i++) {
      checkPodDoesNotExist(managedServerPodNamePrefix + i, domainUid, domainNamespace);
    }
    startDomain(domainUid, domainNamespace);
    verifyIntrospectorRuns();
    checkServiceExists(adminServerPodName, domainNamespace);
    logger.info("Checking for admin server pod readiness");
    checkPodReady(adminServerPodName, domainUid, domainNamespace);
    for (int i = 1; i <= replicaCount; i++) {
      logger.info("Checking managed server service {0} is created in namespace {1}",
          managedServerPodNamePrefix + i, domainNamespace);
      checkServiceExists(managedServerPodNamePrefix + i, domainNamespace);
    }
    logger.info("Checking for managed servers pod readiness");
    for (int i = 1; i <= replicaCount; i++) {
      checkPodReady(managedServerPodNamePrefix + i, domainUid, domainNamespace);
    }
  }
private void restartDomain ( ) { logger . info ( "Restarting domain {0}" , domainNamespace ) ; shutdownDomain ( domainUid , domainNamespace ) ; logger . info ( "Checking for admin server pod shutdown" ) ; checkPodDoesNotExist ( adminServerPodName , domainUid , domainNamespace ) ; logger . info ( "Checking managed server pods were shutdown" ) ; for ( int i = 1 ; i <= replicaCount ; i ++ ) { checkPodDoesNotExist ( managedServerPodNamePrefix + i , domainUid , domainNamespace ) ; } startDomain ( domainUid , domainNamespace ) ; verifyIntrospectorRuns ( ) ; checkServiceExists ( adminServerPodName , domainNamespace ) ; logger . info ( "Checking for admin server pod readiness" ) ; checkPodReady ( adminServerPodName , domainUid , domainNamespace ) ; for ( int i = 1 ; i <= replicaCount ; i ++ ) { logger . info ( "Checking managed server service {0} is created in namespace {1}" , managedServerPodNamePrefix + i , domainNamespace ) ; checkServiceExists ( managedServerPodNamePrefix + i , domainNamespace ) ; } logger . info ( "Checking for managed servers pod readiness" ) ; for ( int i = 1 ; i <= replicaCount ; i ++ ) { checkPodReady ( managedServerPodNamePrefix + i , domainUid , domainNamespace ) ; } }
restart pods by manipulating the serverStartPolicy to NEVER and IF_NEEDED
restart pods by manipulating the serverStartPolicy to NEVER and IF_NEEDED
//make sure that the introspector runs on a cold start // verify the admin server service created // verify managed server services created