103103import static oracle .weblogic .kubernetes .utils .UpgradeUtils .installOldOperator ;
104104import static oracle .weblogic .kubernetes .utils .UpgradeUtils .upgradeOperatorToCurrent ;
105105import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
106- import static org .junit .jupiter .api .Assertions .assertNotEquals ;
107106import static org .junit .jupiter .api .Assertions .assertNotNull ;
108107import static org .junit .jupiter .api .Assertions .assertTrue ;
109108
@@ -335,12 +334,6 @@ void upgradeWlsAuxDomain(String oldVersion) {
335334
336335 // After upgrade scale up/down the cluster
337336 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 );
344337
345338 String clusterName = domainUid + "-" + "cluster-1" ;
346339 logger .info ("Updating the cluster {0} replica count to 3" , clusterName );
@@ -354,7 +347,6 @@ private void scaleClusterUpAndDown() {
354347 assertTrue (p1Success ,
355348 String .format ("Patching replica to 2 failed for cluster %s in namespace %s" ,
356349 clusterName , domainNamespace ));
357-
358350 }
359351
360352 private void installDomainResource (
0 commit comments