mirror of
https://github.com/apache/druid.git
synced 2025-02-25 04:16:07 +00:00
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:
parent
03a092f4ec
commit
53797b9e49
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user