Skip to content

Commit

Permalink
test: update integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
ren-yamanashi committed Jan 13, 2025
1 parent 2c82f2e commit 03948d8
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 11 deletions.

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

Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"Resources": {
"PinpointApp": {
"Type": "AWS::Pinpoint::App",
"Properties": {
"Name": "MyPinpointApp"
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"PoolD3F588B8": {
"Type": "AWS::Cognito::UserPool",
"Properties": {
Expand Down Expand Up @@ -46,6 +54,14 @@
"openid",
"aws.cognito.signin.user.admin"
],
"AnalyticsConfiguration": {
"ApplicationArn": {
"Fn::GetAtt": [
"PinpointApp",
"Arn"
]
}
},
"CallbackURLs": [
"https://example.com"
],
Expand Down

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha';
import { App, Stack, RemovalPolicy } from 'aws-cdk-lib';
import { UserPool } from 'aws-cdk-lib/aws-cognito';
// import { PolicyStatement, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';
// import { CfnApp } from 'aws-cdk-lib/aws-pinpoint';
import { CfnApp } from 'aws-cdk-lib/aws-pinpoint';
import { Construct } from 'constructs';

/**
Expand All @@ -12,20 +12,20 @@ class TestStack extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);

// const pinpointApp = new CfnApp(this, 'PinpointApp', {
// name: 'MyPinpointApp',
// });
// pinpointApp.applyRemovalPolicy(RemovalPolicy.DESTROY);
const pinpointApp = new CfnApp(this, 'PinpointApp', {
name: 'MyPinpointApp',
});
pinpointApp.applyRemovalPolicy(RemovalPolicy.DESTROY);

const userPool = new UserPool(this, 'Pool', {
removalPolicy: RemovalPolicy.DESTROY,
});

userPool.addClient('Client', {
generateSecret: true,
// analytics: {
// applicationArn: pinpointApp.attrArn,
// },
analytics: {
applicationArn: pinpointApp.attrArn,
},
});
}
}
Expand Down

0 comments on commit 03948d8

Please sign in to comment.