Skip to content

Commit f9986ca

Browse files
authored
Added automatic patching for OPSS and OWSM into --recommendedPatches for FMW installs (#341)
1 parent 931a12a commit f9986ca

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public enum AruProduct {
2323
WCC("13946", "Oracle WebCenter Content"),
2424
WCP("15224", "Oracle WebCenter Portal"),
2525
WCS("20995", "Oracle WebCenter Sites"),
26-
JDEV("11281", "Oracle JDeveloper")
26+
JDEV("11281", "Oracle JDeveloper"),
27+
OPSS("16606", "Oracle Platform Security Service"),
28+
OWSM("12787", "Oracle Webservices Manager")
2729
//FIT("33256", "Fusion Internal Tools") No longer used after July 2020 PSU
2830
;
2931

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
@@ -32,7 +32,7 @@ public enum FmwInstallerType {
3232
InstallerType.WLSDEV),
3333

3434
// Oracle WebLogic Server Infrastructure (JRF)
35-
FMW(Utils.toSet(WLS.products, AruProduct.JRF, AruProduct.JDEV),
35+
FMW(Utils.toSet(WLS.products, AruProduct.JRF, AruProduct.JDEV, AruProduct.OPSS, AruProduct.OWSM),
3636
InstallerType.FMW),
3737
// Oracle Service Bus
3838
OSB(Utils.toSet(FMW.products, AruProduct.OSB),

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ void fmwInstallerProductIds() {
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};
39+
AruProduct[] list2 = {AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JRF, AruProduct.JDEV,
40+
AruProduct.OPSS, AruProduct.OWSM};
4041
assertEquals(Utils.toSet(list2), FmwInstallerType.FMW.products(),
4142
"FMW product list is incorrect or out of order");
4243

4344
AruProduct[] list3 = {AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JRF, AruProduct.JDEV,
44-
AruProduct.SOA};
45+
AruProduct.OPSS, AruProduct.OWSM, AruProduct.SOA};
4546
assertEquals(Utils.toSet(list3), FmwInstallerType.SOA.products(),
4647
"SOA product list is incorrect or out of order");
4748
}
@@ -56,11 +57,13 @@ void fmwInstallerFromValue() {
5657

5758
@Test
5859
void fromProductList() {
59-
assertEquals(FmwInstallerType.WLS, FmwInstallerType.fromProductList("WLS,COH,TOPLINK"));
60-
assertEquals(FmwInstallerType.FMW, FmwInstallerType.fromProductList("INFRA,WLS,COH,TOPLINK"));
61-
assertEquals(FmwInstallerType.SOA_OSB, FmwInstallerType.fromProductList("INFRA,WLS,COH,TOPLINK,BPM,SOA,OSB"));
60+
final String WLS_PRODUCTS = "WLS,COH,TOPLINK";
61+
final String FMW_PRODUCTS = WLS_PRODUCTS + ",INFRA,OPSS,OWSM";
62+
assertEquals(FmwInstallerType.WLS, FmwInstallerType.fromProductList(WLS_PRODUCTS));
63+
assertEquals(FmwInstallerType.FMW, FmwInstallerType.fromProductList(FMW_PRODUCTS));
64+
assertEquals(FmwInstallerType.SOA_OSB, FmwInstallerType.fromProductList(FMW_PRODUCTS + ",BPM,SOA,OSB"));
6265
// Ignore unsupported products, but keep as many products as possible that ARE known
63-
assertEquals(FmwInstallerType.FMW, FmwInstallerType.fromProductList("INFRA,WLS,COH,TOPLINK,OIM"));
66+
assertEquals(FmwInstallerType.FMW, FmwInstallerType.fromProductList(FMW_PRODUCTS + ",OIM"));
6467
assertNull(FmwInstallerType.fromProductList(""));
6568
assertNull(FmwInstallerType.fromProductList(null));
6669
}

0 commit comments

Comments
 (0)