@@ -35,22 +35,20 @@ public class ITOperatorUpgrade extends BaseTest {
35
35
private static final String OP_BASE_REL = "2.0" ;
36
36
private static final String OP_TARGET_RELEASE = "weblogic-kubernetes-operator:latest" ;
37
37
private static final String DOM_TARGET_RELEASE_VERSION = "weblogic.oracle/v4" ;
38
- private static String OP_NS = "weblogic-operator " ;
39
- private static String OP_DEP_NAME = "operator-upgrade " ;
40
- private static String OP_SA = "operator-sa " ;
41
- private static String DOM_NS = "weblogic-domain " ;
42
- private static String DUID = "operator20domain " ;
38
+ private static String OP_NS = "" ;
39
+ private static String OP_DEP_NAME = "" ;
40
+ private static String OP_SA = "" ;
41
+ private static String DOM_NS = "" ;
42
+ private static String DUID = "" ;
43
43
private static String opUpgradeTmpDir ;
44
44
private Domain domain = null ;
45
- private static Operator operator20 ;
45
+ private static Operator operator ;
46
46
47
47
private void setupOperatorAndDomain (String operatorGitRelease , String operatorRelease )
48
48
throws Exception {
49
49
logger .log (Level .INFO , "+++++++++++++++Beginning Test Setup+++++++++++++++++++++" );
50
- if (!QUICKTEST ) {
51
- initialize (APP_PROPS_FILE );
52
- opUpgradeTmpDir = BaseTest .getResultDir () + "/operatorupgrade" ;
53
- }
50
+ initialize (APP_PROPS_FILE );
51
+ opUpgradeTmpDir = BaseTest .getResultDir () + "/operatorupgrade" ;
54
52
TestUtils .exec ("rm -rf " + Paths .get (opUpgradeTmpDir ).toString ());
55
53
Files .createDirectories (Paths .get (opUpgradeTmpDir ));
56
54
Map <String , Object > operatorMap = TestUtils .loadYaml (OPERATOR1_YAML );
@@ -64,24 +62,18 @@ private void setupOperatorAndDomain(String operatorGitRelease, String operatorRe
64
62
List <String > dom_ns = new ArrayList <String >();
65
63
dom_ns .add (DOM_NS );
66
64
operatorMap .put ("domainNamespaces" , dom_ns );
67
- operator20 = TestUtils .createOperator (operatorMap , Operator .RESTCertType .LEGACY );
65
+ operator = TestUtils .createOperator (operatorMap , Operator .RESTCertType .LEGACY );
68
66
TestUtils .ExecAndPrintLog ("kubectl get all --all-namespaces" );
69
67
70
68
Map <String , Object > wlstDomainMap = TestUtils .loadYaml (DOMAININIMAGE_WLST_YAML );
71
69
wlstDomainMap .put ("domainUID" , DUID );
72
70
wlstDomainMap .put ("namespace" , DOM_NS );
73
71
wlstDomainMap .put ("projectRoot" , opUpgradeTmpDir + "/weblogic-kubernetes-operator" );
74
72
domain = TestUtils .createDomain (wlstDomainMap );
75
- Thread .sleep (1000 * 60 );
76
73
TestUtils .ExecAndPrintLog ("kubectl get all --all-namespaces" );
77
- TestUtils .ExecAndPrintLog ("kubectl get domain -n " + DOM_NS );
78
- // domain.verifyDomainCreated();
79
74
domain .verifyPodsCreated ();
80
75
domain .verifyServicesCreated ();
81
76
domain .verifyServersReady ();
82
- // testBasicUseCases(domain);
83
- // testClusterScaling(operator20, domain);
84
- printCompVersions ();
85
77
logger .log (Level .INFO , "+++++++++++++++Ending Test Setup+++++++++++++++++++++" );
86
78
}
87
79
@@ -91,8 +83,8 @@ public void cleanupOperatorAndDomain() throws Exception {
91
83
if (domain != null ) {
92
84
domain .destroy ();
93
85
}
94
- if (operator20 != null ) {
95
- operator20 .destroy ();
86
+ if (operator != null ) {
87
+ operator .destroy ();
96
88
}
97
89
ExecResult result = cleanup ();
98
90
TestUtils .ExecAndPrintLog (
@@ -195,13 +187,13 @@ public void testOperatorUpgradeFrom2_2_1() throws Exception {
195
187
}
196
188
197
189
private void upgradeOperator (boolean restart ) throws Exception {
198
- operator20 .callHelmUpgrade ("image=" + OP_TARGET_RELEASE );
190
+ operator .callHelmUpgrade ("image=" + OP_TARGET_RELEASE );
199
191
if (restart ) {
200
192
checkDomainRollingRestarted ();
201
193
}
202
194
checkOperatorVersion (DOM_TARGET_RELEASE_VERSION );
203
195
testBasicUseCases (domain );
204
- testClusterScaling (operator20 , domain );
196
+ testClusterScaling (operator , domain );
205
197
}
206
198
207
199
private void checkOperatorVersion (String version ) throws Exception {
0 commit comments