Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Francis <colifran@amazon.com>
  • Loading branch information
colifran committed May 2, 2024
1 parent 5056e40 commit b02ce68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/aws-cdk-lib/aws-kinesis/test/stream.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Match, Template } from '../../assertions';
import * as iam from '../../aws-iam';
import * as kms from '../../aws-kms';
import { App, Duration, Stack, CfnParameter, RemovalPolicy } from '../../core';
import { App, Duration, Stack, CfnParameter, RemovalPolicy, CfnDeletionPolicy } from '../../core';
import { Stream, StreamEncryption, StreamMode } from '../lib';

describe('Kinesis data streams', () => {
Expand Down Expand Up @@ -1270,8 +1270,8 @@ describe('Kinesis data streams', () => {
new Stream(stack, 'Stream');

// THEN
Template.fromStack(stack).hasResourceProperties('AWS::Kinesis::Stream', {
DeletionPolicy: RemovalPolicy.RETAIN,
Template.fromStack(stack).hasResource('AWS::Kinesis::Stream', {
DeletionPolicy: CfnDeletionPolicy.RETAIN,
});
});

Expand All @@ -1285,8 +1285,8 @@ describe('Kinesis data streams', () => {
});

// THEN
Template.fromStack(stack).hasResourceProperties('AWS::Kinesis::Stream', {
DeletionPolicy: RemovalPolicy.DESTROY,
Template.fromStack(stack).hasResource('AWS::Kinesis::Stream', {
DeletionPolicy: CfnDeletionPolicy.DELETE,
});
});
});

0 comments on commit b02ce68

Please sign in to comment.