@@ -23,7 +23,7 @@ public class ITImagetool extends BaseTest {
2323 private static final String JDK_INSTALLER_8u212 = "jdk-8u212-linux-x64.tar.gz" ;
2424 private static final String WLS_INSTALLER = "fmw_12.2.1.3.0_wls_Disk1_1of1.zip" ;
2525 private static final String P27342434_INSTALLER = "p27342434_122130_Generic.zip" ;
26- private static final String P28186730_INSTALLER = "p28186730_139400_Generic .zip" ;
26+ private static final String P28186730_INSTALLER = "p28186730_139422_Generic .zip" ;
2727 private static final String P22987840_INSTALLER = "p22987840_122100_Generic.zip" ;
2828 private static final String WDT_INSTALLER = "weblogic-deploy.zip" ;
2929 private static final String FMW_INSTALLER = "fmw_12.2.1.3.0_infrastructure_Disk1_1of1.zip" ;
@@ -34,7 +34,7 @@ public class ITImagetool extends BaseTest {
3434 private static final String P22987840_ID = "22987840" ;
3535 private static final String WLS_VERSION = "12.2.1.3.0" ;
3636 private static final String WLS_VERSION_1221 = "12.2.1.0.0" ;
37- private static final String OPATCH_VERSION = "13.9.4.0.0 " ;
37+ private static final String OPATCH_VERSION = "13.9.4.2.2 " ;
3838 private static final String JDK_VERSION = "8u202" ;
3939 private static final String JDK_VERSION_8u212 = "8u212" ;
4040 private static final String WDT_VERSION = "1.1.2" ;
@@ -43,7 +43,6 @@ public class ITImagetool extends BaseTest {
4343 private static final String WDT_MODEL = "simple-topology.yaml" ;
4444 private static final String WDT_MODEL2 = "simple-topology2.yaml" ;
4545 private static String oracleSupportUsername ;
46- private static String oracleSupportPassword ;
4746
4847 @ BeforeClass
4948 public static void staticPrepare () throws Exception {
@@ -65,7 +64,7 @@ public static void staticPrepare() throws Exception {
6564
6665 // get Oracle support credentials
6766 oracleSupportUsername = System .getenv ("ORACLE_SUPPORT_USERNAME" );
68- oracleSupportPassword = System .getenv ("ORACLE_SUPPORT_PASSWORD" );
67+ String oracleSupportPassword = System .getenv ("ORACLE_SUPPORT_PASSWORD" );
6968 if (oracleSupportUsername == null || oracleSupportPassword == null ) {
7069 throw new Exception ("Please set environment variables ORACLE_SUPPORT_USERNAME and ORACLE_SUPPORT_PASSWORD"
7170 + " for Oracle Support credentials to download the patches." );
@@ -238,8 +237,11 @@ public void test8CreateWLSImgUseCache() throws Exception {
238237
239238 // need to add the required patches 28186730 for Opatch before create wls images
240239 String patchPath = getInstallerCacheDir () + FS + P28186730_INSTALLER ;
241- deleteEntryFromCache (P28186730_ID + "_opatch" );
240+ deleteEntryFromCache (P28186730_ID + "_" + OPATCH_VERSION );
242241 addPatchToCache ("wls" , P28186730_ID , OPATCH_VERSION , patchPath );
242+ ExecResult resultT = listItemsInCache ();
243+ System .out .println (resultT .stdout ());
244+ System .out .println (resultT .stderr ());
243245
244246 String command = imagetool + " create --jdkVersion " + JDK_VERSION + " --fromImage "
245247 + BASE_OS_IMG + ":" + BASE_OS_IMG_TAG + " --tag " + build_tag + ":" + testMethodName
@@ -264,6 +266,10 @@ public void test9UpdateWLSImg() throws Exception {
264266 String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
265267 logTestBegin (testMethodName );
266268
269+ ExecResult resultT = listItemsInCache ();
270+ System .out .println (resultT .stdout ());
271+ System .out .println (resultT .stderr ());
272+
267273 String command = imagetool + " update --fromImage " + build_tag + ":test8CreateWLSImgUseCache --tag "
268274 + build_tag + ":" + testMethodName + " --patches " + P27342434_ID ;
269275 logger .info ("Executing command: " + command );
@@ -307,7 +313,7 @@ public void testACreateWLSImgUsingWDT() throws Exception {
307313
308314 // need to add the required patches 28186730 for Opatch before create wls images
309315 // delete the cache entry first
310- deleteEntryFromCache (P28186730_ID + "_opatch" );
316+ deleteEntryFromCache (P28186730_ID + "_" + OPATCH_VERSION );
311317 String patchPath = getInstallerCacheDir () + FS + P28186730_INSTALLER ;
312318 addPatchToCache ("wls" , P28186730_ID , OPATCH_VERSION , patchPath );
313319
@@ -512,7 +518,7 @@ public void testECreateRestricedJRFDomainImgUsingWDT() throws Exception {
512518 String command = imagetool + " create --fromImage "
513519 + BASE_OS_IMG + ":" + BASE_OS_IMG_TAG + " --tag " + build_tag + ":" + testMethodName
514520 + " --version " + WLS_VERSION + " --latestPSU --user " + oracleSupportUsername
515- + " --password " + oracleSupportPassword + " --wdtVersion " + WDT_VERSION
521+ + " --passwordEnv ORACLE_SUPPORT_PASSWORD" + " --wdtVersion " + WDT_VERSION
516522 + " --wdtArchive " + wdtArchive + " --wdtDomainHome /u01/domains/simple_domain --wdtModel "
517523 + wdtModel + " --wdtDomainType RestrictedJRF --type fmw --wdtVariables " + wdtVariables ;
518524
@@ -556,7 +562,7 @@ public void testFCreateWLSImgUsingMultiModels() throws Exception {
556562
557563 // need to add the required patches 28186730 for Opatch before create wls images
558564 // delete the cache entry first
559- deleteEntryFromCache (P28186730_ID + "_opatch" );
565+ deleteEntryFromCache (P28186730_ID + "_" + OPATCH_VERSION );
560566 String patchPath = getInstallerCacheDir () + FS + P28186730_INSTALLER ;
561567 addPatchToCache ("wls" , P28186730_ID , OPATCH_VERSION , patchPath );
562568
0 commit comments