Skip to content

Commit

Permalink
Convert the payload for group description update to json
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Zalas <[email protected]>
  • Loading branch information
jakzal committed Sep 28, 2021
1 parent 782304a commit 75caea8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ public void testThatGroupUserQueries() {
}

private Response patchGroupChangeDescriptionRequestResponse(final GroupData groupData, final String description) {
final String request = "PATCH /tenants/" + groupData.tenantId + "/groups/" + groupData.name + "/description HTTP/1.1\nHost: vlingo.io\nContent-Length: " + description.length() + "\n\n" + description;
final String body = String.format("{\"description\":\"%s\"}", description);
final String request = "PATCH /tenants/" + groupData.tenantId + "/groups/" + groupData.name + "/description HTTP/1.1\nHost: vlingo.io\nContent-Length: " + body.length() + "\n\n" + body;
return requestResponse(request);
}

Expand Down

0 comments on commit 75caea8

Please sign in to comment.