1
1
// Copyright 2019, Oracle Corporation and/or its affiliates. All rights reserved.
2
2
// Licensed under the Universal Permissive License v 1.0 as shown at
3
3
// http://oss.oracle.com/licenses/upl.
4
+
4
5
package oracle .kubernetes .operator ;
5
6
6
7
import java .nio .file .Files ;
@@ -60,9 +61,9 @@ private void setupOperatorAndDomain(String operatorGitRelease, String operatorRe
60
61
operatorMap .put ("namespace" , OP_NS );
61
62
operatorMap .put ("releaseName" , OP_DEP_NAME );
62
63
operatorMap .put ("serviceAccount" , OP_SA );
63
- List <String > dom_ns = new ArrayList <String >();
64
- dom_ns .add (DOM_NS );
65
- operatorMap .put ("domainNamespaces" , dom_ns );
64
+ List <String > domNs = new ArrayList <String >();
65
+ domNs .add (DOM_NS );
66
+ operatorMap .put ("domainNamespaces" , domNs );
66
67
operator = TestUtils .createOperator (operatorMap , Operator .RestCertType .LEGACY );
67
68
TestUtils .exec ("kubectl get all --all-namespaces" , true );
68
69
@@ -79,7 +80,7 @@ private void setupOperatorAndDomain(String operatorGitRelease, String operatorRe
79
80
}
80
81
81
82
/**
82
- * cleanup the domain and operator after every test
83
+ * cleanup the domain and operator after every test.
83
84
*
84
85
* @throws Exception when domain and operator cleanup fails
85
86
*/
@@ -99,7 +100,7 @@ public void cleanupOperatorAndDomain() throws Exception {
99
100
}
100
101
101
102
/**
102
- * Releases k8s cluster lease, archives result, pv directories
103
+ * Releases k8s cluster lease, archives result, pv directories.
103
104
*
104
105
* @throws Exception when deleting pv directories or other tearDown tasks fail.
105
106
*/
@@ -115,7 +116,7 @@ public static void staticUnPrepare() throws Exception {
115
116
}
116
117
117
118
/**
118
- * Test for upgrading Operator from release 2.0 to develop branch
119
+ * Test for upgrading Operator from release 2.0 to develop branch.
119
120
*
120
121
* @throws Exception when upgrade fails
121
122
*/
@@ -135,7 +136,7 @@ public void testOperatorUpgradeFrom2_0() throws Exception {
135
136
}
136
137
137
138
/**
138
- * Test for upgrading Operator from release 2.0.1 to develop branch
139
+ * Test for upgrading Operator from release 2.0.1 to develop branch.
139
140
*
140
141
* @throws Exception when upgrade fails
141
142
*/
@@ -155,7 +156,7 @@ public void testOperatorUpgradeFrom2_0_1() throws Exception {
155
156
}
156
157
157
158
/**
158
- * Test for upgrading Operator from release 2.1 to develop branch
159
+ * Test for upgrading Operator from release 2.1 to develop branch.
159
160
*
160
161
* @throws Exception when upgrade fails
161
162
*/
@@ -175,7 +176,7 @@ public void testOperatorUpgradeFrom2_1() throws Exception {
175
176
}
176
177
177
178
/**
178
- * Test for upgrading Operator from release 2.2.0 to develop branch
179
+ * Test for upgrading Operator from release 2.2.0 to develop branch.
179
180
*
180
181
* @throws Exception when upgrade fails
181
182
*/
@@ -195,7 +196,7 @@ public void testOperatorUpgradeFrom2_2_0() throws Exception {
195
196
}
196
197
197
198
/**
198
- * Test for upgrading Operator from release 2.2.1 to develop branch
199
+ * Test for upgrading Operator from release 2.2.1 to develop branch.
199
200
*
200
201
* @throws Exception when upgrade fails
201
202
*/
@@ -215,7 +216,7 @@ public void testOperatorUpgradeFrom2_2_1() throws Exception {
215
216
}
216
217
217
218
/**
218
- * Upgrades operator to develop branch by using the helm upgrade
219
+ * Upgrades operator to develop branch by using the helm upgrade.
219
220
*
220
221
* @param restart boolean parameter used to determine if a restart of domain is checked
221
222
* @throws Exception when upgrade fails or basic usecase testing or scaling fails.
@@ -232,7 +233,7 @@ private void upgradeOperator(boolean restart) throws Exception {
232
233
233
234
/**
234
235
* checks the expected version of the upgraded operator in a loop. In Jenkins it takes nearly 8
235
- * minutes to show the updated value of the domain CRD
236
+ * minutes to show the updated value of the domain CRD.
236
237
*
237
238
* @throws Exception when version does not match
238
239
*/
@@ -260,7 +261,7 @@ private void checkOperatorVersion() throws Exception {
260
261
}
261
262
262
263
/**
263
- * Check whether the weblogic server instances are rolling restarted
264
+ * Check whether the weblogic server instances are rolling restarted.
264
265
*
265
266
* @throws Exception If restart fails or not restarted
266
267
*/
0 commit comments