Skip to content

Instantly share code, notes, and snippets.

@turing85
Created January 5, 2024 01:39
Show Gist options
  • Save turing85/a766b83f6a412426a09b1240520b2d29 to your computer and use it in GitHub Desktop.
Save turing85/a766b83f6a412426a09b1240520b2d29 to your computer and use it in GitHub Desktop.
Index: src/test/java/com/rev/testManager/GenericTestManager.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/test/java/com/rev/testManager/GenericTestManager.java b/src/test/java/com/rev/testManager/GenericTestManager.java
--- a/src/test/java/com/rev/testManager/GenericTestManager.java (revision fdbb02b096ceadcec5cf658d183833d518b51c61)
+++ b/src/test/java/com/rev/testManager/GenericTestManager.java (date 1704418650332)
@@ -44,11 +44,11 @@
JSONObject requestParams = new JSONObject();
requestParams.put("grant_type", "client_credentials");
requestParams.put("client_id", 1);
- requestParams.put("client_secrets", "Gsv7brPlt5fIpqa1ebFc5A1uHwDJBPY6TRaMm8wa");
+ requestParams.put("client_secret", "Gsv7brPlt5fIpqa1ebFc5A1uHwDJBPY6TRaMm8wa");
requestSpecification.header("Content-Type", "application/json");
requestSpecification.body(requestParams.toString());
- response = RestAssured.post();
+ response = requestSpecification.post();
int statusCode = response.getStatusCode();
System.out.println(statusCode);
return response.body().jsonPath().getString("data.access_token");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment