Fixed a flaky test in S3DataSegmentPusherConfigTest#testSerialization by changing string to key:value pair (#15207)

* Fix capacity response in mm-less ingestion (#14888)

Changes:
- Fix capacity response in mm-less ingestion.
- Add field usedClusterCapacity to the GET /totalWorkerCapacity response.
This API should be used to get the total ingestion capacity on the overlord.
- Remove method `isK8sTaskRunner` from interface `TaskRunner`

* Using Map to perform comparison

* Minor Change

---------

Co-authored-by: George Shiqi Wu <george.wu@imply.io>
This commit is contained in:
Krishna Anandan 2023-11-15 11:05:55 -06:00 committed by GitHub
parent 03a092f4ec
commit 53797b9e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,9 @@ public class S3DataSegmentPusherConfigTest
+ "\"disableAcl\":false,\"maxListingLength\":2000,\"useS3aSchema\":false}";
S3DataSegmentPusherConfig config = JSON_MAPPER.readValue(jsonConfig, S3DataSegmentPusherConfig.class);
Assert.assertEquals(jsonConfig, JSON_MAPPER.writeValueAsString(config));
Map<String, String> expected = JSON_MAPPER.readValue(jsonConfig, Map.class);
Map<String, String> actual = JSON_MAPPER.readValue(JSON_MAPPER.writeValueAsString(config), Map.class);
Assert.assertEquals(expected, actual);
}
@Test