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

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


The following commit(s) were added to refs/heads/branch-2.11 by this push:
     new 1146a84bb27 Fix C++ tests failure
1146a84bb27 is described below

commit 1146a84bb27f3ce34453c55bd017eb004d3af72e
Author: Yunze Xu <[email protected]>
AuthorDate: Wed Dec 14 23:08:23 2022 +0800

    Fix C++ tests failure
---
 pulsar-client-cpp/pulsar-test-service-start.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pulsar-client-cpp/pulsar-test-service-start.sh 
b/pulsar-client-cpp/pulsar-test-service-start.sh
index 63915cfc311..4f8e1f5ddcc 100755
--- a/pulsar-client-cpp/pulsar-test-service-start.sh
+++ b/pulsar-client-cpp/pulsar-test-service-start.sh
@@ -79,9 +79,10 @@ $PULSAR_DIR/bin/pulsar-admin clusters list | grep -q 
'^standalone$' ||
                 --broker-url-secure pulsar+ssl://localhost:6651/
 
 # Update "public" tenant
-$PULSAR_DIR/bin/pulsar-admin tenants update public -r "anonymous" -c 
"standalone"
+$PULSAR_DIR/bin/pulsar-admin tenants create public -r "anonymous" -c 
"standalone"
 
-# Update "public/default" with no auth required
+# Create "public/default" with no auth required
+$PULSAR_DIR/bin/pulsar-admin namespaces create public/default
 $PULSAR_DIR/bin/pulsar-admin namespaces grant-permission public/default \
                         --actions produce,consume \
                         --role "anonymous"

Reply via email to