Skip to content

Commit 2a1fb63

Browse files
committed
jenkins-ignore fixed javadoc
1 parent 34751b3 commit 2a1fb63

File tree

1 file changed

+15
-42
lines changed

1 file changed

+15
-42
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ITServerDiscovery.java

Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
/**
2626
* Simple JUnit test file used for testing Operator.
2727
*
28-
* <p>This test is used for creating Operator(s) and multiple domains which are managed by the
29-
* Operator(s).
28+
* <p>This test is used for creating Operator(s) and domain(s) which are managed by the Operator(s).
29+
* And to test WLS server discovery feature.
3030
*/
3131
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
3232
public class ITServerDiscovery extends BaseTest {
@@ -38,10 +38,8 @@ public class ITServerDiscovery extends BaseTest {
3838
/**
3939
* This method gets called only once before any of the test methods are executed. It does the
4040
* initialization of the integration test properties defined in OperatorIT.properties and setting
41-
* the resultRoot, pvRoot and projectRoot attributes.
42-
*
43-
* <p>It also create operator and verify its deployed successfully. Create domain and verify
44-
* domain is created.
41+
* the resultRoot, pvRoot and projectRoot attributes. It also creates Operator, domain and a test
42+
* domain yaml file.
4543
*
4644
* @throws Exception
4745
*/
@@ -87,7 +85,7 @@ public static void staticPrepare() throws Exception {
8785
}
8886

8987
/**
90-
* Releases k8s cluster lease, archives result, pv directories
88+
* Releases k8s cluster lease, archives result, pv directories.
9189
*
9290
* @throws Exception
9391
*/
@@ -103,8 +101,8 @@ public static void staticUnPrepare() throws Exception {
103101
}
104102

105103
/**
106-
* Restart Operator and verify that it connects to a pre-configed and newly started managed server
107-
* by applying a modified domain.yaml
104+
* Stop Operator. Start a managed server by applying a modified domain.yaml. Restart Operator and
105+
* verify that it connects to this newly started managed server.
108106
*
109107
* @throws Exception
110108
*/
@@ -136,10 +134,8 @@ public void testOPConnToNewMS() throws Exception {
136134
}
137135

138136
/**
139-
* Restart Operator and verify that it discovers running servers and a newly started server by
140-
* scaling up cluster.
141-
*
142-
* <p>Verify that the cluster scale up is noy impacted
137+
* Stop and restart Operator and verify that it discovers running servers and a newly started
138+
* server by scaling up cluster. Verify that the cluster scale up is noy impacted.
143139
*
144140
* @throws Exception
145141
*/
@@ -163,10 +159,8 @@ public void testOPReconnToRunningMSAndScaleUp() throws Exception {
163159
}
164160

165161
/**
166-
* Restart both Operator and admin server and verify that it discovers running servers and a newly
167-
* started server by scaling up cluster.
168-
*
169-
* <p>Verify that the cluster scale up is noy impacted
162+
* Stop Operator and admin server. Restart Operator. Verify that it restarts admin server and
163+
* discovers running servers. Verify that the cluster scale up is noy impacted.
170164
*
171165
* @throws Exception
172166
*/
@@ -209,7 +203,8 @@ public void testOPAdminReconnToDomain() throws Exception {
209203
}
210204

211205
/**
212-
* Restart Operator and verify the liveness probe by killing all managed servers
206+
* Stop Operator. Kill all managed servers. Restart Operator. Verify that it restarts all managed
207+
* servers.
213208
*
214209
* @throws Exception
215210
*/
@@ -252,7 +247,8 @@ public void testOPMSReconnToDomain() throws Exception {
252247
}
253248

254249
/**
255-
* Verify the liveness probe by killing a managed server
250+
* Stop Operator. Kill one managed server. Restart Operator. Verify that it restarts the killed
251+
* managed server.
256252
*
257253
* @throws Exception
258254
*/
@@ -282,12 +278,6 @@ public void testOPRestartDeadMS() throws Exception {
282278
logger.info("SUCCESS - " + testMethodName);
283279
}
284280

285-
/**
286-
* a help method to scale down cluster and verify
287-
*
288-
* @param decrNum - number of servers to scale down
289-
* @throws Exception
290-
*/
291281
private void scaleDownAndVarify(int decrNum) throws Exception {
292282
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
293283
logTestBegin(testMethodName);
@@ -318,12 +308,6 @@ private void scaleDownAndVarify(int decrNum) throws Exception {
318308
}
319309
}
320310

321-
/**
322-
* a help method to scale up cluster and verify
323-
*
324-
* @param incrNum - number of servers to scale up
325-
* @throws Exception
326-
*/
327311
private void scaleUpAndVarify(int incrNum) throws Exception {
328312
Map<String, Object> domainMap = domain.getDomainMap();
329313
String domainUid = domain.getDomainUid();
@@ -341,12 +325,6 @@ private void scaleUpAndVarify(int incrNum) throws Exception {
341325
varifyPodReady(replicas);
342326
}
343327

344-
/**
345-
* a help method to verify that server pods are running
346-
*
347-
* @param replicas - a number of replicas
348-
* @throws Exception
349-
*/
350328
private void varifyPodReady(int replicas) throws Exception {
351329
Map<String, Object> domainMap = domain.getDomainMap();
352330
String domainUid = domain.getDomainUid();
@@ -375,11 +353,6 @@ private void varifyPodReady(int replicas) throws Exception {
375353
}
376354
}
377355

378-
/**
379-
* a help method to return the number of replicas in cluster
380-
*
381-
* @throws Exception
382-
*/
383356
private int getReplicaCnt() throws Exception {
384357
Map<String, Object> domainMap = domain.getDomainMap();
385358
String domainUid = domain.getDomainUid();

0 commit comments

Comments
 (0)