From 4d6e5c36d62c2b79c0a3369b5da3c7602930c641 Mon Sep 17 00:00:00 2001 From: Sunny Wu Date: Wed, 28 Feb 2024 18:41:35 +1100 Subject: [PATCH] Added max_sharing_lifetime_seconds and identity_scope fields in key/sharing endpoint --- src/test/java/com/uid2/operator/UIDOperatorVerticleTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/uid2/operator/UIDOperatorVerticleTest.java b/src/test/java/com/uid2/operator/UIDOperatorVerticleTest.java index cc724a0d6..7fffc0b90 100644 --- a/src/test/java/com/uid2/operator/UIDOperatorVerticleTest.java +++ b/src/test/java/com/uid2/operator/UIDOperatorVerticleTest.java @@ -3975,7 +3975,8 @@ void keySharingKeysets_SHARER(Vertx vertx, VertxTestContext testContext, int exp assertEquals(clientSiteId, respJson.getJsonObject("body").getInteger("caller_site_id")); assertEquals(UIDOperatorVerticle.MASTER_KEYSET_ID_FOR_SDKS, respJson.getJsonObject("body").getInteger("master_keyset_id")); assertEquals(4, respJson.getJsonObject("body").getInteger("default_keyset_id")); - + + assertEquals(config.getInteger(Const.Config.SharingTokenExpiryProp), Integer.parseInt(respJson.getJsonObject("body").getString("token_expiry_seconds"))); assertEquals(expectedMaxSharingLifetimeSeconds, respJson.getJsonObject("body").getInteger("max_sharing_lifetime_seconds")); assertEquals(getIdentityScope().toString(), respJson.getJsonObject("body").getString("identity_scope"));