File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1818package admin
1919
2020import (
21+ "os"
2122 "testing"
2223 "time"
2324
@@ -791,7 +792,12 @@ func TestNamespaces_Retention(t *testing.T) {
791792}
792793
793794func TestNamespaces_BookieAffinityGroup (t * testing.T ) {
794- config := & config.Config {}
795+ readFile , err := os .ReadFile ("../../../integration-tests/tokens/admin-token" )
796+ require .NoError (t , err )
797+
798+ config := & config.Config {
799+ Token : string (readFile ),
800+ }
795801 admin , err := New (config )
796802 require .NoError (t , err )
797803 require .NotNil (t , admin )
@@ -841,9 +847,9 @@ func TestNamespaces_Persistence(t *testing.T) {
841847
842848 // Set new persistence policy
843849 newPersistence := utils.PersistencePolicies {
844- BookkeeperEnsemble : 3 ,
845- BookkeeperWriteQuorum : 2 ,
846- BookkeeperAckQuorum : 2 ,
850+ BookkeeperEnsemble : 1 ,
851+ BookkeeperWriteQuorum : 1 ,
852+ BookkeeperAckQuorum : 1 ,
847853 ManagedLedgerMaxMarkDeleteRate : 10.0 ,
848854 }
849855 err = admin .Namespaces ().SetPersistence (namespaceName , newPersistence )
Original file line number Diff line number Diff line change @@ -1363,9 +1363,9 @@ func TestTopics_Persistence(t *testing.T) {
13631363
13641364 // Set new persistence policy
13651365 newPersistence := utils.PersistenceData {
1366- BookkeeperEnsemble : 3 ,
1367- BookkeeperWriteQuorum : 2 ,
1368- BookkeeperAckQuorum : 2 ,
1366+ BookkeeperEnsemble : 1 ,
1367+ BookkeeperWriteQuorum : 1 ,
1368+ BookkeeperAckQuorum : 1 ,
13691369 ManagedLedgerMaxMarkDeleteRate : 10.0 ,
13701370 }
13711371 err = admin .Topics ().SetPersistence (* topicName , newPersistence )
You can’t perform that action at this time.
0 commit comments