1
- // Copyright (c) 2021, 2022 , Oracle and/or its affiliates.
1
+ // Copyright (c) 2021, 2023 , Oracle and/or its affiliates.
2
2
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3
3
4
4
package oracle .weblogic .kubernetes ;
@@ -527,24 +527,25 @@ void testDynamicClusterScale() {
527
527
528
528
// use clusterStatus.sh to make sure the server-to-be-test doesn't exist
529
529
// String regex matches below
530
- // cluster min max goal current ready
531
- // clusterName 0 5 1 1 1
532
- String regex = ".*" + DYNAMIC_CLUSTER + "(\\ s+)0(\\ s+)5(\\ s+)1(\\ s+)1(\\ s+)1" ;
530
+ // cluster status available min max goal current ready
531
+ // clusterName Completed True 0 5 1 1 1
532
+ String regex =
533
+ ".*" + DYNAMIC_CLUSTER + "(\\ s+)Completed(\\ s+)True(\\ s+)0(\\ s+)5(\\ s+)1(\\ s+)1(\\ s+)1" ;
533
534
scalingClusters (domainUid , domainNamespace , DYNAMIC_CLUSTER ,
534
535
dynamicServerPodName , replicaCount , regex , false , samplePath );
535
536
// String regex matches below
536
- // cluster min max goal current ready
537
- // clusterName 0 2 1 1 1
538
- regex = ".*" + CONFIG_CLUSTER + "(\\ s+)0(\\ s+)2(\\ s+)1(\\ s+)1(\\ s+)1" ;
537
+ // cluster status available min max goal current ready
538
+ // clusterName Completed True 0 2 1 1 1
539
+ regex = ".*" + CONFIG_CLUSTER + "(\\ s+)Completed( \\ s+)True( \\ s+) 0(\\ s+)2(\\ s+)1(\\ s+)1(\\ s+)1" ;
539
540
scalingClusters (domainUid , domainNamespace , configuredClusterResourceName , configServerPodName ,
540
541
replicaCount , regex , false , samplePath );
541
542
542
543
// use scaleCluster.sh to scale a dynamic cluster and
543
544
// use clusterStatus.sh to verify scaling results
544
545
// String regex matches below
545
- // cluster min max goal current ready
546
- // clusterName 0 5 2 2 2
547
- regex = ".*" + DYNAMIC_CLUSTER + "(\\ s+)0(\\ s+)5(\\ s+)2(\\ s+)2(\\ s+)2" ;
546
+ // cluster status available min max goal current ready
547
+ // clusterName Completed True 0 5 2 2 2
548
+ regex = ".*" + DYNAMIC_CLUSTER + "(\\ s+)Completed( \\ s+)True( \\ s+) 0(\\ s+)5(\\ s+)2(\\ s+)2(\\ s+)2" ;
548
549
scalingClusters (domainUid , domainNamespace , DYNAMIC_CLUSTER ,
549
550
dynamicServerPodName , newReplicaCount , regex , true , samplePath );
550
551
@@ -556,9 +557,9 @@ void testDynamicClusterScale() {
556
557
557
558
// use clusterStatus.sh to restore test env
558
559
// String regex matches below
559
- // cluster min max goal current ready
560
- // clusterName 0 5 1 1 1
561
- regex = ".*" + DYNAMIC_CLUSTER + "(\\ s+)0(\\ s+)5(\\ s+)1(\\ s+)1(\\ s+)1" ;
560
+ // cluster status available min max goal current ready
561
+ // clusterName Completed True 0 5 1 1 1
562
+ regex = ".*" + DYNAMIC_CLUSTER + "(\\ s+)Completed( \\ s+)True( \\ s+) 0(\\ s+)5(\\ s+)1(\\ s+)1(\\ s+)1" ;
562
563
scalingClusters (domainUid , domainNamespace ,DYNAMIC_CLUSTER , dynamicServerPodName ,
563
564
replicaCount , regex , false , samplePath );
564
565
}
0 commit comments