Skip to content

Commit

Permalink
fix: update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WarFox committed Jan 19, 2024
1 parent 4f50cf2 commit d91713a
Showing 1 changed file with 21 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,40 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha';
import * as iam from 'aws-cdk-lib/aws-iam';

const app = new App();
const stack = new Stack(app, 'oidc-provider2-integ-test');

const noClients = new iam.OpenIdConnectProvider2(
stack,
'NoClientsNoThumbprint',
{
url: 'https://oidc.eks.us-east-1.amazonaws.com/id/test2',
},
);

const clients = new iam.OpenIdConnectProvider2(stack, 'Clients', {
url: 'https://oidc.eks.us-east-1.amazonaws.com/id/test3',
clientIds: ['foo', 'bar'],
});
const stack = new Stack(app, 'OidcProviderIntegStack');

const thumbprints = new iam.OpenIdConnectProvider2(stack, 'Thumbprints', {
url: 'https://oidc.eks.us-east-1.amazonaws.com/id/test4',
const provider = new iam.OpenIdConnectProvider2(stack, 'Provider', {
oidcProviderName: 'MyProvider',
url: 'https://oidc.eks.us-east-1.amazonaws.com/id/test1',
clientIds: ['foo', 'bar'],
thumbprints: [
'aa00aa1122aa00aa1122aa00aa1122aa00aa1122',
'aa00aa1122aa00aa1122aa00aa1122aa00aa1111',
],
});

new CfnOutput(stack, 'NoClientsThumbprints', {
value: `${noClients.openIdConnectProviderthumbprints}`,
const minimal = new iam.OpenIdConnectProvider2(stack, 'Minimal', {
url: 'https://oidc.eks.us-east-1.amazonaws.com/id/test2',
thumbprints: ['aa00aa1122aa00aa1122aa00aa1122aa00aa1122'],
});

new CfnOutput(stack, 'Arn', {
value: `${provider.openIdConnectProviderArn}`,
});

new CfnOutput(stack, 'Issuer', {
value: `${provider.openIdConnectProviderIssuer}`,
});

new CfnOutput(stack, 'ClientsThumbprints', {
value: `${clients.openIdConnectProviderthumbprints}`,
new CfnOutput(stack, 'MinimalArn', {
value: `${minimal.openIdConnectProviderArn}`,
});

new CfnOutput(stack, 'ThumbprintsThumbprints', {
value: `${thumbprints.openIdConnectProviderthumbprints}`,
new CfnOutput(stack, 'MinimalIssuer', {
value: `${minimal.openIdConnectProviderIssuer}`,
});

new IntegTest(app, 'iodc-provider2-test', {
new IntegTest(app, 'OidcProviderInteg', {
testCases: [stack],
diffAssets: true,
});

0 comments on commit d91713a

Please sign in to comment.