Skip to content

Commit

Permalink
chore: updated TestAuthConfigReset, verifies that logoutAllSupported …
Browse files Browse the repository at this point in the history
…is now retained.
  • Loading branch information
andreas-kupries committed Oct 10, 2024
1 parent 38a7138 commit 8e16a26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controllers/management/auth/auth_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ func TestCleanupRuns(t *testing.T) {
func TestAuthConfigReset(t *testing.T) {
t.Parallel()

allFields := []string{"accessMode", "allowedPrincipalIds", "apiVersion", "kind", "metadata", "type", "status"}
postResetFields := []string{"apiVersion", "kind", "metadata", "type", "status"}
allFields := []string{"accessMode", "allowedPrincipalIds", "apiVersion", "kind", "metadata", "type", "status", "logoutAllSupported"}
postResetFields := []string{"apiVersion", "kind", "metadata", "type", "status", "logoutAllSupported"}

tests := []struct {
annotationValue string
Expand Down Expand Up @@ -153,6 +153,7 @@ func TestAuthConfigReset(t *testing.T) {
Enabled: false,
AccessMode: "unrestricted",
AllowedPrincipalIDs: []string{"user1", "user2"},
LogoutAllSupported: true,
}

mockUsers := newMockUserLister()
Expand Down

0 comments on commit 8e16a26

Please sign in to comment.