Skip to content

Commit

Permalink
Test fixups and review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsc committed Dec 6, 2024
1 parent 54ed676 commit 88f231a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
14 changes: 10 additions & 4 deletions api/client/proto/authservice.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions api/proto/teleport/legacy/client/proto/authservice.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1943,16 +1943,26 @@ message CreateRegisterChallengeRequest {
// IdentityCenterAccount holds information about an Identity Center account
// within an IdentityCenterAccountAssignment
message IdentityCenterAccount {
// ID is the AWS-assigned account ID
string ID = 1;

// ARN is the full Amazon Resource Name for the AWS account
string ARN = 2;

// AccountName is the human-readable name of the account
string AccountName = 3;

// Description is a free text description of the account
string Description = 4;
}

// IdentityCenterPermissionSet holds information about an Identity Center
// permission set within an IdentityCenterAccountAssignment
message IdentityCenterPermissionSet {
// ARN is the full Amazon Resource Name for the Permission Set
string ARN = 1;

// Name is the human readable name for the Permission Set
string Name = 2;
}

Expand Down
14 changes: 8 additions & 6 deletions lib/services/unified_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ type client struct {
services.SAMLIdPServiceProviders
services.GitServers
services.IdentityCenterAccounts
services.IdentityCenterAccountAssignmentGetter
types.Events
}

Expand All @@ -71,12 +72,13 @@ func newClient(t *testing.T) *client {
require.NoError(t, err)

return &client{
Presence: local.NewPresenceService(bk),
WindowsDesktops: local.NewWindowsDesktopService(bk),
SAMLIdPServiceProviders: samlService,
Events: local.NewEventsService(bk),
GitServers: gitService,
IdentityCenterAccounts: icService,
Presence: local.NewPresenceService(bk),
WindowsDesktops: local.NewWindowsDesktopService(bk),
SAMLIdPServiceProviders: samlService,
Events: local.NewEventsService(bk),
GitServers: gitService,
IdentityCenterAccounts: icService,
IdentityCenterAccountAssignmentGetter: icService,
}
}

Expand Down

0 comments on commit 88f231a

Please sign in to comment.