@@ -74,7 +74,7 @@ public static void staticPrepare() throws Exception {
74
74
*
75
75
* @throws Exception
76
76
*/
77
- // @AfterClass
77
+ @ AfterClass
78
78
public static void staticUnPrepare () throws Exception {
79
79
if (!QUICKTEST ) {
80
80
logger .info ("+++++++++++++++++++++++++++++++++---------------------------------+" );
@@ -95,7 +95,7 @@ public static void staticUnPrepare() throws Exception {
95
95
*
96
96
* @throws Exception
97
97
*/
98
- // @Test
98
+ @ Test
99
99
public void testServerPodsRestartByChangingEnvProperty () throws Exception {
100
100
Assume .assumeFalse (QUICKTEST );
101
101
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -118,7 +118,7 @@ public void testServerPodsRestartByChangingEnvProperty() throws Exception {
118
118
*
119
119
* @throws Exception
120
120
*/
121
- // @Test
121
+ @ Test
122
122
public void testServerPodsRestartByChangingLogHomeEnabled () throws Exception {
123
123
Assume .assumeFalse (QUICKTEST );
124
124
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -140,7 +140,7 @@ public void testServerPodsRestartByChangingLogHomeEnabled() throws Exception {
140
140
*
141
141
* @throws Exception
142
142
*/
143
- // @Test
143
+ @ Test
144
144
public void testServerPodsRestartByChangingImagePullPolicy () throws Exception {
145
145
Assume .assumeFalse (QUICKTEST );
146
146
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -163,7 +163,7 @@ public void testServerPodsRestartByChangingImagePullPolicy() throws Exception {
163
163
*
164
164
* @throws Exception
165
165
*/
166
- // @Test
166
+ @ Test
167
167
public void testServerPodsRestartByChangingIncludeServerOutInPodLog () throws Exception {
168
168
Assume .assumeFalse (QUICKTEST );
169
169
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -186,7 +186,7 @@ public void testServerPodsRestartByChangingIncludeServerOutInPodLog() throws Exc
186
186
*
187
187
* @throws Exception
188
188
*/
189
- // @Test
189
+ @ Test
190
190
public void testServerPodsRestartByChangingZImage () throws Exception {
191
191
Assume .assumeFalse (QUICKTEST );
192
192
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -217,7 +217,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
217
217
* are not restarted or after restart the server yaml file doesn't include the new added
218
218
* property
219
219
*/
220
- // @Test
220
+ @ Test
221
221
public void testServerPodsRestartByChangingContSecurityContext () throws Exception {
222
222
Assume .assumeFalse (QUICKTEST );
223
223
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -254,7 +254,7 @@ public void testServerPodsRestartByChangingContSecurityContext() throws Exceptio
254
254
* are not restarted or after restart the server yaml file doesn't include the new added
255
255
* property
256
256
*/
257
- // @Test
257
+ @ Test
258
258
public void testServerPodsRestartByChangingPodSecurityContext () throws Exception {
259
259
Assume .assumeFalse (QUICKTEST );
260
260
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -292,7 +292,7 @@ public void testServerPodsRestartByChangingPodSecurityContext() throws Exception
292
292
* are not restarted or after restart the server yaml file doesn't include the new added
293
293
* property
294
294
*/
295
- // @Test
295
+ @ Test
296
296
public void testServerPodsRestartByChangingResource () throws Exception {
297
297
Assume .assumeFalse (QUICKTEST );
298
298
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -320,6 +320,13 @@ public void testServerPodsRestartByChangingResource() throws Exception {
320
320
logger .info ("SUCCESS - " + testMethodName );
321
321
}
322
322
323
+ /**
324
+ * Add restartVersion:v1.1 at adminServer level and verify the admin pod is Terminated and
325
+ * recreated
326
+ *
327
+ * @throws Exception when domain.yaml cannot be read or modified to include the
328
+ * restartVersion:v1.1
329
+ */
323
330
@ Test
324
331
public void testAdminServerRestartVersion () throws Exception {
325
332
Assume .assumeFalse (QUICKTEST );
@@ -362,6 +369,13 @@ public void testAdminServerRestartVersion() throws Exception {
362
369
logger .log (Level .INFO , "SUCCESS - {0}" , testMethodName );
363
370
}
364
371
372
+ /**
373
+ * Add restartVersion:v1.1 at cluster level and verify the managed servers pods are Terminated and
374
+ * recreated
375
+ *
376
+ * @throws Exception when domain.yaml cannot be read or modified to include the
377
+ * restartVersion:v1.1
378
+ */
365
379
@ Test
366
380
public void testClusterRestartVersion () throws Exception {
367
381
Assume .assumeFalse (QUICKTEST );
@@ -402,6 +416,13 @@ public void testClusterRestartVersion() throws Exception {
402
416
logger .log (Level .INFO , "SUCCESS - {0}" , testMethodName );
403
417
}
404
418
419
+ /**
420
+ * Add restartVersion:v1.1 at managed server level and verify the managed server pod are
421
+ * Terminated and recreated
422
+ *
423
+ * @throws Exception when domain.yaml cannot be read or modified to include the
424
+ * restartVersion:v1.1
425
+ */
405
426
@ Test
406
427
public void testMSRestartVersion () throws Exception {
407
428
Assume .assumeFalse (QUICKTEST );
@@ -444,6 +465,13 @@ public void testMSRestartVersion() throws Exception {
444
465
logger .log (Level .INFO , "SUCCESS - {0}" , testMethodName );
445
466
}
446
467
468
+ /**
469
+ * Add restartVersion:v1.1 at doamin level and verify all of the server pods are Terminated and
470
+ * recreated
471
+ *
472
+ * @throws Exception when domain.yaml cannot be read or modified to include the
473
+ * restartVersion:v1.1
474
+ */
447
475
@ Test
448
476
public void testDomainRestartVersion () throws Exception {
449
477
Assume .assumeFalse (QUICKTEST );
@@ -514,6 +542,13 @@ private static void destroyPodsRestartdomain() throws Exception {
514
542
}
515
543
}
516
544
545
+ /**
546
+ * Utility method to check if a pod is in Terminating or Running status
547
+ *
548
+ * @param podName - String name of the pod to check the status for
549
+ * @param podStatusExpected - String the expected status of Terminating || RUnning
550
+ * @throws InterruptedException when thread is interrupted
551
+ */
517
552
private void verifyPodStatus (String podName , String podStatusExpected )
518
553
throws InterruptedException {
519
554
K8sTestUtils testUtil = new K8sTestUtils ();
0 commit comments