Skip to content

Instantly share code, notes, and snippets.

@fsanal
Created December 12, 2022 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fsanal/07a0bc570a1f5ec5c8a6257993b2e57e to your computer and use it in GitHub Desktop.
Save fsanal/07a0bc570a1f5ec5c8a6257993b2e57e to your computer and use it in GitHub Desktop.
@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