@@ -121,7 +121,7 @@ private static void destroyPodsRestartdomain() throws Exception {
121
121
*
122
122
* @throws Exception exception
123
123
*/
124
- // @Test
124
+ @ Test
125
125
public void testServerPodsRestartByChangingEnvProperty () throws Exception {
126
126
Assume .assumeTrue (QUICKTEST );
127
127
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -144,7 +144,7 @@ public void testServerPodsRestartByChangingEnvProperty() throws Exception {
144
144
*
145
145
* @throws Exception exception
146
146
*/
147
- // @Test
147
+ @ Test
148
148
public void testServerPodsRestartByChangingLogHomeEnabled () throws Exception {
149
149
Assume .assumeTrue (QUICKTEST );
150
150
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -166,7 +166,7 @@ public void testServerPodsRestartByChangingLogHomeEnabled() throws Exception {
166
166
*
167
167
* @throws Exception exception
168
168
*/
169
- // @Test
169
+ @ Test
170
170
public void testServerPodsRestartByChangingImagePullPolicy () throws Exception {
171
171
Assume .assumeTrue (QUICKTEST );
172
172
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -189,7 +189,7 @@ public void testServerPodsRestartByChangingImagePullPolicy() throws Exception {
189
189
*
190
190
* @throws Exception exception
191
191
*/
192
- // @Test
192
+ @ Test
193
193
public void testServerPodsRestartByChangingIncludeServerOutInPodLog () throws Exception {
194
194
Assume .assumeTrue (QUICKTEST );
195
195
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -219,7 +219,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
219
219
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
220
220
logTestBegin (testMethodName );
221
221
222
- try {
222
+ // try {
223
223
TestUtils .exec ("docker images" , true );
224
224
logger .info (
225
225
"About to verifyDomainServerPodRestart for Domain: "
@@ -228,21 +228,20 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
228
228
+ getWeblogicImageName ()
229
229
+ ":"
230
230
+ getWeblogicImageTag ()
231
- + " to "
232
- + "/weblogick8s/middleware/weblogic:duplicate" );
231
+ );
233
232
234
- if (BaseTest .SHARED_CLUSTER ) {
235
- /* String newImage =
233
+ /* if (BaseTest.SHARED_CLUSTER) {
234
+ String newImage =
236
235
System.getenv("REPO_REGISTRY") + "/weblogick8s/middleware/weblogic:duplicate";
237
236
// tag image with repo name
238
237
String tag =
239
238
"docker tag " + getWeblogicImageName() + ":" + getWeblogicImageTag() + " " + newImage;
240
239
TestUtils.exec(tag, true);
241
- TestUtils.exec("docker images", true);*/
240
+ TestUtils.exec("docker images", true);
242
241
String newImage = getWeblogicImageServer()+ "/middleware/weblogic:12.2.1.3-dev";
243
242
244
243
// login and push image to ocir
245
- /* TestUtils.loginAndPushImageToOcir(newImage);
244
+ TestUtils.loginAndPushImageToOcir(newImage);
246
245
247
246
// create ocir registry secret in the same ns as domain which is used while pulling the
248
247
// image
@@ -253,13 +252,14 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
253
252
System.getenv("REPO_PASSWORD"),
254
253
System.getenv("REPO_EMAIL"),
255
254
domain.getDomainNs());*/
256
-
255
+
256
+ String newImage = getWeblogicImageServer ()+ "/middleware/weblogic:12.2.1.3-dev" ;
257
257
// apply new domain yaml and verify pod restart
258
258
domain .verifyDomainServerPodRestart (
259
259
"\" " + getWeblogicImageName () + ":" + getWeblogicImageTag () + "\" " ,
260
260
"\" " + newImage + "\" " );
261
261
262
- } else {
262
+ /* } else {
263
263
TestUtils.exec(
264
264
"docker tag "
265
265
+ getWeblogicImageName()
@@ -276,7 +276,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
276
276
if (!BaseTest.SHARED_CLUSTER) {
277
277
TestUtils.exec("docker rmi -f " + getWeblogicImageName() + ":duplicate");
278
278
}
279
- }
279
+ }*/
280
280
281
281
logger .info ("SUCCESS - " + testMethodName );
282
282
}
@@ -290,7 +290,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
290
290
* are not restarted or after restart the server yaml file doesn't include the new added
291
291
* property
292
292
*/
293
- // @Test
293
+ @ Test
294
294
public void testServerPodsRestartByChangingContSecurityContext () throws Exception {
295
295
Assume .assumeTrue (QUICKTEST );
296
296
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -327,7 +327,7 @@ public void testServerPodsRestartByChangingContSecurityContext() throws Exceptio
327
327
* are not restarted or after restart the server yaml file doesn't include the new added
328
328
* property
329
329
*/
330
- // @Test
330
+ @ Test
331
331
public void testServerPodsRestartByChangingPodSecurityContext () throws Exception {
332
332
Assume .assumeTrue (QUICKTEST );
333
333
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -365,7 +365,7 @@ public void testServerPodsRestartByChangingPodSecurityContext() throws Exception
365
365
* are not restarted or after restart the server yaml file doesn't include the new added
366
366
* property
367
367
*/
368
- // @Test
368
+ @ Test
369
369
public void testServerPodsRestartByChangingResource () throws Exception {
370
370
Assume .assumeTrue (QUICKTEST );
371
371
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -446,7 +446,7 @@ public void testAdminServerRestartVersion() throws Exception {
446
446
* @throws Exception when domain.yaml cannot be read or modified to include the
447
447
* restartVersion:v1.1
448
448
*/
449
- // @Test
449
+ @ Test
450
450
public void testClusterRestartVersion () throws Exception {
451
451
Assume .assumeTrue (QUICKTEST );
452
452
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
@@ -493,7 +493,7 @@ public void testClusterRestartVersion() throws Exception {
493
493
* @throws Exception when domain.yaml cannot be read or modified to include the
494
494
* restartVersion:v1.1
495
495
*/
496
- // @Test
496
+ @ Test
497
497
public void testMsRestartVersion () throws Exception {
498
498
Assume .assumeTrue (QUICKTEST );
499
499
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
0 commit comments