From 33513f534b0f92f394869f1e9cb8fb118a91e887 Mon Sep 17 00:00:00 2001 From: Xu Yang Date: Tue, 26 Nov 2024 16:31:54 -0800 Subject: [PATCH] update --- .../shared/vertx/RequestCapturingHandlerTest.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/test/java/com/uid2/shared/vertx/RequestCapturingHandlerTest.java b/src/test/java/com/uid2/shared/vertx/RequestCapturingHandlerTest.java index 6f0bb6f3..2feda9e8 100644 --- a/src/test/java/com/uid2/shared/vertx/RequestCapturingHandlerTest.java +++ b/src/test/java/com/uid2/shared/vertx/RequestCapturingHandlerTest.java @@ -149,8 +149,7 @@ public void captureUnknownPath(Vertx vertx, VertxTestContext testContext) { @ParameterizedTest @MethodSource("siteIdRoutingContextData") - public void getSiteIdFromRoutingContextData(String key, Object value, String siteId, String siteName, - Vertx vertx, VertxTestContext testContext) { + public void getSiteIdFromRoutingContextData(String key, Object value, String siteId, String siteName, Vertx vertx, VertxTestContext testContext) { Router router = Router.router(vertx); router.route().handler(new RequestCapturingHandler(siteStore)); router.get("/test").handler(ctx -> { @@ -180,12 +179,9 @@ private static Stream siteIdRoutingContextData() { // Arguments are: routing context data key, routing context data value, site ID tag. return Stream.of( Arguments.of(Const.RoutingContextData.SiteId, 100, "100", "test-100"), - Arguments.of(AuthMiddleware.API_CLIENT_PROP, new ClientKey("keyHash", "keySalt", - "secret", "", Instant.MIN, Set.of(), 200, "test-key-id-1"), "200", "test-200"), - Arguments.of(AuthMiddleware.API_CLIENT_PROP, new OperatorKey("test-keyHash", "test-keySalt", - "name", "contact", "protocol", 0, false, "test-key-id-2"), "null", "unknown"), - Arguments.of(AuthMiddleware.API_CLIENT_PROP, new OperatorKey("test-keyHash", "test-keySalt", - "name", "contact", "protocol", 0, false, 300, "test-key-id-3"), "300", "unknown"), + Arguments.of(AuthMiddleware.API_CLIENT_PROP, new ClientKey("keyHash", "keySalt", "secret", "", Instant.MIN, Set.of(), 200, "test-key-id-1"), "200", "test-200"), + Arguments.of(AuthMiddleware.API_CLIENT_PROP, new OperatorKey("test-keyHash", "test-keySalt", "name", "contact", "protocol", 0, false, "test-key-id-2"), "null", "unknown"), + Arguments.of(AuthMiddleware.API_CLIENT_PROP, new OperatorKey("test-keyHash", "test-keySalt", "name", "contact", "protocol", 0, false, 300, "test-key-id-3"), "300", "unknown"), Arguments.of(null, null, "null", "unknown") ); }