Skip to content

Commit 757d3dd

Browse files
committed
use different logic for external and internal Jenkins run
1 parent 8f8d029 commit 757d3dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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: "
@@ -230,8 +230,8 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
230230
+ getWeblogicImageTag()
231231
);
232232

233-
/*if (BaseTest.SHARED_CLUSTER) {
234-
String newImage =
233+
if (BaseTest.SHARED_CLUSTER) {
234+
/*String newImage =
235235
System.getenv("REPO_REGISTRY") + "/weblogick8s/middleware/weblogic:duplicate";
236236
// tag image with repo name
237237
String tag =
@@ -259,7 +259,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
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
}

0 commit comments

Comments
 (0)