feat(scope): Add API for Attach/Detach StoragePolicy to scope

This commit is contained in:
Louis Ruch committed 2024-01-16 13:53:44 -08:00
1 parent 08e8d96514
commit 45de26bfe9
3 files changed
+141 -1

No files matched your search

@@ -58,6 +58,8 @@ var (
action.Read,
action.Update,
action.Delete,
action.AttachStoragePolicy,
action.DetachStoragePolicy,
)
// CollectionActions contains the set of actions that can be performed on
@@ -46,7 +46,7 @@ import (
"google.golang.org/protobuf/types/known/wrapperspb"
)
var testAuthorizedActions = []string{"no-op", "read", "update", "delete"}
var testAuthorizedActions = []string{"no-op", "read", "update", "delete", "attach-storage-policy", "detach-storage-policy"}
func createDefaultScopesRepoAndKms(t *testing.T) (*iam.Scope, *iam.Scope, func() (*iam.Repository, error), *kms.Kms) {
t.Helper()