Skip to content

Commit

Permalink
Merge pull request #184 from IABTechLab/cbc-UID2-4571-cloud-encryptio…
Browse files Browse the repository at this point in the history
…n-cleanup

Fixing small issue with cloud encryption keys json
  • Loading branch information
cody-constine-ttd authored Dec 9, 2024
2 parents c4eaa40 + 1cb765e commit 7a33db7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/uid2/core/vertx/CoreVerticle.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/uid2/core/vertx/TestCoreVerticle.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 7a33db7

Please sign in to comment.