Skip to content

Commit

Permalink
chore(aws-cognito): fix broken integration tests (#19684)
Browse files Browse the repository at this point in the history
----

### All Submissions:

* [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
corymhall authored Apr 1, 2022
1 parent 9457471 commit 89d471d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
},
"EmailVerificationMessage": "The verification code to your new account is {####}",
"EmailVerificationSubject": "Verify your new account",
"Schema": [
{
"AttributeDataType": "String",
"Name": "attribute_one"
},
{
"AttributeDataType": "String",
"Name": "attribute_two"
}
],
"SmsVerificationMessage": "The verification code to your new account is {####}",
"VerificationMessageTemplate": {
"DefaultEmailOption": "CONFIRM_WITH_CODE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { App, RemovalPolicy, Stack } from '@aws-cdk/core';
import { OAuthScope, UserPool, ClientAttributes } from '../lib';
import { OAuthScope, UserPool, ClientAttributes, StringAttribute } from '../lib';

const app = new App();
const stack = new Stack(app, 'integ-user-pool-client-explicit-props');

const userpool = new UserPool(stack, 'myuserpool', {
removalPolicy: RemovalPolicy.DESTROY,
customAttributes: {
attribute_one: new StringAttribute(),
attribute_two: new StringAttribute(),
},
});

userpool.addClient('myuserpoolclient', {
Expand Down

0 comments on commit 89d471d

Please sign in to comment.