YARN-11429. Improve the updateTestDataAutomatically in TestRMWebServices. (#5736)
This commit is contained in:
parent
a75e378868
commit
f4b70b353d
@ -336,7 +336,7 @@ public static void assertJsonResponse(ClientResponse response,
|
|||||||
JSONException, IOException {
|
JSONException, IOException {
|
||||||
assertJsonType(response);
|
assertJsonType(response);
|
||||||
JSONObject json = response.getEntity(JSONObject.class);
|
JSONObject json = response.getEntity(JSONObject.class);
|
||||||
String actual = json.toString(2);
|
String actual = prettyPrintJson(json.toString(2));
|
||||||
updateTestDataAutomatically(expectedResourceFilename, actual);
|
updateTestDataAutomatically(expectedResourceFilename, actual);
|
||||||
assertEquals(
|
assertEquals(
|
||||||
prettyPrintJson(getResourceAsString(expectedResourceFilename)),
|
prettyPrintJson(getResourceAsString(expectedResourceFilename)),
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user