assertThat(packets.keySet(), hasItems("sent", "received", "errors_received", "retransmitted", "rst_sent"));
}
@Test
public void testNetworkTcpConnectionFields() throws Exception {
SQLResponse response = executor.exec("select " +
"network['tcp']['connections']['initiated'], " +
"network['tcp']['connections']['accepted'], " +
"network['tcp']['connections']['curr_established']," +
"network['tcp']['connections']['dropped']," +
"network['tcp']['connections']['embryonic_dropped']" +
" from sys.nodes limit 1");
assertThat(response.rowCount(), is(1L));
for (int i=0; i< response.cols().length; i++) {
assertThat((Long) response.rows()[0][i], greaterThanOrEqualTo(-1L));
}
}