-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update snapshots and associated ddb tests
- Loading branch information
Showing
3 changed files
with
41 additions
and
35 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 |
---|---|---|
|
@@ -311,9 +311,9 @@ describe("the GuEC2App pattern", function () { | |
}, | ||
monitoringConfiguration: { noMonitoring: true }, | ||
userData: "", | ||
}), | ||
}) | ||
).toThrowError( | ||
"Restricted apps cannot be globally accessible. Adjust CIDR ranges (0.0.0.0/0, 1.2.3.4/32) or use Public.", | ||
"Restricted apps cannot be globally accessible. Adjust CIDR ranges (0.0.0.0/0, 1.2.3.4/32) or use Public." | ||
); | ||
}); | ||
|
||
|
@@ -335,9 +335,9 @@ describe("the GuEC2App pattern", function () { | |
}, | ||
monitoringConfiguration: { noMonitoring: true }, | ||
userData: "", | ||
}), | ||
}) | ||
).toThrowError( | ||
"Internal apps should only be accessible on 10. ranges. Adjust CIDR ranges (93.1.2.3/12) or use Restricted.", | ||
"Internal apps should only be accessible on 10. ranges. Adjust CIDR ranges (93.1.2.3/12) or use Restricted." | ||
); | ||
}); | ||
|
||
|
@@ -406,22 +406,40 @@ describe("the GuEC2App pattern", function () { | |
{ | ||
Action: ["dynamodb:BatchWriteItem", "dynamodb:PutItem", "dynamodb:DeleteItem", "dynamodb:UpdateItem"], | ||
Effect: "Allow", | ||
Resource: { | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"arn:aws:dynamodb:", | ||
{ | ||
Ref: "AWS::Region", | ||
}, | ||
":", | ||
{ | ||
Ref: "AWS::AccountId", | ||
}, | ||
":table/my-dynamo-table", | ||
Resource: [ | ||
{ | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"arn:aws:dynamodb:", | ||
{ | ||
Ref: "AWS::Region", | ||
}, | ||
":", | ||
{ | ||
Ref: "AWS::AccountId", | ||
}, | ||
":table/my-dynamo-table", | ||
], | ||
], | ||
], | ||
}, | ||
}, | ||
{ | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"arn:aws:dynamodb:", | ||
{ | ||
Ref: "AWS::Region", | ||
}, | ||
":", | ||
{ | ||
Ref: "AWS::AccountId", | ||
}, | ||
":table/my-dynamo-table/index/*", | ||
], | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
|
@@ -729,7 +747,7 @@ describe("the GuEC2App pattern", function () { | |
}); | ||
}).toThrowError( | ||
"Application logging has been enabled (via the `applicationLogging` prop) but your `roleConfiguration` sets " + | ||
"`withoutLogShipping` to true. Please turn off application logging or remove `withoutLogShipping`", | ||
"`withoutLogShipping` to true. Please turn off application logging or remove `withoutLogShipping`" | ||
); | ||
}); | ||
|
||
|
@@ -824,7 +842,7 @@ describe("the GuEC2App pattern", function () { | |
domain, | ||
allowedGroups: [], | ||
}, | ||
}), | ||
}) | ||
).toThrowError("googleAuth.allowedGroups cannot be empty!"); | ||
}); | ||
|
||
|
@@ -854,7 +872,7 @@ describe("the GuEC2App pattern", function () { | |
domain, | ||
sessionTimeoutInMinutes: 61, | ||
}, | ||
}), | ||
}) | ||
).toThrowError("googleAuth.sessionTimeoutInMinutes must be <= 60!"); | ||
}); | ||
|
||
|
@@ -884,7 +902,7 @@ describe("the GuEC2App pattern", function () { | |
domain, | ||
allowedGroups: ["[email protected]", "[email protected]"], | ||
}, | ||
}), | ||
}) | ||
).toThrowError("googleAuth.allowedGroups must use the @guardian.co.uk domain."); | ||
}); | ||
}); | ||
|