Skip to content

Commit a759e11

Browse files
authored
Added automatic patching for the Oracle JDBC driver into --recommendedPatches for WLS/FMW installs (#342)
1 parent f9986ca commit a759e11

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/aru/AruProduct.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public enum AruProduct {
2525
WCS("20995", "Oracle WebCenter Sites"),
2626
JDEV("11281", "Oracle JDeveloper"),
2727
OPSS("16606", "Oracle Platform Security Service"),
28-
OWSM("12787", "Oracle Webservices Manager")
28+
OWSM("12787", "Oracle Webservices Manager"),
29+
JDBC("9512", "Oracle JDBC for Fusion Middleware")
2930
//FIT("33256", "Fusion Internal Tools") No longer used after July 2020 PSU
3031
;
3132

imagetool/src/main/java/com/oracle/weblogic/imagetool/installer/FmwInstallerType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public enum FmwInstallerType {
2424
// data from https://updates.oracle.com/Orion/Services/metadata?table=aru_products
2525

2626
// Oracle WebLogic Server
27-
WLS(Utils.toSet(AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT),
27+
WLS(Utils.toSet(AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JDBC),
2828
InstallerType.WLS),
2929
WLSSLIM(Utils.toSet(WLS.products),
3030
InstallerType.WLSSLIM),

imagetool/src/test/java/com/oracle/weblogic/imagetool/installer/InstallerTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ void fmwInstallerTypeListTest() {
3232

3333
@Test
3434
void fmwInstallerProductIds() {
35-
AruProduct[] list1 = {AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT};
35+
AruProduct[] list1 = {AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JDBC};
3636
assertEquals(Utils.toSet(list1), FmwInstallerType.WLS.products(),
3737
"WLS product list is incorrect or out of order");
3838

39-
AruProduct[] list2 = {AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JRF, AruProduct.JDEV,
40-
AruProduct.OPSS, AruProduct.OWSM};
39+
AruProduct[] list2 = {AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JDBC,
40+
AruProduct.JRF, AruProduct.JDEV, AruProduct.OPSS, AruProduct.OWSM};
4141
assertEquals(Utils.toSet(list2), FmwInstallerType.FMW.products(),
4242
"FMW product list is incorrect or out of order");
4343

44-
AruProduct[] list3 = {AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JRF, AruProduct.JDEV,
45-
AruProduct.OPSS, AruProduct.OWSM, AruProduct.SOA};
44+
AruProduct[] list3 = {AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JDBC,
45+
AruProduct.JRF, AruProduct.JDEV, AruProduct.OPSS, AruProduct.OWSM, AruProduct.SOA};
4646
assertEquals(Utils.toSet(list3), FmwInstallerType.SOA.products(),
4747
"SOA product list is incorrect or out of order");
4848
}
@@ -57,7 +57,7 @@ void fmwInstallerFromValue() {
5757

5858
@Test
5959
void fromProductList() {
60-
final String WLS_PRODUCTS = "WLS,COH,TOPLINK";
60+
final String WLS_PRODUCTS = "WLS,COH,TOPLINK,JDBC";
6161
final String FMW_PRODUCTS = WLS_PRODUCTS + ",INFRA,OPSS,OWSM";
6262
assertEquals(FmwInstallerType.WLS, FmwInstallerType.fromProductList(WLS_PRODUCTS));
6363
assertEquals(FmwInstallerType.FMW, FmwInstallerType.fromProductList(FMW_PRODUCTS));

0 commit comments

Comments
 (0)