From bee031ebd31825207d1ac6aa7257d5cd700e55cb Mon Sep 17 00:00:00 2001 From: Artem Vysochyn Date: Thu, 5 Dec 2024 00:22:52 +0200 Subject: [PATCH] Dropped support of old-qualifier --- .../java/io/scalecube/services/gateway/SecuredService.java | 4 ++-- .../services/gateway/websocket/WebsocketGatewayAuthTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services-gateway/src/test/java/io/scalecube/services/gateway/SecuredService.java b/services-gateway/src/test/java/io/scalecube/services/gateway/SecuredService.java index 28313dd9f..f634e5b64 100644 --- a/services-gateway/src/test/java/io/scalecube/services/gateway/SecuredService.java +++ b/services-gateway/src/test/java/io/scalecube/services/gateway/SecuredService.java @@ -19,13 +19,13 @@ public interface SecuredService { @RequestType(String.class) Mono createSession(ServiceMessage request); + @Secured @ServiceMethod @RequestType(String.class) - @Secured Mono requestOne(String req); + @Secured @ServiceMethod @RequestType(Integer.class) - @Secured Flux requestN(Integer req); } diff --git a/services-gateway/src/test/java/io/scalecube/services/gateway/websocket/WebsocketGatewayAuthTest.java b/services-gateway/src/test/java/io/scalecube/services/gateway/websocket/WebsocketGatewayAuthTest.java index 0734d43f3..3e85a985a 100644 --- a/services-gateway/src/test/java/io/scalecube/services/gateway/websocket/WebsocketGatewayAuthTest.java +++ b/services-gateway/src/test/java/io/scalecube/services/gateway/websocket/WebsocketGatewayAuthTest.java @@ -175,7 +175,7 @@ void securedMethodAuthenticatedReqStream() { private static ServiceMessage createSessionRequest(String username) { return ServiceMessage.builder() - .qualifier("/" + SecuredService.NAMESPACE + "/createSession") + .qualifier(SecuredService.NAMESPACE + "/createSession") .data(username) .build(); }