use of com.github.diegopacheco.dynomite.cluster.checker.context.NodeCheckerResponse in project dynomite-cluster-checker by diegopacheco.
the class CheckerResponseTest method shouldNotBreakWhenThereIsNoInsertTime.
@Test
public void shouldNotBreakWhenThereIsNoInsertTime() {
NodeCheckerResponse checkerResponse = new NodeCheckerResponse("172.28.198.18:8102:rack1:default_dc:100", null, "0", false, "localhost");
String content = checkerResponse.toPrettyTelemetryJson();
assertTrue(content.contains("\"server\":\"localhost\""));
assertTrue(content.contains("\"seeds\":\"172.28.198.18:8102:rack1:default_dc:100\""));
assertTrue(content.contains("\"getTime\":\"0\""));
assertTrue(content.contains("\"insertError\":\"0\""));
assertTrue(content.contains("\"getError\":\"0\""));
assertTrue(content.contains("\"consistency\":\"1\""));
}
Aggregations