mirror of
https://github.com/tokio-rs/axum.git
synced 2025-04-26 13:56:22 +02:00
Add missing cfg's for signed cookie tests
This commit is contained in:
parent
36f24990c8
commit
944f388ae0
1 changed files with 7 additions and 0 deletions
|
@ -302,9 +302,15 @@ mod tests {
|
|||
}
|
||||
|
||||
cookie_test!(plaintext_cookies, CookieJar);
|
||||
|
||||
#[cfg(feature = "cookie-signed")]
|
||||
cookie_test!(signed_cookies, SignedCookieJar);
|
||||
#[cfg(feature = "cookie-signed")]
|
||||
cookie_test!(signed_cookies_with_custom_key, SignedCookieJar<CustomKey>);
|
||||
|
||||
#[cfg(feature = "cookie-private")]
|
||||
cookie_test!(private_cookies, PrivateCookieJar);
|
||||
#[cfg(feature = "cookie-private")]
|
||||
cookie_test!(private_cookies_with_custom_key, PrivateCookieJar<CustomKey>);
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -334,6 +340,7 @@ mod tests {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "cookie-signed")]
|
||||
#[tokio::test]
|
||||
async fn signed_cannot_access_invalid_cookies() {
|
||||
async fn get_cookie(jar: SignedCookieJar) -> impl IntoResponse {
|
||||
|
|
Loading…
Add table
Reference in a new issue