Skip to content

Commit c48af21

Browse files
author
Quinones
committed
Update integration tests to resolve CFN Nag warnings
1 parent 2bd1647 commit c48af21

6 files changed

+8
-5
lines changed

Diff for: source/patterns/@aws-solutions-constructs/aws-iot-sqs/test/integ.existing-queue.expected.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"existingqueueobjF8AF0ED1": {
55
"Type": "AWS::SQS::Queue",
66
"Properties": {
7+
"KmsMasterKeyId": "alias/aws/sqs",
78
"QueueName": "existing-queue-obj"
89
},
910
"UpdateReplacePolicy": "Delete",

Diff for: source/patterns/@aws-solutions-constructs/aws-iot-sqs/test/integ.existing-queue.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { IotToSqs, IotToSqsProps } from "../lib";
1717
import * as iam from '@aws-cdk/aws-iam';
1818
import * as sqs from '@aws-cdk/aws-sqs';
1919
import { generateIntegStackName } from '@aws-solutions-constructs/core';
20+
import { QueueEncryption } from "@aws-cdk/aws-sqs";
2021

2122
// Setup
2223
const app = new App();
@@ -25,7 +26,8 @@ stack.templateOptions.description = 'Integration Test for aws-iot-sqs';
2526

2627
// Definitions
2728
const queue = new sqs.Queue(stack, 'existing-queue-obj', {
28-
queueName: 'existing-queue-obj'
29+
queueName: 'existing-queue-obj',
30+
encryption: QueueEncryption.KMS_MANAGED
2931
});
3032

3133
const props: IotToSqsProps = {

Diff for: source/patterns/@aws-solutions-constructs/aws-iot-sqs/test/integ.use-kms-key-props.expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
],
187187
"Version": "2012-10-17"
188188
},
189-
"EnableKeyRotation": false
189+
"EnableKeyRotation": true
190190
},
191191
"UpdateReplacePolicy": "Retain",
192192
"DeletionPolicy": "Retain"

Diff for: source/patterns/@aws-solutions-constructs/aws-iot-sqs/test/integ.use-kms-key-props.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ stack.templateOptions.description = 'Integration Test for aws-iot-sqs';
2525
// Definitions
2626
const props: IotToSqsProps = {
2727
encryptionKeyProps: {
28-
enableKeyRotation: false,
28+
enableKeyRotation: true,
2929
alias: 'new-key-alias-from-props'
3030
},
3131
iotTopicRuleProps: {

Diff for: source/patterns/@aws-solutions-constructs/aws-iot-sqs/test/integ.with-existing-key.expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
],
110110
"Version": "2012-10-17"
111111
},
112-
"EnableKeyRotation": false
112+
"EnableKeyRotation": true
113113
},
114114
"UpdateReplacePolicy": "Retain",
115115
"DeletionPolicy": "Retain"

Diff for: source/patterns/@aws-solutions-constructs/aws-iot-sqs/test/integ.with-existing-key.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ stack.templateOptions.description = 'Integration Test for aws-iot-sqs';
2525

2626
// Definitions
2727
const kmsKey = new kms.Key(stack, 'existing-key', {
28-
enableKeyRotation: false,
28+
enableKeyRotation: true,
2929
alias: 'existing-key-alias'
3030
});
3131

0 commit comments

Comments
 (0)