You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/09/30 01:57:21 UTC

[pulsar] branch branch-2.9 updated: [branch-2.9] Fix cherry-pick issue (#17894)

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.9 by this push:
     new b07d31bf12f [branch-2.9] Fix cherry-pick issue (#17894)
b07d31bf12f is described below

commit b07d31bf12ffa3dfb8d28ca064c06922d174c3a8
Author: Penghui Li <pe...@apache.org>
AuthorDate: Fri Sep 30 09:57:15 2022 +0800

    [branch-2.9] Fix cherry-pick issue (#17894)
    
    * Verify branch-2.9 CI
    
    * [branch-2.9] Fix cherry-pick issue
---
 .../java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java b/pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java
index 9ccb067adbf..907865d76c5 100644
--- a/pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java
+++ b/pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java
@@ -78,7 +78,7 @@ public class ProxyRefreshAuthTest extends ProducerConsumerBase {
         superUserRoles.add("superUser");
         conf.setSuperUserRoles(superUserRoles);
 
-        conf.setAuthenticationProviders(Set.of(AuthenticationProviderToken.class.getName()));
+        conf.setAuthenticationProviders(Collections.singleton(AuthenticationProviderToken.class.getName()));
         Properties properties = new Properties();
         properties.setProperty("tokenSecretKey", AuthTokenUtils.encodeKeyBase64(SECRET_KEY));
         conf.setProperties(properties);
@@ -118,7 +118,7 @@ public class ProxyRefreshAuthTest extends ProducerConsumerBase {
         proxyConfig.setBrokerClientAuthenticationPlugin(AuthenticationToken.class.getName());
         proxyConfig.setBrokerClientAuthenticationParameters(
                 AuthTokenUtils.createToken(SECRET_KEY, "Proxy", Optional.empty()));
-        proxyConfig.setAuthenticationProviders(Set.of(AuthenticationProviderToken.class.getName()));
+        proxyConfig.setAuthenticationProviders(Collections.singleton(AuthenticationProviderToken.class.getName()));
         Properties properties = new Properties();
         properties.setProperty("tokenSecretKey", AuthTokenUtils.encodeKeyBase64(SECRET_KEY));
         proxyConfig.setProperties(properties);