MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / executeMissingMetricNotWriteable

Method executeMissingMetricNotWriteable

test/tsd/TestPutRpc.java:98–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 @Test
99 public void executeMissingMetricNotWriteable() throws Exception {
100 final PutDataPointRpc put = new PutDataPointRpc(tsdb.getConfig());
101 final Channel chan = NettyMocks.fakeChannel();
102 when(chan.isWritable()).thenReturn(false);
103 put.execute(tsdb, chan, new String[] { "put", "",
104 "1365465600", "42", TAGK_STRING + "=" + TAGV_STRING })
105 .joinUninterruptibly();
106 validateCounters(1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0);
107 verify(chan, never()).write(any());
108 verify(chan, times(1)).isConnected();
109 validateSEH(false);
110 }
111
112 @Test
113 public void executeUnknownMetric() throws Exception {

Callers

nothing calls this directly

Calls 6

fakeChannelMethod · 0.95
executeMethod · 0.95
getConfigMethod · 0.45
validateCountersMethod · 0.45
writeMethod · 0.45
validateSEHMethod · 0.45

Tested by

no test coverage detected