From 2582c031aa62132134ba45476eaf92cffa937bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Mon, 17 Oct 2022 12:31:57 +0200 Subject: [PATCH] Tests - migrate 2 deprecated Smallrye JWT properties There is no test using non-deprecated properties. If we need to choose, `io.quarkus.jwt.test.JwtCookieDevModeTestCase`, `JwtCookieUnitTest` should prefer non-deprecated `header` and `cookie` properties. `smallrye.jwt.token.header` property is deprecated and will be removed in a future version. Tests now use `mp.jwt.token.header` property. `smallrye.jwt.token.cookie` property is deprecated and will be removed in a future version. Tests now use `mp.jwt.token.cookie` property. --- .../src/test/resources/applicationJwtCookie.properties | 4 ++-- .../src/test/resources/applicationJwtCookieDev.properties | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/smallrye-jwt/deployment/src/test/resources/applicationJwtCookie.properties b/extensions/smallrye-jwt/deployment/src/test/resources/applicationJwtCookie.properties index b19a82a3f4006..55a17ccedef34 100644 --- a/extensions/smallrye-jwt/deployment/src/test/resources/applicationJwtCookie.properties +++ b/extensions/smallrye-jwt/deployment/src/test/resources/applicationJwtCookie.properties @@ -1,7 +1,7 @@ mp.jwt.verify.publickey.location=/publicKey.pem mp.jwt.verify.issuer=https://server.example.com smallrye.jwt.claims.groups=User -smallrye.jwt.token.header=Cookie -smallrye.jwt.token.cookie=cookie_a +mp.jwt.token.header=Cookie +mp.jwt.token.cookie=cookie_a smallrye.jwt.sign.key.location=/privateKey.pem quarkus.smallrye-jwt.enabled=true diff --git a/extensions/smallrye-jwt/deployment/src/test/resources/applicationJwtCookieDev.properties b/extensions/smallrye-jwt/deployment/src/test/resources/applicationJwtCookieDev.properties index 9653421903e09..99231ba51bfc0 100644 --- a/extensions/smallrye-jwt/deployment/src/test/resources/applicationJwtCookieDev.properties +++ b/extensions/smallrye-jwt/deployment/src/test/resources/applicationJwtCookieDev.properties @@ -1,7 +1,7 @@ #mp.jwt.verify.publickey.location=/publicKey.pem #mp.jwt.verify.issuer=https://server.example.com #smallrye.jwt.claims.groups=User -#smallrye.jwt.token.header=Cookie -#smallrye.jwt.token.cookie=cookie_a +#mp.jwt.token.header=Cookie +#mp.jwt.token.cookie=cookie_a #smallrye.jwt.sign.key.location=/privateKey.pem quarkus.smallrye-jwt.enabled=true