File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ func TestAPI_ACLPolicy_List(t *testing.T) {
190190
191191 policies , qm , err := acl .PolicyList (nil )
192192 require .NoError (t , err )
193- require .Len (t , policies , 4 )
193+ require .Len (t , policies , 5 )
194194 require .NotEqual (t , 0 , qm .LastIndex )
195195 require .True (t , qm .KnownLeader )
196196
@@ -233,6 +233,11 @@ func TestAPI_ACLPolicy_List(t *testing.T) {
233233 policy4 , ok := policyMap ["00000000-0000-0000-0000-000000000001" ]
234234 require .True (t , ok )
235235 require .NotNil (t , policy4 )
236+
237+ // make sure the 5th policy is the global read-only
238+ policy5 , ok := policyMap ["00000000-0000-0000-0000-000000000002" ]
239+ require .True (t , ok )
240+ require .NotNil (t , policy5 )
236241}
237242
238243func prepTokenPolicies (t * testing.T , acl * ACL ) (policies []* ACLPolicy ) {
You can’t perform that action at this time.
0 commit comments