Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
lxea committed Apr 4, 2023
1 parent e199595 commit 0dbba8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/services/role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5930,15 +5930,15 @@ func TestHostUsers_HostSudoers(t *testing.T) {
server types.Server
}{
{
test: "test exact match, one sudoer entry, one role",
test: "test exact match, one sudoer entry, one role",
sudoers: []string{"%sudo ALL=(ALL) ALL"},
roles: NewRoleSet(&types.RoleV6{
Spec: types.RoleSpecV6{
Options: types.RoleOptions{
CreateHostUser: types.NewBoolOption(true),
},
Allow: types.RoleConditions{
NodeLabels: types.Labels{"success": []string{"abc"}},
NodeLabels: types.Labels{"success": []string{"abc"}},
HostSudoers: []string{"%sudo ALL=(ALL) ALL"},
},
},
Expand Down Expand Up @@ -6008,7 +6008,7 @@ func TestHostUsers_HostSudoers(t *testing.T) {
CreateHostUser: types.NewBoolOption(true),
},
Allow: types.RoleConditions{
NodeLabels: types.Labels{"success": []string{"abc"}},
NodeLabels: types.Labels{"success": []string{"abc"}},
HostSudoers: []string{"%sudo ALL=(ALL) ALL"},
},
},
Expand All @@ -6032,7 +6032,7 @@ func TestHostUsers_HostSudoers(t *testing.T) {
},
},
{
test: "line deny",
test: "line deny",
sudoers: []string{"%sudo ALL=(ALL) ALL"},
roles: NewRoleSet(&types.RoleV6{
Spec: types.RoleSpecV6{
Expand Down

0 comments on commit 0dbba8c

Please sign in to comment.