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

Method isHttpRpcPluginPathInvalid

test/tsd/TestRpcManager.java:134–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 }
133
134 @Test
135 public void isHttpRpcPluginPathInvalid() {
136 mgr_under_test = RpcManager.instance(mock_tsdb_no_plugins);
137 assertFalse(mgr_under_test.isHttpRpcPluginPath("/plugin/"));
138 assertFalse(mgr_under_test.isHttpRpcPluginPath("plugin/"));
139 assertFalse(mgr_under_test.isHttpRpcPluginPath("plugin"));
140 assertFalse(mgr_under_test.isHttpRpcPluginPath("/plugin"));
141 assertFalse(mgr_under_test.isHttpRpcPluginPath("/plugin?howdy=ho"));
142 assertFalse(mgr_under_test.isHttpRpcPluginPath("/plugin/?howdy=ho"));
143 assertFalse(mgr_under_test.isHttpRpcPluginPath("api/query"));
144 }
145
146 @Test
147 public void validateHttpRpcPluginPathValid() {

Callers

nothing calls this directly

Calls 2

instanceMethod · 0.95
isHttpRpcPluginPathMethod · 0.80

Tested by

no test coverage detected