|
|
|
|
@ -94,7 +94,7 @@ func TestCliSessionCancelUser(t *testing.T) {
|
|
|
|
|
// Create a role for user
|
|
|
|
|
boundary.AuthenticateAdminCli(t, ctx)
|
|
|
|
|
newRoleId := boundary.CreateNewRoleCli(t, ctx, newProjectId)
|
|
|
|
|
boundary.AddGrantToRoleCli(t, ctx, newRoleId, "id=*;type=target;actions=authorize-session")
|
|
|
|
|
boundary.AddGrantToRoleCli(t, ctx, newRoleId, "ids=*;type=target;actions=authorize-session")
|
|
|
|
|
boundary.AddPrincipalToRoleCli(t, ctx, newRoleId, newUserId)
|
|
|
|
|
|
|
|
|
|
// Connect to target to create a session
|
|
|
|
|
@ -193,7 +193,7 @@ func TestApiCreateUser(t *testing.T) {
|
|
|
|
|
newRoleId := newRoleResult.Item.Id
|
|
|
|
|
t.Logf("Created Role: %s", newRoleId)
|
|
|
|
|
|
|
|
|
|
_, err = rClient.AddGrants(ctx, newRoleId, 0, []string{"id=*;type=target;actions=authorize-session"},
|
|
|
|
|
_, err = rClient.AddGrants(ctx, newRoleId, 0, []string{"ids=*;type=target;actions=authorize-session"},
|
|
|
|
|
roles.WithAutomaticVersioning(true),
|
|
|
|
|
)
|
|
|
|
|
require.NoError(t, err)
|
|
|
|
|
|