Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
mukesh-ctds committed Feb 19, 2025
1 parent 1f3533d commit 925b4e5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ void testMatchingRegex() throws Exception {
redirectProxyConfig.getProperties().setProperty("urlRegexLookupProxyHandlerRegex", "pulsar:\\/\\/(\\w+):\\d+");
redirectProxyConfig.getProperties()
.setProperty("urlRegexLookupProxyHandlerReplacement", proxyService.getServiceUrl());
redirectProxyConfig.setClusterName(configClusterName);

@Cleanup
ProxyService redirectProxyService = Mockito.spy(new ProxyService(redirectProxyConfig, new AuthenticationService(
Expand Down Expand Up @@ -149,6 +150,7 @@ void testNotMatchingRegex() throws Exception {
redirectProxyConfig.setLookupHandler("org.apache.pulsar.proxy.server.URLRegexLookupProxyHandler");
redirectProxyConfig.getProperties().setProperty("urlRegexLookupProxyHandlerRegex", "invalid");
redirectProxyConfig.getProperties().setProperty("urlRegexLookupProxyHandlerReplacement", proxyService.getServiceUrl());
redirectProxyConfig.setClusterName(configClusterName);

@Cleanup
ProxyService redirectProxyService = Mockito.spy(new ProxyService(redirectProxyConfig, new AuthenticationService(
Expand Down

0 comments on commit 925b4e5

Please sign in to comment.