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:
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",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user