@@ -52,8 +52,8 @@ class ITImagetool {
52
52
53
53
// STAGING_DIR - directory where JDK and other installers are pre-staged before testing
54
54
private static final String STAGING_DIR = System .getProperty ("STAGING_DIR" );
55
- private static final String wlsImgBldDir = System .getProperty ("WLSIMG_BLDDIR" );
56
- private static final String wlsImgCacheDir = System .getProperty ("WLSIMG_CACHEDIR" );
55
+ private static final String BLDDIR_ENV = System .getProperty ("WLSIMG_BLDDIR" );
56
+ private static final String CACHEDIR_ENV = System .getProperty ("WLSIMG_CACHEDIR" );
57
57
58
58
// Docker images
59
59
private static String DB_IMAGE = System .getProperty ("DB_IMAGE" );
@@ -74,7 +74,7 @@ class ITImagetool {
74
74
private static final String WLS_VERSION = "12.2.1.3.0" ;
75
75
private static final String OPATCH_VERSION = "13.9.4.2.2" ;
76
76
private static final String JDK_VERSION = "8u202" ;
77
- private static final String JDK_VERSION_8u212 = "8u212" ;
77
+ private static final String JDK_VERSION_212 = "8u212" ;
78
78
private static final String WDT_VERSION = "1.1.2" ;
79
79
private static final Path WDT_ARCHIVE = Paths .get ("target" , "wdt" , "archive.zip" );
80
80
private static final Path WDT_RESOURCES = Paths .get ("src" , "test" , "resources" , "wdt" );
@@ -92,11 +92,11 @@ private static void validateEnvironmentSettings() {
92
92
logger .info ("Initializing the tests ..." );
93
93
94
94
List <String > missingSettings = new ArrayList <>();
95
- if (Utils .isEmptyString (wlsImgBldDir )) {
95
+ if (Utils .isEmptyString (BLDDIR_ENV )) {
96
96
missingSettings .add ("WLSIMG_BLDDIR" );
97
97
}
98
98
99
- if (Utils .isEmptyString (wlsImgCacheDir )) {
99
+ if (Utils .isEmptyString (CACHEDIR_ENV )) {
100
100
missingSettings .add ("WLSIMG_CACHEDIR" );
101
101
}
102
102
@@ -129,8 +129,8 @@ private static void validateEnvironmentSettings() {
129
129
}
130
130
dbContainerName = "InfraDB4" + build_tag ;
131
131
logger .info ("build_tag = " + build_tag );
132
- logger .info ("WLSIMG_BLDDIR = " + wlsImgBldDir );
133
- logger .info ("WLSIMG_CACHEDIR = " + wlsImgCacheDir );
132
+ logger .info ("WLSIMG_BLDDIR = " + BLDDIR_ENV );
133
+ logger .info ("WLSIMG_CACHEDIR = " + CACHEDIR_ENV );
134
134
logger .info ("STAGING_DIR = " + STAGING_DIR );
135
135
logger .info ("DB_IMAGE = " + DB_IMAGE );
136
136
logger .info ("JRE_IMAGE = " + JRE_IMAGE );
@@ -208,10 +208,10 @@ static void staticPrepare() throws Exception {
208
208
209
209
logger .info ("Setting up the test environment ..." );
210
210
211
- if (!(new File (wlsImgBldDir )).exists ()) {
212
- logger .info (wlsImgBldDir + " does not exist, creating it" );
213
- if (!(new File (wlsImgBldDir )).mkdir ()) {
214
- throw new IllegalStateException ("Unable to create build directory " + wlsImgBldDir );
211
+ if (!(new File (BLDDIR_ENV )).exists ()) {
212
+ logger .info (BLDDIR_ENV + " does not exist, creating it" );
213
+ if (!(new File (BLDDIR_ENV )).mkdir ()) {
214
+ throw new IllegalStateException ("Unable to create build directory " + BLDDIR_ENV );
215
215
}
216
216
}
217
217
@@ -706,7 +706,7 @@ void createMiiOl8slim(TestInfo testInfo) throws Exception {
706
706
707
707
// test assumes that the default JDK version 8u202 is already in the cache
708
708
709
- Path tmpWdtModel = Paths .get (wlsImgBldDir , WDT_MODEL1 );
709
+ Path tmpWdtModel = Paths .get (BLDDIR_ENV , WDT_MODEL1 );
710
710
711
711
// update wdt model file
712
712
Files .copy (WDT_RESOURCES .resolve (WDT_MODEL1 ), tmpWdtModel , StandardCopyOption .REPLACE_EXISTING );
@@ -788,7 +788,7 @@ void createFmwImgFullInternetAccess(TestInfo testInfo) throws Exception {
788
788
// add jdk 8u212 installer to the cache
789
789
String addNewJdkCmd = new CacheCommand ().addInstaller (true )
790
790
.type ("jdk" )
791
- .version (JDK_VERSION_8u212 )
791
+ .version (JDK_VERSION_212 )
792
792
.path (Paths .get (STAGING_DIR , JDK_INSTALLER_NEWER ))
793
793
.build ();
794
794
@@ -801,7 +801,7 @@ void createFmwImgFullInternetAccess(TestInfo testInfo) throws Exception {
801
801
// create an image with FMW and the latest PSU using ARU to download the patch
802
802
String command = new CreateCommand ()
803
803
.tag (tagName )
804
- .jdkVersion (JDK_VERSION_8u212 )
804
+ .jdkVersion (JDK_VERSION_212 )
805
805
.type ("fmw" )
806
806
.user (oracleSupportUsername )
807
807
.passwordEnv ("ORACLE_SUPPORT_PASSWORD" )
@@ -835,7 +835,7 @@ void createJrfDomainImgUsingWdt(TestInfo testInfo) throws Exception {
835
835
836
836
// test assumes that the default JDK version 8u202 is already in the cache
837
837
838
- Path tmpWdtModel = Paths .get (wlsImgBldDir , WDT_MODEL1 );
838
+ Path tmpWdtModel = Paths .get (BLDDIR_ENV , WDT_MODEL1 );
839
839
840
840
// update wdt model file
841
841
Files .copy (WDT_RESOURCES .resolve (WDT_MODEL1 ), tmpWdtModel , StandardCopyOption .REPLACE_EXISTING );
0 commit comments