MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / sendHelloNoSasl

Method sendHelloNoSasl

test/TestSecureRpcHelper96.java:181–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 }
180
181 @Test
182 public void sendHelloNoSasl() throws Exception {
183 config.overrideConfig(SecureRpcHelper.SECURITY_AUTHENTICATION_KEY,
184 "simple");
185 config.overrideConfig(SimpleClientAuthProvider.USERNAME_KEY,
186 "Cohen");
187 helper = new SecureRpcHelper96(client, region_client, remote_endpoint);
188 helper.sendHello(channel);
189
190 assertArrayEquals(new byte[] { 'H', 'B', 'a', 's', 0, 80 },
191 buffers.get(0).array());
192 assertArrayEquals(header095("Cohen"), buffers.get(1).array());
193 verify(region_client, times(1)).becomeReady(channel,
194 RegionClient.SERVER_VERSION_095_OR_ABOVE);
195 }
196
197 @Test
198 public void handleResponseSimple() throws Exception {

Callers

nothing calls this directly

Calls 5

header095Method · 0.95
becomeReadyMethod · 0.80
overrideConfigMethod · 0.45
sendHelloMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected