Skip to content

Commit 9e814fb

Browse files
authored
backport pr3862 to release/4.0 (#3880)
1 parent fd9fc37 commit 9e814fb

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiDynamicUpdatePart2.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021, 2022, Oracle and/or its affiliates.
1+
// Copyright (c) 2021, 2023, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
package oracle.weblogic.kubernetes;
@@ -204,9 +204,8 @@ void testMiiDeleteDatasource() {
204204
// write sparse yaml to delete datasource to file
205205
Path pathToDeleteDSYaml = Paths.get(WORK_DIR + "/deleteds.yaml");
206206
String yamlToDeleteDS = "resources:\n"
207-
+ " JDBCSystemResource:\n"
208-
+ " '!TestDataSource2':";
209-
207+
+ " JDBCSystemResource:\n";
208+
210209
assertDoesNotThrow(() -> Files.write(pathToDeleteDSYaml, yamlToDeleteDS.getBytes()));
211210

212211
// Replace contents of an existing configMap with cm config

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiDynamicUpdatePart3.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021, 2022, Oracle and/or its affiliates.
1+
// Copyright (c) 2021, 2023, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
package oracle.weblogic.kubernetes;
@@ -330,9 +330,8 @@ void testMiiChangeDataSourceParameterWithCommitUpdateAndRoll() {
330330
// write sparse yaml to delete datasource to file, delete ds to keep the config clean
331331
Path pathToDeleteDSYaml = Paths.get(WORK_DIR + "/deleteds.yaml");
332332
String yamlToDeleteDS = "resources:\n"
333-
+ " JDBCSystemResource:\n"
334-
+ " '!TestDataSource2':";
335-
333+
+ " JDBCSystemResource:\n";
334+
336335
assertDoesNotThrow(() -> Files.write(pathToDeleteDSYaml, yamlToDeleteDS.getBytes()));
337336

338337
pods = new LinkedHashMap<>();

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiUpdateDomainConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020, 2022, Oracle and/or its affiliates.
1+
// Copyright (c) 2020, 2023, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
package oracle.weblogic.kubernetes;
@@ -375,7 +375,7 @@ void testMiiDeleteSystemResources() {
375375
String configMapName = "deletesysrescm";
376376
createConfigMapAndVerify(
377377
configMapName, domainUid, domainNamespace,
378-
Arrays.asList(MODEL_DIR + "/model.delete.sysresources.yaml"));
378+
Arrays.asList(MODEL_DIR + "/model.delete.sysresourcesbyconfigmap.yaml"));
379379

380380
LinkedHashMap<String, OffsetDateTime> pods = new LinkedHashMap<>();
381381
// get the creation time of the admin server pod before patching
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2023, Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
##empty file to remove all the system resources

0 commit comments

Comments
 (0)