fix: update recursive auth-method listing test (#3348)

Recently, we made the initial dev ldap auth-method active-public, so
it now shows up in listings.  This simply fixes the tests to
reflect that change.
pull/3349/head
Jim 3 years ago committed by GitHub
parent 9474b373b8
commit fabcb8eeeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,18 +32,18 @@ func TestListAnonymousRecursing(t *testing.T) {
require.NoError(err)
require.NotNil(am)
// We expect to see all three with the normal token
// We expect to see all four with the normal token
l, err := amClient.List(tc.Context(), scope.Global.String(), amapi.WithRecursive(true))
require.NoError(err)
require.NotNil(l)
require.Len(l.GetItems(), 4)
// Originally we also expect to see all three as anon user
// Originally we also expect to see all four as anon user
amClient.ApiClient().SetToken("")
l, err = amClient.List(tc.Context(), scope.Global.String(), amapi.WithRecursive(true))
require.NoError(err)
require.NotNil(l)
require.Len(l.GetItems(), 3)
require.Len(l.GetItems(), 4)
// Find the global roles and delete them
rl, err := rolesClient.List(tc.Context(), scope.Global.String())

Loading…
Cancel
Save