Created
December 12, 2022 21:29
-
-
Save fsanal/07a0bc570a1f5ec5c8a6257993b2e57e to your computer and use it in GitHub Desktop.
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
@Test | |
public void testResourceCountCorrect() { | |
Template template = getStackTemplate(); | |
template.resourceCountIs("AWS::Kinesis::Stream", 1); | |
template.resourceCountIs("AWS::KinesisFirehose::DeliveryStream", 2); | |
} | |
@Test | |
public void testStreamsConfigured() { | |
Template template = getStackTemplate(); | |
template.hasResourceProperties("AWS::Kinesis::Stream", Map.of( | |
"Name", "analytics-android-kinesis-data-stream", | |
"RetentionPeriodHours", 168, | |
"StreamEncryption", Map.of( | |
"EncryptionType", "KMS", | |
"KeyId", Collections.singletonMap("Fn::GetAtt", new String[]{ | |
"testkey2D7A4880", | |
"Arn" | |
})), | |
"StreamModeDetails", Collections.singletonMap("StreamMode", "ON_DEMAND") | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment