Skip to content

Commit 3bb3175

Browse files
authored
Added path to bucket details in acls list (#131)
1 parent 989e6f3 commit 3bb3175

File tree

5 files changed

+98
-92
lines changed

5 files changed

+98
-92
lines changed

pkg/acl/endpoints.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var (
3131
watch = "/watch"
3232
notifications = "/notification-endpoints"
3333
buckets = "/buckets"
34+
bucketDetails = "/buckets/:bucketName"
3435
serviceAccounts = "/service-accounts"
3536
)
3637

@@ -199,6 +200,7 @@ var endpointRules = map[string]ConfigurationActionSet{
199200
watch: watchActionSet,
200201
notifications: notificationsActionSet,
201202
buckets: bucketsActionSet,
203+
bucketDetails: bucketsActionSet,
202204
serviceAccounts: serviceAccountsActionSet,
203205
}
204206

pkg/acl/endpoints_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
6868
"s3:*",
6969
},
7070
},
71-
want: 3,
71+
want: 4,
7272
},
7373
{
7474
name: "all admin and s3 endpoints",
@@ -78,7 +78,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
7878
"s3:*",
7979
},
8080
},
81-
want: 12,
81+
want: 13,
8282
},
8383
{
8484
name: "no endpoints",

0 commit comments

Comments
 (0)