Multiple grant scope IDs (#4251)

Co-authored-by: Timothy Messier <tim.messier@gmail.com>
Co-authored-by: Todd <github@quaddi.com>
This commit is contained in:
authored and GitHub committed 2024-01-23 14:33:09 -05:00
1 parent 659df2797c
commit f5dd457b34
70 files changed
+5460 -1009

No files matched your search

@@ -9,6 +9,7 @@ import (
"testing"
"time"
"github.com/hashicorp/boundary/globals"
"github.com/hashicorp/boundary/sdk/pbs/controller/api"
pb "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/roles"
"github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/scopes"
@@ -53,6 +54,10 @@ func TestRoles(t *testing.T) {
UpdatedTime: pbNow,
Version: 0,
GrantScopeId: &wrapperspb.StringValue{Value: "grant-scope-id"},
GrantScopeIds: []string{
globals.GrantScopeThis,
"grant-scope-id",
},
PrincipalIds: []string{
"principal-id",
},
@@ -99,6 +104,10 @@ func TestRoles(t *testing.T) {
UpdatedTime: pbNow,
Version: 0,
GrantScopeId: &wrapperspb.StringValue{Value: "grant-scope-id"},
GrantScopeIds: []string{
globals.GrantScopeThis,
"grant-scope-id",
},
PrincipalIds: []string{
"principal-id",
},