()
| 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 { |
nothing calls this directly
no test coverage detected