|
37 | 37 | import static oracle.weblogic.kubernetes.TestConstants.MANAGED_SERVER_NAME_BASE; |
38 | 38 | import static oracle.weblogic.kubernetes.TestConstants.MII_BASIC_IMAGE_NAME; |
39 | 39 | import static oracle.weblogic.kubernetes.TestConstants.MII_BASIC_IMAGE_TAG; |
| 40 | +import static oracle.weblogic.kubernetes.TestConstants.OKE_CLUSTER; |
40 | 41 | import static oracle.weblogic.kubernetes.TestConstants.OPERATOR_CHART_DIR; |
41 | 42 | import static oracle.weblogic.kubernetes.TestConstants.OPERATOR_RELEASE_NAME; |
42 | 43 | import static oracle.weblogic.kubernetes.TestConstants.TEST_IMAGES_REPO_SECRET_NAME; |
|
46 | 47 | import static oracle.weblogic.kubernetes.actions.impl.Domain.scaleClusterWithRestApi; |
47 | 48 | import static oracle.weblogic.kubernetes.utils.ClusterUtils.createClusterResourceAndAddReferenceToDomain; |
48 | 49 | import static oracle.weblogic.kubernetes.utils.CommonTestUtils.checkPodReadyAndServiceExists; |
| 50 | +import static oracle.weblogic.kubernetes.utils.CommonTestUtils.scaleAndVerifyCluster; |
49 | 51 | import static oracle.weblogic.kubernetes.utils.CommonTestUtils.verifyClusterAfterScaling; |
50 | 52 | import static oracle.weblogic.kubernetes.utils.DomainUtils.createDomainAndVerify; |
51 | 53 | import static oracle.weblogic.kubernetes.utils.OKDUtils.createRouteForOKD; |
|
66 | 68 | */ |
67 | 69 | @DisplayName("Test Operator and WebLogic domain with Dedicated set to true") |
68 | 70 | @Tag("kind-sequential") |
69 | | -@Tag("oke-sequential") |
| 71 | +@Tag("oke-gate") |
70 | 72 | @Tag("okd-wls-mrg") |
71 | 73 | @IntegrationTest |
72 | 74 | class ItDedicatedMode { |
@@ -208,8 +210,13 @@ void testDedicatedModeSameNamespace() { |
208 | 210 | } |
209 | 211 |
|
210 | 212 | logger.info("scaling the cluster from {0} servers to {1} servers", replicaCount, replicaCount + 1); |
211 | | - scaleClusterWithRestApi(domainUid, clusterName, replicaCount + 1, |
212 | | - externalRestHttpshost, externalRestHttpsPort, opNamespace, opServiceAccount); |
| 213 | + if (OKE_CLUSTER) { |
| 214 | + scaleAndVerifyCluster(clusterResName, domainUid, domain1Namespace, managedServerPodPrefix, |
| 215 | + replicaCount, replicaCount + 1, null, null); |
| 216 | + } else { |
| 217 | + scaleClusterWithRestApi(domainUid, clusterName, replicaCount + 1, |
| 218 | + externalRestHttpshost, externalRestHttpsPort, opNamespace, opServiceAccount); |
| 219 | + } |
213 | 220 |
|
214 | 221 | verifyClusterAfterScaling(domainUid, domain1Namespace, managedServerPodPrefix, |
215 | 222 | replicaCount, replicaCount + 1, null, null, listOfPodCreationTimestamp); |
|
0 commit comments