From 03ffc8a77705d4531cfb63d4c2a82d614f553f71 Mon Sep 17 00:00:00 2001 From: Cody Constine Date: Fri, 6 Dec 2024 15:59:31 -0700 Subject: [PATCH 1/2] Fixing small issue with cloud encryption keys json --- src/main/java/com/uid2/core/vertx/CoreVerticle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/uid2/core/vertx/CoreVerticle.java b/src/main/java/com/uid2/core/vertx/CoreVerticle.java index 5048558..530e388 100644 --- a/src/main/java/com/uid2/core/vertx/CoreVerticle.java +++ b/src/main/java/com/uid2/core/vertx/CoreVerticle.java @@ -621,7 +621,7 @@ void handleCloudEncryptionKeysRetrieval(RoutingContext rc) { } JsonObject response = new JsonObject() - .put("cloudEncryptionKeys", new JsonArray(cloudEncryptionKeys)); + .put("cloud_encryption_keys", new JsonArray(cloudEncryptionKeys)); rc.response().putHeader(HttpHeaders.CONTENT_TYPE, "application/json") .end(response.encode()); From 1cb765e5756c73a52f250538c16b62a03759347a Mon Sep 17 00:00:00 2001 From: Cody Constine Date: Mon, 9 Dec 2024 12:29:20 -0700 Subject: [PATCH 2/2] Fixed unit tests --- src/test/java/com/uid2/core/vertx/TestCoreVerticle.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/uid2/core/vertx/TestCoreVerticle.java b/src/test/java/com/uid2/core/vertx/TestCoreVerticle.java index dc271e9..7821013 100644 --- a/src/test/java/com/uid2/core/vertx/TestCoreVerticle.java +++ b/src/test/java/com/uid2/core/vertx/TestCoreVerticle.java @@ -673,7 +673,7 @@ void cloudEncryptionKeyRetrieveSuccess(Vertx vertx, VertxTestContext testContext assertEquals(200, response.statusCode()); JsonObject json = response.bodyAsJsonObject(); - JsonArray cloudEncryptionKeysArray = json.getJsonArray("cloudEncryptionKeys"); + JsonArray cloudEncryptionKeysArray = json.getJsonArray("cloud_encryption_keys"); assertNotNull(cloudEncryptionKeysArray); assertEquals(1, cloudEncryptionKeysArray.size()); @@ -721,7 +721,7 @@ void cloudEncryptionKeyRetrieveSuccessWithThreeKeys(Vertx vertx, VertxTestContex assertEquals(200, response.statusCode()); JsonObject json = response.bodyAsJsonObject(); - JsonArray cloudEncryptionKeysArray = json.getJsonArray("cloudEncryptionKeys"); + JsonArray cloudEncryptionKeysArray = json.getJsonArray("cloud_encryption_keys"); assertNotNull(cloudEncryptionKeysArray); assertEquals(3, cloudEncryptionKeysArray.size());