Skip to content

Commit c0f877d

Browse files
committed
Completed JIRA OWLS-72999 - Migrate Sticky Sessions test suite to github jenkins-ignore
1 parent 3c2e2f1 commit c0f877d

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

integration-tests/USECASES.MD

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,10 @@ Configuration Overrides Usecases
9696

9797
| Server Discovery | Use Case |
9898
| --- | --- |
99-
| Discover a newly started server | stop operator and apply the modified domain.yaml with replicas count increated, restart Operator and verify that the cluster is scaled up accordingly |
100-
| Discover dead weblogic servers | stop Operator, kill admin server and all managed servers in the cluster, restart Operator and verify that it restarts all dead servers |
99+
| Discover a newly started server | Stop operator and apply the modified domain.yaml with replicas count increated, restart Operator and verify that the cluster is scaled up accordingly |
100+
| Discover dead weblogic servers | Stop Operator, kill admin server and all managed servers in the cluster, restart Operator and verify that it restarts all dead servers |
101+
102+
| Sticky Session | Use Case |
103+
| --- | --- |
104+
| Server affinity | Use a web application deployed on Weblogic cluster to track HTTP session. Test server-affinity by sending two HTTP requests to Weblogic and verify that all requests are directed to same Weblogic server |
105+
| Session state isolation | Verify that values saved in a client’s session state are not visible to another client |

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
public class ITStickySession extends BaseTest {
3030
private static final String testAppName = "stickysessionapp";
3131
private static final String testAppPath = testAppName + "/StickySessionCounterServlet";
32-
// private static final String testAppName = "httpsessionreptestapp";
33-
// private static final String testAppPath = testAppName + "/CounterServlet";
3432
private static final String scriptName = "buildDeployAppInPod.sh";
3533

3634
private static Map<String, String> httpAttrMap;
@@ -185,7 +183,9 @@ public void testSameSessionStickiness() throws Exception {
185183
}
186184

187185
/**
188-
* Use a web application deployed on Weblogic cluster to track HTTP sessions. This test sends two
186+
* Use a web application deployed on Weblogic cluster to track HTTP session. In-memory replication
187+
* persistence method is configured to implement session persistence. server-affinity is achieved
188+
* by Voyager load balancer based on HTTP session information. This test sends two
189189
* HTTP requests from two different clients to Weblogic and verify that HTTP sessions are
190190
* isolated.
191191
*
@@ -239,10 +239,10 @@ public void testDiffSessionsNoSharing() throws Exception {
239239
+ count
240240
+ ">");
241241

242-
// Verify that each client session has a different session ID
242+
// Verify that each client session has its own session ID
243243
Assume.assumeFalse("HTTP session should NOT be same!", serverIDClient1.equals(serverIDClient2));
244244

245-
// Verify that HTTP session state is not shared between two clients
245+
// Verify that count number retrieved from session state is not shared between two clients
246246
Assume.assumeTrue(
247247
"Count number <" + counterNum + "> set by client1 should be invisible to client2",
248248
count.equals("0"));

0 commit comments

Comments
 (0)