-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not use outdated request
package in tests.
#109225
Do not use outdated request
package in tests.
#109225
Conversation
27226a2
to
1e89503
Compare
@@ -103,7 +103,7 @@ interface Storage { | |||
} | |||
|
|||
function retrieveSessionCookie(cookies: string) { | |||
const sessionCookie = request.cookie(cookies); | |||
const sessionCookie = parseCookie(cookies); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: unfortunately couldn't test this change as the entire test suite is skipped for the last 5 months 😢
💚 Build SucceededMetrics [docs]
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reading "cookie" a couple hundred times, I realized what a weird word it is!
LGTM, thanks for taking care of this 💪
// Do not assert on the `authentication_realm`, as the value differes for on-prem vs cloud | ||
// Do not assert on the `authentication_realm`, as the value differs for on-prem vs cloud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄
Friendly reminder: Looks like this PR hasn’t been backported yet. |
💔 Backport failed
To backport manually run: |
Summary
In this PR we switch to a well-maintained
tough-cookie
package to parseset-cookie
HTTP headers in our tests instead of relying on the deprecated and unmaintainedrequest
package. Unlikerequest
we maketough-cookie
a dev-only dependency.Related to: #109202