test(e2e): Add multi-scope grants test (#4446)
This commit is contained in:
1 parent
d5ae3d8dc6
commit
41d3dffa9b
12 files changed
+262
-21
No files matched your search
@@ -241,7 +241,8 @@ func populateBoundaryDatabase(t testing.TB, ctx context.Context, c *config, te T
|
||||
boundary.SetAccountToUserCli(t, ctx, newUserId, newAccountId)
|
||||
newGroupId := boundary.CreateNewGroupCli(t, ctx, "global")
|
||||
boundary.AddUserToGroup(t, ctx, newUserId, newGroupId)
|
||||
newRoleId := boundary.CreateNewRoleCli(t, ctx, newProjectId)
|
||||
newRoleId, err := boundary.CreateRoleCli(t, ctx, newProjectId)
|
||||
require.NoError(t, err)
|
||||
boundary.AddGrantToRoleCli(t, ctx, newRoleId, "ids=*;type=target;actions=authorize-session")
|
||||
boundary.AddPrincipalToRoleCli(t, ctx, newRoleId, newGroupId)
|
||||
|
||||
@@ -277,7 +278,7 @@ func populateBoundaryDatabase(t testing.TB, ctx context.Context, c *config, te T
|
||||
)
|
||||
require.NoError(t, output.Err, string(output.Stderr))
|
||||
var tokenCreateResult vault.CreateTokenResponse
|
||||
err := json.Unmarshal(output.Stdout, &tokenCreateResult)
|
||||
err = json.Unmarshal(output.Stdout, &tokenCreateResult)
|
||||
require.NoError(t, err)
|
||||
credStoreToken := tokenCreateResult.Auth.Client_Token
|
||||
t.Log("Created Vault Cred Store Token")
|
||||
|
||||
Reference in new issue
Block a user