103
103
import static oracle .weblogic .kubernetes .utils .UpgradeUtils .installOldOperator ;
104
104
import static oracle .weblogic .kubernetes .utils .UpgradeUtils .upgradeOperatorToCurrent ;
105
105
import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
106
- import static org .junit .jupiter .api .Assertions .assertNotEquals ;
107
106
import static org .junit .jupiter .api .Assertions .assertNotNull ;
108
107
import static org .junit .jupiter .api .Assertions .assertTrue ;
109
108
@@ -335,12 +334,6 @@ void upgradeWlsAuxDomain(String oldVersion) {
335
334
336
335
// After upgrade scale up/down the cluster
337
336
private void scaleClusterUpAndDown () {
338
- String opServiceAccount = opNamespace + "-sa" ;
339
- int externalRestHttpsPort = getServiceNodePort (
340
- opNamespace , "external-weblogic-operator-svc" );
341
- assertNotEquals (-1 , externalRestHttpsPort ,
342
- "Could not get the Operator external service node port" );
343
- logger .info ("externalRestHttpsPort {0}" , externalRestHttpsPort );
344
337
345
338
String clusterName = domainUid + "-" + "cluster-1" ;
346
339
logger .info ("Updating the cluster {0} replica count to 3" , clusterName );
@@ -354,7 +347,6 @@ private void scaleClusterUpAndDown() {
354
347
assertTrue (p1Success ,
355
348
String .format ("Patching replica to 2 failed for cluster %s in namespace %s" ,
356
349
clusterName , domainNamespace ));
357
-
358
350
}
359
351
360
352
private void installDomainResource (
0 commit comments