Skip to content

Commit f1957f2

Browse files
authored
Merge pull request #1102 from oracle/shutdowntest
added tests for shutdown props
2 parents eb1dbdc + d4a3b79 commit f1957f2

File tree

5 files changed

+865
-19
lines changed

5 files changed

+865
-19
lines changed

integration-tests/USECASES.MD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ Basic Use Cases described above are verified in all the domain configurations. A
7979
| Server pods restarted by changing restartVersion at cluster level | Verify managed server pods part of the dynamic cluster are restarted by adding restartVersion property at cluster level : `restartVersion: "v1.1"` |
8080
| Server pods restarted by changing restartVersion at domain level | Verify all the server pods in the weblogic domain are restarted by adding restartVersion property at domain level: `restartVersion: "v1.1"` |
8181

82+
| Server Pods Shutdown options| Use Case |
83+
| --- | --- |
84+
| Shutdown options: domain level| Verify that shutdown options set at the domain level will apply to all servers in the domain |
85+
| Shutdown options: managed server level | Verify that shutdown options set at the managed server level will apply only to the specified server |
86+
| Shutdown options: cluster level | Verify that shutdown options set at the cluster level will apply only to the all servers in that cluster |
87+
| Shutdown options: use env variables | Verify that shutdown options set using env vars will apply |
88+
| Shutdown option ignoreSessions | Verify that shutdown option: ignoreSessions(true, false) will effect shutdown time of the pod |
89+
| Shutdown option timeout | Verify that shutdown option: timeout will effect shutdown time of the pod |
90+
| Shutdown option Forced | Verify that shutdown option: Forced will effect shutdown time of the pod |
91+
| Shutdown overrides | Verify that shutdown options set on (managed server or cluster) (lowest level) will take priority over domain level settings |
92+
8293
Configuration Overrides Usecases
8394

8495
| Override | Usecase |

integration-tests/src/test/java/oracle/kubernetes/operator/BaseTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,14 @@ public static int getMaxIterationsPod() {
632632
return maxIterationsPod;
633633
}
634634

635+
public static void setMaxIterationsPod(int iterationsPod) {
636+
maxIterationsPod = iterationsPod;
637+
}
638+
639+
public static void setWaitTimePod(int timePod) {
640+
waitTimePod = timePod;
641+
}
642+
635643
public static int getWaitTimePod() {
636644
return waitTimePod;
637645
}

0 commit comments

Comments
 (0)