@@ -88,7 +88,7 @@ public static void staticUnPrepare() throws Exception {
88
88
*
89
89
* @throws Exception
90
90
*/
91
- @ Test
91
+ // @Test
92
92
public void testServerPodsRestartByChangingEnvProperty () throws Exception {
93
93
Assume .assumeFalse (QUICKTEST );
94
94
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -111,7 +111,7 @@ public void testServerPodsRestartByChangingEnvProperty() throws Exception {
111
111
*
112
112
* @throws Exception
113
113
*/
114
- @ Test
114
+ // @Test
115
115
public void testServerPodsRestartByChangingLogHomeEnabled () throws Exception {
116
116
Assume .assumeFalse (QUICKTEST );
117
117
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -133,7 +133,7 @@ public void testServerPodsRestartByChangingLogHomeEnabled() throws Exception {
133
133
*
134
134
* @throws Exception
135
135
*/
136
- @ Test
136
+ // @Test
137
137
public void testServerPodsRestartByChangingImagePullPolicy () throws Exception {
138
138
Assume .assumeFalse (QUICKTEST );
139
139
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -156,7 +156,7 @@ public void testServerPodsRestartByChangingImagePullPolicy() throws Exception {
156
156
*
157
157
* @throws Exception
158
158
*/
159
- @ Test
159
+ // @Test
160
160
public void testServerPodsRestartByChangingIncludeServerOutInPodLog () throws Exception {
161
161
Assume .assumeFalse (QUICKTEST );
162
162
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -179,7 +179,7 @@ public void testServerPodsRestartByChangingIncludeServerOutInPodLog() throws Exc
179
179
*
180
180
* @throws Exception
181
181
*/
182
- @ Test
182
+ // @Test
183
183
public void testServerPodsRestartByChangingZImage () throws Exception {
184
184
Assume .assumeFalse (QUICKTEST );
185
185
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -210,7 +210,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
210
210
* are not restarted or after restart the server yaml file doesn't include the new added
211
211
* property
212
212
*/
213
- @ Test
213
+ // @Test
214
214
public void testServerPodsRestartByChangingContSecurityContext () throws Exception {
215
215
Assume .assumeFalse (QUICKTEST );
216
216
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -247,7 +247,7 @@ public void testServerPodsRestartByChangingContSecurityContext() throws Exceptio
247
247
* are not restarted or after restart the server yaml file doesn't include the new added
248
248
* property
249
249
*/
250
- @ Test
250
+ // @Test
251
251
public void testServerPodsRestartByChangingPodSecurityContext () throws Exception {
252
252
Assume .assumeFalse (QUICKTEST );
253
253
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -285,7 +285,7 @@ public void testServerPodsRestartByChangingPodSecurityContext() throws Exception
285
285
* are not restarted or after restart the server yaml file doesn't include the new added
286
286
* property
287
287
*/
288
- @ Test
288
+ // @Test
289
289
public void testServerPodsRestartByChangingResource () throws Exception {
290
290
Assume .assumeFalse (QUICKTEST );
291
291
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -324,6 +324,7 @@ public void testAdminServerRestartVersions() throws Exception {
324
324
+ domain .getDomainUid ()
325
325
+ "/domain.yaml" ;
326
326
try {
327
+ logger .info ("Modifying the Domain CRD.." );
327
328
DomainCRD crd = new DomainCRD ();
328
329
String yaml =
329
330
crd .addRestartVersionToAdminServer (
@@ -338,10 +339,14 @@ public void testAdminServerRestartVersions() throws Exception {
338
339
Path path = Paths .get (restartTmpDir , "restart.admin.yaml" );
339
340
Charset charset = StandardCharsets .UTF_8 ;
340
341
Files .write (path , yaml .getBytes (charset ));
342
+ logger .info ("Running kubectl apply -f " + path .toString ());
341
343
logger .info (TestUtils .exec ("kubectl apply -f " + path .toString ()).stdout ());
344
+ logger .info ("Verifying if the admin server is restarted" );
342
345
domain .verifyAdminServerRestarted ();
343
346
} finally {
347
+ logger .info ("Running kubectl apply -f " + originalYaml );
344
348
TestUtils .exec ("kubectl apply -f " + originalYaml );
349
+ logger .info ("Verifying if the admin server is restarted" );
345
350
domain .verifyAdminServerRestarted ();
346
351
}
347
352
logger .info ("SUCCESS - " + testMethodName );
0 commit comments