Skip to content

Commit 77fe5cb

Browse files
committed
delete cache entry before addInstaller
1 parent 27f94de commit 77fe5cb

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

imagetool/src/test/java/com/oracle/weblogic/imagetool/integration/BaseTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ protected static void cleanup() throws Exception {
8282
executeNoVerify(command);
8383

8484
// clean up the docker images
85-
command = "docker rmi -f " + BASE_OS_IMG + ":" + BASE_OS_IMG_TAG;
85+
command = "docker rmi -f " + BASE_OS_IMG + ":" + BASE_OS_IMG_TAG + " " + ORACLE_DB_IMG + ":" +
86+
ORACLE_DB_IMG_TAG;
8687
executeNoVerify(command);
8788

8889
// clean up the possible left over wlsimgbuilder_temp*

imagetool/src/test/java/com/oracle/weblogic/imagetool/integration/ITImagetool.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,20 @@ public void testACreateWLSImgUsingWDT() throws Exception {
256256
logTestBegin(testMethodName);
257257

258258
// add WDT installer to the cache
259+
// delete the cache entry first
260+
deleteEntryFromCache("wdt_" + WDT_VERSION);
259261
String wdtPath = getInstallerCacheDir() + FS + WDT_INSTALLER;
260262
addInstallerToCache("wdt", WDT_VERSION, wdtPath);
261263

262264
// add WLS installer to the cache
265+
// delete the cache entry first
266+
deleteEntryFromCache("wls_" + WLS_VERSION);
263267
String wlsPath = getInstallerCacheDir() + FS + WLS_INSTALLER;
264268
addInstallerToCache("wls", WLS_VERSION, wlsPath);
265269

266270
// add jdk installer to the cache
271+
// delete the cache entry first
272+
deleteEntryFromCache("jdk_" + JDK_VERSION);
267273
String jdkPath = getInstallerCacheDir() + FS + JDK_INSTALLER;
268274
addInstallerToCache("jdk", JDK_VERSION, jdkPath);
269275

@@ -323,10 +329,14 @@ public void testBCreateFMWImgFullInternetAccess() throws Exception {
323329
}
324330

325331
// add fmw installer to the cache
332+
// delete the cache entry if any
333+
deleteEntryFromCache("fmw_" + WLS_VERSION);
326334
String fmwPath = getInstallerCacheDir() + FS + FMW_INSTALLER;
327335
addInstallerToCache("fmw", WLS_VERSION, fmwPath);
328336

329337
// add jdk installer to the cache
338+
// delete the cache entry if any
339+
deleteEntryFromCache("jdk_" + JDK_VERSION);
330340
String jdkPath = getInstallerCacheDir() + FS + JDK_INSTALLER;
331341
addInstallerToCache("jdk", JDK_VERSION, jdkPath);
332342

@@ -394,14 +404,20 @@ public void testDCreateJRFDomainImgUsingWDT() throws Exception {
394404
createDBContainer();
395405

396406
// add WDT installer to the cache
407+
// delete the cache entry if any
408+
deleteEntryFromCache("wdt_" + WDT_VERSION);
397409
String wdtPath = getInstallerCacheDir() + FS + WDT_INSTALLER;
398410
addInstallerToCache("wdt", WDT_VERSION, wdtPath);
399411

400412
// add FMW installer to the cache
413+
// delete the cache entry if any
414+
deleteEntryFromCache("fmw_" + WLS_VERSION);
401415
String fmwPath = getInstallerCacheDir() + FS + FMW_INSTALLER;
402416
addInstallerToCache("fmw", WLS_VERSION, fmwPath);
403417

404418
// add jdk installer to the cache
419+
// delete the cache entry if any
420+
deleteEntryFromCache("jdk_" + JDK_VERSION);
405421
String jdkPath = getInstallerCacheDir() + FS + JDK_INSTALLER;
406422
addInstallerToCache("jdk", JDK_VERSION, jdkPath);
407423

0 commit comments

Comments
 (0)