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

Method isHttpRpcPluginPathValid

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

Source from the content-addressed store, hash-verified

122 }
123
124 @Test
125 public void isHttpRpcPluginPathValid() {
126 mgr_under_test = RpcManager.instance(mock_tsdb_no_plugins);
127 assertTrue(mgr_under_test.isHttpRpcPluginPath("/plugin/my/http/plugin"));
128 assertTrue(mgr_under_test.isHttpRpcPluginPath("plugin/my/http/plugin"));
129 assertTrue(mgr_under_test.isHttpRpcPluginPath("/plugin/my?hey=hi&howdy=ho"));
130 assertTrue(mgr_under_test.isHttpRpcPluginPath("plugin/my?hey=hi&howdy=ho"));
131 assertTrue(mgr_under_test.isHttpRpcPluginPath("plugin/my/?hey=hi&howdy=ho"));
132 }
133
134 @Test
135 public void isHttpRpcPluginPathInvalid() {

Callers

nothing calls this directly

Calls 2

instanceMethod · 0.95
isHttpRpcPluginPathMethod · 0.80

Tested by

no test coverage detected