Skip to content

Commit d64dc84

Browse files
committed
candidate of fixing external Jenkins failure
1 parent 5ea55f2 commit d64dc84

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private static void destroyPodsRestartdomain() throws Exception {
121121
*
122122
* @throws Exception exception
123123
*/
124-
//@Test
124+
@Test
125125
public void testServerPodsRestartByChangingEnvProperty() throws Exception {
126126
Assume.assumeTrue(QUICKTEST);
127127
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
@@ -144,7 +144,7 @@ public void testServerPodsRestartByChangingEnvProperty() throws Exception {
144144
*
145145
* @throws Exception exception
146146
*/
147-
//@Test
147+
@Test
148148
public void testServerPodsRestartByChangingLogHomeEnabled() throws Exception {
149149
Assume.assumeTrue(QUICKTEST);
150150
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
@@ -166,7 +166,7 @@ public void testServerPodsRestartByChangingLogHomeEnabled() throws Exception {
166166
*
167167
* @throws Exception exception
168168
*/
169-
//@Test
169+
@Test
170170
public void testServerPodsRestartByChangingImagePullPolicy() throws Exception {
171171
Assume.assumeTrue(QUICKTEST);
172172
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
@@ -189,7 +189,7 @@ public void testServerPodsRestartByChangingImagePullPolicy() throws Exception {
189189
*
190190
* @throws Exception exception
191191
*/
192-
//@Test
192+
@Test
193193
public void testServerPodsRestartByChangingIncludeServerOutInPodLog() throws Exception {
194194
Assume.assumeTrue(QUICKTEST);
195195
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
@@ -219,7 +219,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
219219
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
220220
logTestBegin(testMethodName);
221221

222-
try {
222+
//try {
223223
TestUtils.exec("docker images", true);
224224
logger.info(
225225
"About to verifyDomainServerPodRestart for Domain: "
@@ -228,21 +228,20 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
228228
+ getWeblogicImageName()
229229
+ ":"
230230
+ getWeblogicImageTag()
231-
+ " to "
232-
+ "/weblogick8s/middleware/weblogic:duplicate");
231+
);
233232

234-
if (BaseTest.SHARED_CLUSTER) {
235-
/*String newImage =
233+
/*if (BaseTest.SHARED_CLUSTER) {
234+
String newImage =
236235
System.getenv("REPO_REGISTRY") + "/weblogick8s/middleware/weblogic:duplicate";
237236
// tag image with repo name
238237
String tag =
239238
"docker tag " + getWeblogicImageName() + ":" + getWeblogicImageTag() + " " + newImage;
240239
TestUtils.exec(tag, true);
241-
TestUtils.exec("docker images", true);*/
240+
TestUtils.exec("docker images", true);
242241
String newImage = getWeblogicImageServer()+ "/middleware/weblogic:12.2.1.3-dev";
243242
244243
// login and push image to ocir
245-
/*TestUtils.loginAndPushImageToOcir(newImage);
244+
TestUtils.loginAndPushImageToOcir(newImage);
246245
247246
// create ocir registry secret in the same ns as domain which is used while pulling the
248247
// image
@@ -253,13 +252,14 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
253252
System.getenv("REPO_PASSWORD"),
254253
System.getenv("REPO_EMAIL"),
255254
domain.getDomainNs());*/
256-
255+
256+
String newImage = getWeblogicImageServer()+ "/middleware/weblogic:12.2.1.3-dev";
257257
// apply new domain yaml and verify pod restart
258258
domain.verifyDomainServerPodRestart(
259259
"\"" + getWeblogicImageName() + ":" + getWeblogicImageTag() + "\"",
260260
"\"" + newImage + "\"");
261261

262-
} else {
262+
/* } else {
263263
TestUtils.exec(
264264
"docker tag "
265265
+ getWeblogicImageName()
@@ -276,7 +276,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
276276
if (!BaseTest.SHARED_CLUSTER) {
277277
TestUtils.exec("docker rmi -f " + getWeblogicImageName() + ":duplicate");
278278
}
279-
}
279+
}*/
280280

281281
logger.info("SUCCESS - " + testMethodName);
282282
}
@@ -290,7 +290,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
290290
* are not restarted or after restart the server yaml file doesn't include the new added
291291
* property
292292
*/
293-
//@Test
293+
@Test
294294
public void testServerPodsRestartByChangingContSecurityContext() throws Exception {
295295
Assume.assumeTrue(QUICKTEST);
296296
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
@@ -327,7 +327,7 @@ public void testServerPodsRestartByChangingContSecurityContext() throws Exceptio
327327
* are not restarted or after restart the server yaml file doesn't include the new added
328328
* property
329329
*/
330-
//@Test
330+
@Test
331331
public void testServerPodsRestartByChangingPodSecurityContext() throws Exception {
332332
Assume.assumeTrue(QUICKTEST);
333333
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
@@ -365,7 +365,7 @@ public void testServerPodsRestartByChangingPodSecurityContext() throws Exception
365365
* are not restarted or after restart the server yaml file doesn't include the new added
366366
* property
367367
*/
368-
//@Test
368+
@Test
369369
public void testServerPodsRestartByChangingResource() throws Exception {
370370
Assume.assumeTrue(QUICKTEST);
371371
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
@@ -446,7 +446,7 @@ public void testAdminServerRestartVersion() throws Exception {
446446
* @throws Exception when domain.yaml cannot be read or modified to include the
447447
* restartVersion:v1.1
448448
*/
449-
//@Test
449+
@Test
450450
public void testClusterRestartVersion() throws Exception {
451451
Assume.assumeTrue(QUICKTEST);
452452
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
@@ -493,7 +493,7 @@ public void testClusterRestartVersion() throws Exception {
493493
* @throws Exception when domain.yaml cannot be read or modified to include the
494494
* restartVersion:v1.1
495495
*/
496-
// @Test
496+
@Test
497497
public void testMsRestartVersion() throws Exception {
498498
Assume.assumeTrue(QUICKTEST);
499499
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();

0 commit comments

Comments
 (0)