Skip to content

Commit 72ce092

Browse files
author
Benjamin Perez
committed
Updated number of available endpoints for tests
1 parent fd1e911 commit 72ce092

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

pkg/acl/endpoints_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
3737
args: args{
3838
[]string{"admin:ServerInfo"},
3939
},
40-
want: 1,
40+
want: 2,
4141
},
4242
{
4343
name: "policies endpoint",
@@ -50,7 +50,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
5050
"admin:ListUserPolicies",
5151
},
5252
},
53-
want: 1,
53+
want: 2,
5454
},
5555
{
5656
name: "all admin endpoints",
@@ -59,7 +59,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
5959
"admin:*",
6060
},
6161
},
62-
want: 9,
62+
want: 10,
6363
},
6464
{
6565
name: "all s3 endpoints",
@@ -68,7 +68,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
6868
"s3:*",
6969
},
7070
},
71-
want: 2,
71+
want: 3,
7272
},
7373
{
7474
name: "all admin and s3 endpoints",
@@ -78,7 +78,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
7878
"s3:*",
7979
},
8080
},
81-
want: 11,
81+
want: 12,
8282
},
8383
{
8484
name: "no endpoints",

0 commit comments

Comments
 (0)