Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing small issue with cloud encryption keys json #184

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading