Skip to content

Fix and Enhance Session Affinity Tests#533

Merged
ameowlia merged 3 commits intocloudfoundry:developfrom
sap-contributions:fix-session-affinity-test
Feb 27, 2026
Merged

Fix and Enhance Session Affinity Tests#533
ameowlia merged 3 commits intocloudfoundry:developfrom
sap-contributions:fix-session-affinity-test

Conversation

@hoffmaen
Copy link
Contributor

@hoffmaen hoffmaen commented Feb 27, 2026

Summary

This Pull-Request fixes a test failure introduced with #530.
The session affinity tests use MaxAge=1 by default. Before #530, positive MaxAge values were ignored and the corresponding __VCAP_ID__ cookie had no MaxAge (corresponds to Max-Age=0 in http.Cookies).
After #530, Gorouter applies positive Max-Age values from JSESSIONID to __VCAP_ID__, but this test case has been overseen.
Removing the default value for MaxAge in the tests, adding a few test cases, and improving consistency over test cases.

Backward Compatibility

Breaking Change? No

@hoffmaen hoffmaen changed the title Fix session affinity test Fix Session Affinity Tests Feb 27, 2026
@hoffmaen hoffmaen changed the title Fix Session Affinity Tests Fix and Enhance Session Affinity Tests Feb 27, 2026
@ameowlia ameowlia marked this pull request as ready for review February 27, 2026 15:36
@ameowlia ameowlia requested a review from a team as a code owner February 27, 2026 15:36
@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Application Runtime Platform Working Group Feb 27, 2026
@ameowlia ameowlia merged commit 1b32930 into cloudfoundry:develop Feb 27, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Application Runtime Platform Working Group Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants