YARN-11429. Improve the updateTestDataAutomatically in TestRMWebServices. (#5736)

This commit is contained in:
Tamas Domok 2023-06-14 14:39:07 +02:00 committed by GitHub
parent a75e378868
commit f4b70b353d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 26379 additions and 27276 deletions

View File

@ -336,7 +336,7 @@ public static void assertJsonResponse(ClientResponse response,
JSONException, IOException {
assertJsonType(response);
JSONObject json = response.getEntity(JSONObject.class);
String actual = json.toString(2);
String actual = prettyPrintJson(json.toString(2));
updateTestDataAutomatically(expectedResourceFilename, actual);
assertEquals(
prettyPrintJson(getResourceAsString(expectedResourceFilename)),