Skip to content

Commit

Permalink
Remove org.apache.pulsar.proxy.authentication.AuthenticationServiceTe…
Browse files Browse the repository at this point in the history
…st (apache#1220)

org.apache.pulsar.broker.auth.AuthenticationServiceTest tests the same thing.
  • Loading branch information
maskit authored and merlimat committed Feb 11, 2018
1 parent 71b3b18 commit 3bfc505
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class AuthenticationServiceTest {

private static final String s_authentication_success = "authenticated";

@Test
@Test(timeOut = 10000)
public void testAuthentication() throws Exception {
ServiceConfiguration config = new ServiceConfiguration();
Set<String> providersClassNames = Sets.newHashSet(MockAuthenticationProvider.class.getName());
Expand All @@ -50,9 +50,10 @@ public void testAuthentication() throws Exception {
AuthenticationService service = new AuthenticationService(config);
String result = service.authenticate(null, "auth");
assertEquals(result, s_authentication_success);
service.close();
}

@Test
@Test(timeOut = 10000)
public void testAuthenticationHttp() throws Exception {
ServiceConfiguration config = new ServiceConfiguration();
Set<String> providersClassNames = Sets.newHashSet(MockAuthenticationProvider.class.getName());
Expand All @@ -65,6 +66,7 @@ public void testAuthenticationHttp() throws Exception {
when(request.getHeader(anyString())).thenReturn("data");
String result = service.authenticateHttpRequest(request);
assertEquals(result, s_authentication_success);
service.close();
}

public static class MockAuthenticationProvider implements AuthenticationProvider {
Expand Down

This file was deleted.

0 comments on commit 3bfc505

Please sign in to comment.