Skip to content

Commit 5bd23e6

Browse files
committed
Merge branch 'main' into feature/CCM-12666_playwright-accessibility
2 parents faa6227 + 3467ab2 commit 5bd23e6

File tree

121 files changed

+103
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+103
-105
lines changed

infrastructure/terraform/components/app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
| Name | Description | Type | Default | Required |
1414
|------|-------------|------|---------|:--------:|
1515
| <a name="input_AMPLIFY_BASIC_AUTH_SECRET"></a> [AMPLIFY\_BASIC\_AUTH\_SECRET](#input\_AMPLIFY\_BASIC\_AUTH\_SECRET) | Secret key/password to use for Amplify Basic Auth - This is intended to be read from CI variables and not committed to any codebase | `string` | `"unset"` | no |
16-
| <a name="input_CSRF_SECRET"></a> [CSRF\_SECRET](#input\_CSRF\_SECRET) | Secure cryptographic key to be used for generating CSRF tokens - This is intended to be read from CI variables and not committed to any codebase | `string` | n/a | yes |
16+
| <a name="input_CSRF_SECRET"></a> [CSRF\_SECRET](#input\_CSRF\_SECRET) | Secure cryptographic key to be used for generating CSRF tokens - This is intended to be read from CI variables and not committed to any codebase | `string` | `"value"` | no |
1717
| <a name="input_aws_account_id"></a> [aws\_account\_id](#input\_aws\_account\_id) | The AWS Account ID (numeric) | `string` | n/a | yes |
1818
| <a name="input_aws_principal_org_id"></a> [aws\_principal\_org\_id](#input\_aws\_principal\_org\_id) | The AWS Org ID (numeric) | `string` | n/a | yes |
1919
| <a name="input_backup_report_recipient"></a> [backup\_report\_recipient](#input\_backup\_report\_recipient) | Primary recipient of the Backup reports | `string` | `""` | no |
@@ -54,7 +54,7 @@
5454
| <a name="module_eventpub"></a> [eventpub](#module\_eventpub) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/eventpub | v2.0.19 |
5555
| <a name="module_kms"></a> [kms](#module\_kms) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.20/terraform-kms.zip | n/a |
5656
| <a name="module_kms_us_east_1"></a> [kms\_us\_east\_1](#module\_kms\_us\_east\_1) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.20/terraform-kms.zip | n/a |
57-
| <a name="module_nhse_backup_vault"></a> [nhse\_backup\_vault](#module\_nhse\_backup\_vault) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.23/terraform-aws-backup-source.zip | n/a |
57+
| <a name="module_nhse_backup_vault"></a> [nhse\_backup\_vault](#module\_nhse\_backup\_vault) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.25/terraform-aws-backup-source.zip | n/a |
5858
| <a name="module_s3bucket_cf_logs"></a> [s3bucket\_cf\_logs](#module\_s3bucket\_cf\_logs) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.20/terraform-s3bucket.zip | n/a |
5959
| <a name="module_ses"></a> [ses](#module\_ses) | ../../modules/ses | n/a |
6060
## Outputs

infrastructure/terraform/components/app/module_nhse_backup_vault.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "nhse_backup_vault" {
2-
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.23/terraform-aws-backup-source.zip"
2+
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.25/terraform-aws-backup-source.zip"
33
count = var.destination_vault_arn != null ? 1 : 0
44

55
component = var.component

infrastructure/terraform/components/app/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ variable "CSRF_SECRET" {
110110
# Github only does uppercase env vars
111111
type = string
112112
description = "Secure cryptographic key to be used for generating CSRF tokens - This is intended to be read from CI variables and not committed to any codebase"
113+
default = "value"
113114
}
114115

115116
variable "branch_name" {

lambdas/backend-api/build.sh

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ npx esbuild \
1414
--entry-names=[name]/[name] \
1515
--outdir=dist \
1616
--external:pdfjs-dist \
17-
src/templates/copy-scanned-object-to-internal.ts \
18-
src/templates/count-routing-configs.ts \
19-
src/templates/create-routing-config.ts \
20-
src/templates/create.ts \
21-
src/templates/delete-failed-scanned-object.ts \
22-
src/templates/delete.ts \
23-
src/templates/delete-routing-config.ts \
24-
src/templates/get-client.ts \
25-
src/templates/get-routing-config.ts \
26-
src/templates/get.ts \
27-
src/templates/list-routing-configs.ts \
28-
src/templates/list.ts \
29-
src/templates/process-proof.ts \
30-
src/templates/proof.ts \
31-
src/templates/set-letter-upload-virus-scan-status.ts \
32-
src/templates/submit-routing-config.ts \
33-
src/templates/submit.ts \
34-
src/templates/update-routing-config.ts \
35-
src/templates/update.ts \
36-
src/templates/upload-letter.ts \
37-
src/templates/validate-letter-template-files.ts
17+
src/copy-scanned-object-to-internal.ts \
18+
src/count-routing-configs.ts \
19+
src/create-routing-config.ts \
20+
src/create.ts \
21+
src/delete-failed-scanned-object.ts \
22+
src/delete.ts \
23+
src/delete-routing-config.ts \
24+
src/get-client.ts \
25+
src/get-routing-config.ts \
26+
src/get.ts \
27+
src/list-routing-configs.ts \
28+
src/list.ts \
29+
src/process-proof.ts \
30+
src/proof.ts \
31+
src/set-letter-upload-virus-scan-status.ts \
32+
src/submit-routing-config.ts \
33+
src/submit.ts \
34+
src/update-routing-config.ts \
35+
src/update.ts \
36+
src/upload-letter.ts \
37+
src/validate-letter-template-files.ts
3838

3939
cp -r ../../utils/utils/src/email-templates ./dist/submit

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/copy-scanned-object-to-internal.test.ts.snap renamed to lambdas/backend-api/src/__tests__/api/__snapshots__/copy-scanned-object-to-internal.test.ts.snap

File renamed without changes.

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/delete-failed-scanned-object.test.ts.snap renamed to lambdas/backend-api/src/__tests__/api/__snapshots__/delete-failed-scanned-object.test.ts.snap

File renamed without changes.

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/set-letter-upload-virus-scan-status.test.ts.snap renamed to lambdas/backend-api/src/__tests__/api/__snapshots__/set-letter-upload-virus-scan-status.test.ts.snap

File renamed without changes.

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/validate-letter-template-files.test.ts.snap renamed to lambdas/backend-api/src/__tests__/api/__snapshots__/validate-letter-template-files.test.ts.snap

File renamed without changes.

lambdas/backend-api/src/__tests__/templates/api/copy-scanned-object-to-internal.test.ts renamed to lambdas/backend-api/src/__tests__/api/copy-scanned-object-to-internal.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { LetterFileRepository } from '../../../templates/infra/letter-file-repository';
1+
import type { LetterFileRepository } from '../../infra/letter-file-repository';
22
import { makeGuardDutyMalwareScanResultNotificationEvent } from 'nhs-notify-web-template-management-test-helper-utils';
33
import { mock } from 'jest-mock-extended';
4-
import { createHandler } from '../../../templates/api/copy-scanned-object-to-internal';
4+
import { createHandler } from '../../api/copy-scanned-object-to-internal';
55
import { $GuardDutyMalwareScanStatusFailed } from 'nhs-notify-web-template-management-utils';
66
import { createMockLogger } from 'nhs-notify-web-template-management-test-helper-utils/mock-logger';
77

lambdas/backend-api/src/__tests__/templates/api/count-routing-configs.test.ts renamed to lambdas/backend-api/src/__tests__/api/count-routing-configs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { APIGatewayProxyEvent, Context } from 'aws-lambda';
22
import { mock } from 'jest-mock-extended';
33
import type { Logger } from 'nhs-notify-web-template-management-utils/logger';
4-
import { createHandler } from '@backend-api/templates/api/count-routing-configs';
5-
import { RoutingConfigClient } from '@backend-api/templates/app/routing-config-client';
4+
import { createHandler } from '../../api/count-routing-configs';
5+
import { RoutingConfigClient } from '../../app/routing-config-client';
66

77
jest.mock('nhs-notify-web-template-management-utils/logger', () => ({
88
logger: mock<Logger>({

0 commit comments

Comments
 (0)