Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
greedy52 committed Nov 29, 2024
1 parent 698dd15 commit bda9dc2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions lib/web/ui/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func TestMakeIntegration(t *testing.T) {
Organization: "my-org",
},
)
require.NoError(t, err)

testCases := []struct {
integration types.Integration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ test('fetch integration list: fetchIntegrations()', async () => {
name: 'github-my-org',
resourceType: 'integration',
spec: {
organization: 'my-org',
roleArn: undefined,
audience: undefined,
},
details: 'GitHub Organization "my-org"',
statusCode: IntegrationStatusCode.Running,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ function makeIntegration(json: any): Integration {
issuerS3Bucket: awsoidc?.issuerS3Bucket,
issuerS3Prefix: awsoidc?.issuerS3Prefix,
audience: awsoidc?.audience,
organization: github?.organization,
},
details: github
? `GitHub Organization "${github.organization}"`
Expand Down
8 changes: 1 addition & 7 deletions web/packages/teleport/src/services/integrations/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ import { Node } from '../nodes';
export type Integration<
T extends string = 'integration',
K extends string = IntegrationKind,
SP extends Record<string, any> =
| IntegrationSpecAwsOidc
| IntegrationSpecGitHub,
SP extends Record<string, any> = IntegrationSpecAwsOidc,
SD extends Record<string, any> = null,
> = {
resourceType: T;
Expand Down Expand Up @@ -720,7 +718,3 @@ export type AwsDatabaseVpcsResponse = {
vpcs: Vpc[];
nextToken: string;
};

export type IntegrationSpecGitHub = {
organization: string;
};

0 comments on commit bda9dc2

Please sign in to comment.