new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItScaleMiiDomainNginx.java
@Test
  @DisplayName("Verify scale each cluster of the domain using WLDF policy")
  public void testScaleClustersWithWLDF() {

    String clusterName = "cluster-1";
    curlCmd = generateCurlCmd(clusterName, SAMPLE_APP_CONTEXT_ROOT);

    // scale up the cluster by 1 server
    logger.info("Scaling cluster {0} of domain {1} in namespace {2} from {3} servers to {4} servers.",
        clusterName, domainUid, domainNamespace, replicaCount, replicaCount + 1);
    List<String> managedServersBeforeScale = listManagedServersBeforeScale(clusterName, replicaCount);
    scaleClusterAndVerifyWithWLDF(clusterName, replicaCount, replicaCount + 1,
        managedServersBeforeScale, "scaleUp");

    // scale down the cluster by 1 server
    logger.info("Scaling cluster {0} of domain {1} in namespace {2} from {3} servers to {4} servers.",
        clusterName, domainUid, domainNamespace, replicaCount + 1, replicaCount);
    managedServersBeforeScale = listManagedServersBeforeScale(clusterName, replicaCount + 1);
    scaleClusterAndVerifyWithWLDF(clusterName, replicaCount + 1, replicaCount,
        managedServersBeforeScale, "scaleDown");

  }
/**
   * Scale each cluster in the domain using WLDF policy.
   */
Scale each cluster in the domain using WLDF policy.
Scale each cluster in the domain using WLDF policy .
@Test
  @DisplayName("Verify scale each cluster of the domain using WLDF policy")
  public void testScaleClustersWithWLDF() {
    String clusterName = "cluster-1";
    curlCmd = generateCurlCmd(clusterName, SAMPLE_APP_CONTEXT_ROOT);
    logger.info("Scaling cluster {0} of domain {1} in namespace {2} from {3} servers to {4} servers.",
        clusterName, domainUid, domainNamespace, replicaCount, replicaCount + 1);
    List<String> managedServersBeforeScale = listManagedServersBeforeScale(clusterName, replicaCount);
    scaleClusterAndVerifyWithWLDF(clusterName, replicaCount, replicaCount + 1,
        managedServersBeforeScale, "scaleUp");
    logger.info("Scaling cluster {0} of domain {1} in namespace {2} from {3} servers to {4} servers.",
        clusterName, domainUid, domainNamespace, replicaCount + 1, replicaCount);
    managedServersBeforeScale = listManagedServersBeforeScale(clusterName, replicaCount + 1);
    scaleClusterAndVerifyWithWLDF(clusterName, replicaCount + 1, replicaCount,
        managedServersBeforeScale, "scaleDown");
  }
@ Test @ DisplayName ( "Verify scale each cluster of the domain using WLDF policy" ) public void testScaleClustersWithWLDF ( ) { String clusterName = "cluster-1" ; curlCmd = generateCurlCmd ( clusterName , SAMPLE_APP_CONTEXT_ROOT ) ; logger . info ( "Scaling cluster {0} of domain {1} in namespace {2} from {3} servers to {4} servers." , clusterName , domainUid , domainNamespace , replicaCount , replicaCount + 1 ) ; List < String > managedServersBeforeScale = listManagedServersBeforeScale ( clusterName , replicaCount ) ; scaleClusterAndVerifyWithWLDF ( clusterName , replicaCount , replicaCount + 1 , managedServersBeforeScale , "scaleUp" ) ; logger . info ( "Scaling cluster {0} of domain {1} in namespace {2} from {3} servers to {4} servers." , clusterName , domainUid , domainNamespace , replicaCount + 1 , replicaCount ) ; managedServersBeforeScale = listManagedServersBeforeScale ( clusterName , replicaCount + 1 ) ; scaleClusterAndVerifyWithWLDF ( clusterName , replicaCount + 1 , replicaCount , managedServersBeforeScale , "scaleDown" ) ; }
Scale each cluster in the domain using WLDF policy.
Scale each cluster in the domain using WLDF policy .
// scale up the cluster by 1 server // scale down the cluster by 1 server