-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into otaviom/appsync-optional-caching-config
- Loading branch information
Showing
15 changed files
with
574 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1701,48 +1701,8 @@ describe('User Pool', () => { | |
}, | ||
}); | ||
|
||
}); | ||
test('email withSES invalid region throws error', () => { | ||
// GIVEN | ||
const stack = new Stack(undefined, undefined, { | ||
env: { | ||
region: 'us-east-2', | ||
account: '11111111111', | ||
}, | ||
}); | ||
|
||
// WHEN | ||
expect(() => new UserPool(stack, 'Pool', { | ||
email: UserPoolEmail.withSES({ | ||
fromEmail: '[email protected]', | ||
fromName: 'My Custom Email', | ||
replyTo: '[email protected]', | ||
configurationSetName: 'default', | ||
}), | ||
})).toThrow(/Please provide a valid value/); | ||
|
||
}); | ||
|
||
test('email withSES invalid sesRegion throws error', () => { | ||
// GIVEN | ||
const stack = new Stack(undefined, undefined, { | ||
env: { | ||
account: '11111111111', | ||
}, | ||
}); | ||
|
||
// WHEN | ||
expect(() => new UserPool(stack, 'Pool', { | ||
email: UserPoolEmail.withSES({ | ||
sesRegion: 'us-east-2', | ||
fromEmail: '[email protected]', | ||
fromName: 'My Custom Email', | ||
replyTo: '[email protected]', | ||
configurationSetName: 'default', | ||
}), | ||
})).toThrow(/sesRegion must be one of/); | ||
|
||
}); | ||
}); | ||
|
||
test('device tracking is configured correctly', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.