@@ -23,7 +23,7 @@ public class ITImagetool extends BaseTest {
23
23
private static final String JDK_INSTALLER_8u212 = "jdk-8u212-linux-x64.tar.gz" ;
24
24
private static final String WLS_INSTALLER = "fmw_12.2.1.3.0_wls_Disk1_1of1.zip" ;
25
25
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" ;
27
27
private static final String P22987840_INSTALLER = "p22987840_122100_Generic.zip" ;
28
28
private static final String WDT_INSTALLER = "weblogic-deploy.zip" ;
29
29
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 {
34
34
private static final String P22987840_ID = "22987840" ;
35
35
private static final String WLS_VERSION = "12.2.1.3.0" ;
36
36
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 " ;
38
38
private static final String JDK_VERSION = "8u202" ;
39
39
private static final String JDK_VERSION_8u212 = "8u212" ;
40
40
private static final String WDT_VERSION = "1.1.2" ;
@@ -43,7 +43,6 @@ public class ITImagetool extends BaseTest {
43
43
private static final String WDT_MODEL = "simple-topology.yaml" ;
44
44
private static final String WDT_MODEL2 = "simple-topology2.yaml" ;
45
45
private static String oracleSupportUsername ;
46
- private static String oracleSupportPassword ;
47
46
48
47
@ BeforeClass
49
48
public static void staticPrepare () throws Exception {
@@ -65,7 +64,7 @@ public static void staticPrepare() throws Exception {
65
64
66
65
// get Oracle support credentials
67
66
oracleSupportUsername = System .getenv ("ORACLE_SUPPORT_USERNAME" );
68
- oracleSupportPassword = System .getenv ("ORACLE_SUPPORT_PASSWORD" );
67
+ String oracleSupportPassword = System .getenv ("ORACLE_SUPPORT_PASSWORD" );
69
68
if (oracleSupportUsername == null || oracleSupportPassword == null ) {
70
69
throw new Exception ("Please set environment variables ORACLE_SUPPORT_USERNAME and ORACLE_SUPPORT_PASSWORD"
71
70
+ " for Oracle Support credentials to download the patches." );
@@ -238,8 +237,11 @@ public void test8CreateWLSImgUseCache() throws Exception {
238
237
239
238
// need to add the required patches 28186730 for Opatch before create wls images
240
239
String patchPath = getInstallerCacheDir () + FS + P28186730_INSTALLER ;
241
- deleteEntryFromCache (P28186730_ID + "_opatch" );
240
+ deleteEntryFromCache (P28186730_ID + "_" + OPATCH_VERSION );
242
241
addPatchToCache ("wls" , P28186730_ID , OPATCH_VERSION , patchPath );
242
+ ExecResult resultT = listItemsInCache ();
243
+ System .out .println (resultT .stdout ());
244
+ System .out .println (resultT .stderr ());
243
245
244
246
String command = imagetool + " create --jdkVersion " + JDK_VERSION + " --fromImage "
245
247
+ BASE_OS_IMG + ":" + BASE_OS_IMG_TAG + " --tag " + build_tag + ":" + testMethodName
@@ -264,6 +266,10 @@ public void test9UpdateWLSImg() throws Exception {
264
266
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
265
267
logTestBegin (testMethodName );
266
268
269
+ ExecResult resultT = listItemsInCache ();
270
+ System .out .println (resultT .stdout ());
271
+ System .out .println (resultT .stderr ());
272
+
267
273
String command = imagetool + " update --fromImage " + build_tag + ":test8CreateWLSImgUseCache --tag "
268
274
+ build_tag + ":" + testMethodName + " --patches " + P27342434_ID ;
269
275
logger .info ("Executing command: " + command );
@@ -307,7 +313,7 @@ public void testACreateWLSImgUsingWDT() throws Exception {
307
313
308
314
// need to add the required patches 28186730 for Opatch before create wls images
309
315
// delete the cache entry first
310
- deleteEntryFromCache (P28186730_ID + "_opatch" );
316
+ deleteEntryFromCache (P28186730_ID + "_" + OPATCH_VERSION );
311
317
String patchPath = getInstallerCacheDir () + FS + P28186730_INSTALLER ;
312
318
addPatchToCache ("wls" , P28186730_ID , OPATCH_VERSION , patchPath );
313
319
@@ -512,7 +518,7 @@ public void testECreateRestricedJRFDomainImgUsingWDT() throws Exception {
512
518
String command = imagetool + " create --fromImage "
513
519
+ BASE_OS_IMG + ":" + BASE_OS_IMG_TAG + " --tag " + build_tag + ":" + testMethodName
514
520
+ " --version " + WLS_VERSION + " --latestPSU --user " + oracleSupportUsername
515
- + " --password " + oracleSupportPassword + " --wdtVersion " + WDT_VERSION
521
+ + " --passwordEnv ORACLE_SUPPORT_PASSWORD" + " --wdtVersion " + WDT_VERSION
516
522
+ " --wdtArchive " + wdtArchive + " --wdtDomainHome /u01/domains/simple_domain --wdtModel "
517
523
+ wdtModel + " --wdtDomainType RestrictedJRF --type fmw --wdtVariables " + wdtVariables ;
518
524
@@ -556,7 +562,7 @@ public void testFCreateWLSImgUsingMultiModels() throws Exception {
556
562
557
563
// need to add the required patches 28186730 for Opatch before create wls images
558
564
// delete the cache entry first
559
- deleteEntryFromCache (P28186730_ID + "_opatch" );
565
+ deleteEntryFromCache (P28186730_ID + "_" + OPATCH_VERSION );
560
566
String patchPath = getInstallerCacheDir () + FS + P28186730_INSTALLER ;
561
567
addPatchToCache ("wls" , P28186730_ID , OPATCH_VERSION , patchPath );
562
568
0 commit comments