Skip to content

Commit 2aa4a74

Browse files
committed
fix api tests
1 parent 94ba270 commit 2aa4a74

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

infrastructure/terraform/modules/backend-api/module_upload_letter_template_lambda.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ data "aws_iam_policy_document" "upload_letter_template_lambda_policy" {
4949
]
5050
}
5151

52+
statement {
53+
sid = "AllowDynamoGSIAccess"
54+
effect = "Allow"
55+
56+
actions = [
57+
"dynamodb:Query",
58+
]
59+
60+
resources = [
61+
"${aws_dynamodb_table.templates.arn}/index/QueryById",
62+
]
63+
}
64+
5265
statement {
5366
sid = "AllowKMSAccess"
5467
effect = "Allow"

tests/test-team/helpers/auth/cognito-auth-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const testUsers: Record<string, TestUserStaticDetails> = {
4545
*/
4646
User2: {
4747
userId: 'User2',
48-
clientKey: 'Client2',
48+
clientKey: 'Client4',
4949
},
5050
/**
5151
* User3 idle user that stays stayed in

tests/test-team/helpers/client/client-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const testClients = {
4444
Client4: {
4545
campaignId: undefined,
4646
features: {
47-
proofing: false,
47+
proofing: true,
4848
},
4949
},
5050
} satisfies TestClients;

0 commit comments

Comments
 (0)