MCPcopy
hub / github.com/OpenTSDB/opentsdb / scanTooManyDps

Method scanTooManyDps

test/core/TestSaltScanner.java:417–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415 }
416
417 @Test
418 public void scanTooManyDps() throws Exception {
419 setupMockScanners(false);
420 List<TagVFilter> filters = new ArrayList<TagVFilter>(1);
421 filters.add(new TagVWildcardFilter(TAGK_STRING, "web*"));
422
423 final SaltScanner scanner = new SaltScanner(tsdb, METRIC_BYTES, scanners,
424 spans, null, false, null, null, 0, null, 0, 1);
425 try {
426 scanner.scan().joinUninterruptibly();
427 fail("Excpected a QueryException");
428 } catch (QueryException e) {
429 assertEquals(HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE, e.getStatus());
430 }
431 }
432
433 @Test
434 public void scanTooManyBytes() throws Exception {

Callers

nothing calls this directly

Calls 4

setupMockScannersMethod · 0.95
scanMethod · 0.95
getStatusMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected