Skip to content

Commit 3cb4fc3

Browse files
Merge branch 'main' into spike/Snapshot-tests
2 parents ac431ff + 3e016b0 commit 3cb4fc3

File tree

262 files changed

+15751
-3891
lines changed

Some content is hidden

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

262 files changed

+15751
-3891
lines changed

.azuredevops/pipelines/acr-image-promote-dev-to-nft.yaml

Lines changed: 14 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,11 @@ resources:
99
- repository: dtos-devops-templates
1010
type: github
1111
name: NHSDigital/dtos-devops-templates
12-
ref: dbb933e78adea035c494a4d6c081c39787533a30
12+
ref: 9ebaa0958ce826d44bdba77c25bf0a697e1f441c
1313
endpoint: NHSDigital
1414

1515
variables:
1616
- group: DEV_hub_backend_remote_state
17-
- name: sourceRegistry
18-
value: acrukshubdevcohman
19-
- name: selectImageTag
20-
value: development
21-
- name: destRegistry
22-
value: acrukshubdevcohman
23-
- name: addImageTag
24-
value: nft
25-
- name: destEnvironmentShortName
26-
value: nft
2717

2818
stages:
2919
- stage: db_changes_stage
@@ -35,20 +25,13 @@ stages:
3525
displayName: Apply database changes
3626
variables:
3727
- group: NFT_core_backend
28+
- group: NFT_image_pipelines
3829
steps:
3930
- checkout: self
4031
- checkout: dtos-devops-templates
4132
- template: .azuredevops/templates/steps/apply-database-changes.yaml@dtos-devops-templates
4233
parameters:
4334
serviceConnection: $(SERVICE_CONNECTION)
44-
resourceGroupSQL: rg-cohman-$(destEnvironmentShortName)-uks
45-
miNameACR: dtos-cohort-manager-acr-push
46-
miNameSQL: mi-cohort-manager-db-management-nft
47-
acrServerName: '$(sourceRegistry).azurecr.io'
48-
containerGroupName: 'acigrp-cohort-manager-db-migration'
49-
containerName: 'cohort-manager-db-migration'
50-
containerImageName: 'cohort-manager-database-db-migration:$(selectImageTag)'
51-
sqlConnectionString: '$(DTOS_DATABASE_CONNECTION_STRING)'
5235

5336
- stage: re_tag_stage
5437
displayName: ACR re-tag
@@ -58,14 +41,11 @@ stages:
5841
name: private-pool-prod-uks
5942
displayName: Update/copy Docker images with new tag
6043
variables:
61-
SRC_REGISTRY: $(sourceRegistry)
62-
DEST_REGISTRY: $(destRegistry)
63-
SELECT_IMAGE_TAG: $(selectImageTag)
64-
ADD_IMAGE_TAG: $(addImageTag)
44+
- group: NFT_image_pipelines
6545
steps:
6646
- template: .azuredevops/templates/steps/acr-import-retag.yaml@dtos-devops-templates
6747
parameters:
68-
serviceConnection: sc-cohort-manager-nft
48+
serviceConnection: $(SERVICE_CONNECTION)
6949

7050
- stage: deploy_image_stage
7151
displayName: Deploy images
@@ -75,15 +55,12 @@ stages:
7555
name: private-pool-dev-uks
7656
displayName: Deploy Docker images to function apps
7757
variables:
78-
DEST_REGISTRY: $(destRegistry)
79-
ADD_IMAGE_TAG: $(addImageTag)
80-
FUNCTION_NAME_PREFIX: $(destEnvironmentShortName)-uks
81-
FUNCTION_RESOURCE_GROUP: rg-cohort-manager-$(destEnvironmentShortName)-uks
82-
PROJECT_NAME: cohort-manager
58+
- group: NFT_core_backend
59+
- group: NFT_image_pipelines
8360
steps:
8461
- template: .azuredevops/templates/steps/deploy-images-from-acr.yaml@dtos-devops-templates
8562
parameters:
86-
serviceConnection: sc-cohort-manager-nft
63+
serviceConnection: $(SERVICE_CONNECTION)
8764

8865
- stage: post_deployment_tests_stage
8966
displayName: Post-deployment tests
@@ -94,14 +71,12 @@ stages:
9471
displayName: Run post-deployment tests
9572
pool:
9673
name: private-pool-dev-uks
97-
variables:
98-
AppSettings.ConnectionStrings.DtOsDatabaseConnectionString: $(DTOS_DATABASE_CONNECTION_STRING)
99-
AppSettings.CloudFileStorageConnectionString: $(CAASFOLDER_STORAGE_CONNECTION_STRING)
100-
AppSettings.ManagedIdentityClientId: $(MANAGED_IDENTITY_CLIENT_ID)
101-
AppSettings.IsCloudEnvironment: $(Is_CloudEnvironment)
74+
10275
steps:
103-
- template: .azuredevops/templates/steps/run-post-deployment-tests.yaml@dtos-devops-templates
76+
- template: .azuredevops/templates/steps/run-post-deployment-pw-tests.yaml@dtos-devops-templates
10477
parameters:
105-
serviceConnection: sc-cohort-manager-nft
106-
testProjectDirectory: 'tests/smoke-tests/NHS.CohortManager.SmokeTests'
107-
testProjectName: 'NHS.CohortManager.SmokeTests'
78+
serviceConnection: $(SERVICE_CONNECTION)
79+
testProjectDirectory: 'tests/playwright-tests'
80+
testfileDirectory: 'src/tests/e2e/testFiles'
81+
testProjectName: 'tests'
82+

.azuredevops/pipelines/acr-image-promote-nft-to-integration.yaml

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,11 @@ resources:
99
- repository: dtos-devops-templates
1010
type: github
1111
name: NHSDigital/dtos-devops-templates
12-
ref: dbb933e78adea035c494a4d6c081c39787533a30
12+
ref: 9ebaa0958ce826d44bdba77c25bf0a697e1f441c
1313
endpoint: NHSDigital
1414

1515
variables:
1616
- group: DEV_hub_backend_remote_state
17-
- name: sourceRegistry
18-
value: acrukshubdevcohman
19-
- name: selectImageTag
20-
value: nft
21-
- name: destRegistry
22-
value: acrukshubdevcohman
23-
- name: addImageTag
24-
value: integration
25-
- name: destEnvironmentShortName
26-
value: int
2717

2818
stages:
2919
- stage: db_changes_stage
@@ -35,20 +25,13 @@ stages:
3525
displayName: Apply database changes
3626
variables:
3727
- group: INT_core_backend
28+
- group: INT_image_pipelines
3829
steps:
3930
- checkout: self
4031
- checkout: dtos-devops-templates
4132
- template: .azuredevops/templates/steps/apply-database-changes.yaml@dtos-devops-templates
4233
parameters:
4334
serviceConnection: $(SERVICE_CONNECTION)
44-
resourceGroupSQL: rg-cohman-$(destEnvironmentShortName)-uks
45-
miNameACR: dtos-cohort-manager-acr-push
46-
miNameSQL: mi-cohort-manager-db-management-int
47-
acrServerName: '$(sourceRegistry).azurecr.io'
48-
containerGroupName: 'acigrp-cohort-manager-db-migration'
49-
containerName: 'cohort-manager-db-migration'
50-
containerImageName: 'cohort-manager-database-db-migration:$(selectImageTag)'
51-
sqlConnectionString: '$(DTOS_DATABASE_CONNECTION_STRING)'
5235

5336
- stage: re_tag_stage
5437
displayName: ACR re-tag
@@ -58,10 +41,7 @@ stages:
5841
name: private-pool-prod-uks
5942
displayName: Update/copy Docker images with new tag
6043
variables:
61-
SRC_REGISTRY: $(sourceRegistry)
62-
DEST_REGISTRY: $(destRegistry)
63-
SELECT_IMAGE_TAG: $(selectImageTag)
64-
ADD_IMAGE_TAG: $(addImageTag)
44+
- group: INT_image_pipelines
6545
steps:
6646
- template: .azuredevops/templates/steps/acr-import-retag.yaml@dtos-devops-templates
6747
parameters:
@@ -75,11 +55,8 @@ stages:
7555
name: private-pool-dev-uks
7656
displayName: Deploy Docker images to function apps
7757
variables:
78-
DEST_REGISTRY: $(destRegistry)
79-
ADD_IMAGE_TAG: $(addImageTag)
80-
FUNCTION_NAME_PREFIX: $(destEnvironmentShortName)-uks
81-
FUNCTION_RESOURCE_GROUP: rg-cohort-manager-$(destEnvironmentShortName)-uks
82-
PROJECT_NAME: cohort-manager
58+
- group: INT_core_backend
59+
- group: INT_image_pipelines
8360
steps:
8461
- template: .azuredevops/templates/steps/deploy-images-from-acr.yaml@dtos-devops-templates
8562
parameters:
@@ -94,14 +71,12 @@ stages:
9471
displayName: Run post-deployment tests
9572
pool:
9673
name: private-pool-dev-uks
97-
variables:
98-
AppSettings.ConnectionStrings.DtOsDatabaseConnectionString: $(DTOS_DATABASE_CONNECTION_STRING)
99-
AppSettings.CloudFileStorageConnectionString: $(CAASFOLDER_STORAGE_CONNECTION_STRING)
100-
AppSettings.ManagedIdentityClientId: $(MANAGED_IDENTITY_CLIENT_ID)
101-
AppSettings.IsCloudEnvironment: $(Is_CloudEnvironment)
74+
10275
steps:
103-
- template: .azuredevops/templates/steps/run-post-deployment-tests.yaml@dtos-devops-templates
76+
- template: .azuredevops/templates/steps/run-post-deployment-pw-tests.yaml@dtos-devops-templates
10477
parameters:
10578
serviceConnection: $(SERVICE_CONNECTION)
106-
testProjectDirectory: 'tests/smoke-tests/NHS.CohortManager.SmokeTests'
107-
testProjectName: 'NHS.CohortManager.SmokeTests'
79+
testProjectDirectory: 'tests/playwright-tests'
80+
testfileDirectory: 'src/tests/e2e/testFiles'
81+
testProjectName: 'tests'
82+

.azuredevops/pipelines/acr-image-promote-to-dev.yaml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@ resources:
99
- repository: dtos-devops-templates
1010
type: github
1111
name: NHSDigital/dtos-devops-templates
12-
ref: dbb933e78adea035c494a4d6c081c39787533a30
12+
ref: 9ebaa0958ce826d44bdba77c25bf0a697e1f441c
1313
endpoint: NHSDigital
1414

1515
variables:
1616
- group: DEV_hub_backend_remote_state
17-
- name: sourceRegistry
18-
value: acrukshubdevcohman
19-
- name: selectImageTag
20-
value: development
21-
- name: destEnvironmentShortName
22-
value: dev
2317

2418
stages:
2519
- stage: db_changes_stage
@@ -31,20 +25,13 @@ stages:
3125
displayName: Apply database changes
3226
variables:
3327
- group: DEV_core_backend
28+
- group: DEV_image_pipelines
3429
steps:
3530
- checkout: self
3631
- checkout: dtos-devops-templates
3732
- template: .azuredevops/templates/steps/apply-database-changes.yaml@dtos-devops-templates
3833
parameters:
3934
serviceConnection: $(SERVICE_CONNECTION)
40-
resourceGroupSQL: rg-cohman-$(destEnvironmentShortName)-uks
41-
miNameACR: dtos-cohort-manager-acr-push
42-
miNameSQL: mi-cohort-manager-db-management-dev
43-
acrServerName: '$(sourceRegistry).azurecr.io'
44-
containerGroupName: 'acigrp-cohman-$(destEnvironmentShortName)-uks-db-migration'
45-
containerName: 'cohort-manager-db-migration'
46-
containerImageName: 'cohort-manager-database-db-migration:$(selectImageTag)'
47-
sqlConnectionString: '$(DTOS_DATABASE_CONNECTION_STRING)'
4835

4936
- stage: deploy_image_stage
5037
displayName: Deploy images
@@ -54,11 +41,8 @@ stages:
5441
name: private-pool-dev-uks
5542
displayName: Deploy Docker images to function apps
5643
variables:
57-
DEST_REGISTRY: $(destRegistry)
58-
ADD_IMAGE_TAG: $(addImageTag)
59-
FUNCTION_NAME_PREFIX: $(destEnvironmentShortName)-uks
60-
FUNCTION_RESOURCE_GROUP: rg-cohort-manager-$(destEnvironmentShortName)-uks
61-
PROJECT_NAME: cohort-manager
44+
- group: DEV_core_backend
45+
- group: DEV_image_pipelines
6246
steps:
6347
- template: .azuredevops/templates/steps/deploy-images-from-acr.yaml@dtos-devops-templates
6448
parameters:
@@ -73,14 +57,12 @@ stages:
7357
displayName: Run post-deployment tests
7458
pool:
7559
name: private-pool-dev-uks
76-
variables:
77-
AppSettings.ConnectionStrings.DtOsDatabaseConnectionString: $(DTOS_DATABASE_CONNECTION_STRING)
78-
AppSettings.CloudFileStorageConnectionString: $(CAASFOLDER_STORAGE_CONNECTION_STRING)
79-
AppSettings.ManagedIdentityClientId: $(MANAGED_IDENTITY_CLIENT_ID)
80-
AppSettings.IsCloudEnvironment: $(Is_CloudEnvironment)
60+
8161
steps:
82-
- template: .azuredevops/templates/steps/run-post-deployment-tests.yaml@dtos-devops-templates
62+
- template: .azuredevops/templates/steps/run-post-deployment-pw-tests.yaml@dtos-devops-templates
8363
parameters:
8464
serviceConnection: $(SERVICE_CONNECTION)
85-
testProjectDirectory: 'tests/smoke-tests/NHS.CohortManager.SmokeTests'
86-
testProjectName: 'NHS.CohortManager.SmokeTests'
65+
testProjectDirectory: 'tests/playwright-tests'
66+
testfileDirectory: 'src/tests/e2e/testFiles'
67+
testProjectName: 'tests'
68+

.azuredevops/pipelines/acr-image-promote-to-devtest.yaml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@ resources:
99
- repository: dtos-devops-templates
1010
type: github
1111
name: NHSDigital/dtos-devops-templates
12-
ref: dbb933e78adea035c494a4d6c081c39787533a30
12+
ref: 9ebaa0958ce826d44bdba77c25bf0a697e1f441c
1313
endpoint: NHSDigital
1414

1515
variables:
1616
- group: DEV_hub_backend_remote_state
17-
- name: sourceRegistry
18-
value: acrukshubdevcohman
19-
- name: selectImageTag
20-
value: development
21-
- name: destEnvironmentShortName
22-
value: devtest
2317

2418
stages:
2519
- stage: db_changes_stage
@@ -31,20 +25,13 @@ stages:
3125
displayName: Apply database changes
3226
variables:
3327
- group: DEVTEST_core_backend
28+
- group: DEVTEST_image_pipelines
3429
steps:
3530
- checkout: self
3631
- checkout: dtos-devops-templates
3732
- template: .azuredevops/templates/steps/apply-database-changes.yaml@dtos-devops-templates
3833
parameters:
3934
serviceConnection: $(SERVICE_CONNECTION)
40-
resourceGroupSQL: rg-cohman-$(destEnvironmentShortName)-uks
41-
miNameACR: dtos-cohort-manager-acr-push
42-
miNameSQL: mi-cohort-manager-db-management-devtest
43-
acrServerName: '$(sourceRegistry).azurecr.io'
44-
containerGroupName: 'acigrp-cohman-$(destEnvironmentShortName)-uks-db-migration'
45-
containerName: 'cohort-manager-db-migration'
46-
containerImageName: 'cohort-manager-database-db-migration:$(selectImageTag)'
47-
sqlConnectionString: '$(DTOS_DATABASE_CONNECTION_STRING)'
4835

4936
- stage: deploy_image_stage
5037
displayName: Deploy images
@@ -54,12 +41,27 @@ stages:
5441
name: private-pool-dev-uks
5542
displayName: Deploy Docker images to function apps
5643
variables:
57-
DEST_REGISTRY: $(destRegistry)
58-
ADD_IMAGE_TAG: $(addImageTag)
59-
FUNCTION_NAME_PREFIX: $(destEnvironmentShortName)-uks
60-
FUNCTION_RESOURCE_GROUP: rg-cohort-manager-$(destEnvironmentShortName)-uks
61-
PROJECT_NAME: cohort-manager
44+
- group: DEVTEST_core_backend
45+
- group: DEVTEST_image_pipelines
6246
steps:
6347
- template: .azuredevops/templates/steps/deploy-images-from-acr.yaml@dtos-devops-templates
6448
parameters:
6549
serviceConnection: $(SERVICE_CONNECTION)
50+
51+
- stage: post_deployment_tests_stage
52+
displayName: Post-deployment tests
53+
variables:
54+
- group: DEVTEST_automation_testing_pipeline
55+
jobs:
56+
- job: post_deployment_tests
57+
displayName: Run post-deployment tests
58+
pool:
59+
name: private-pool-dev-uks
60+
61+
steps:
62+
- template: .azuredevops/templates/steps/run-post-deployment-pw-tests.yaml@dtos-devops-templates
63+
parameters:
64+
serviceConnection: $(SERVICE_CONNECTION)
65+
testProjectDirectory: 'tests/playwright-tests'
66+
testfileDirectory: 'src/tests/e2e/testFiles'
67+
testProjectName: 'tests'

.azuredevops/pipelines/cd-infrastructure-dev-audit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resources:
1313
- repository: dtos-devops-templates
1414
type: github
1515
name: NHSDigital/dtos-devops-templates
16-
ref: 2f8731f9c7d6b9d53b7044979e381377b2c85bcd
16+
ref: c00889236a258a52a2f3131272427ce81d4da951
1717
endpoint: NHSDigital
1818

1919
variables:
@@ -22,7 +22,7 @@ variables:
2222
- name: TF_DIRECTORY
2323
value: $(System.DefaultWorkingDirectory)/$(System.TeamProject)/infrastructure/tf-audit
2424
- name: TF_VERSION
25-
value: 1.9.2
25+
value: 1.11.4
2626
- name: TF_PLAN_ARTIFACT
2727
value: tf_plan_audit_DEV
2828
- name: ENVIRONMENT

.azuredevops/pipelines/cd-infrastructure-devtest-audit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resources:
1313
- repository: dtos-devops-templates
1414
type: github
1515
name: NHSDigital/dtos-devops-templates
16-
ref: 2f8731f9c7d6b9d53b7044979e381377b2c85bcd
16+
ref: c00889236a258a52a2f3131272427ce81d4da951
1717
endpoint: NHSDigital
1818

1919
variables:
@@ -22,7 +22,7 @@ variables:
2222
- name: TF_DIRECTORY
2323
value: $(System.DefaultWorkingDirectory)/$(System.TeamProject)/infrastructure/tf-audit
2424
- name: TF_VERSION
25-
value: 1.9.2
25+
value: 1.11.4
2626
- name: TF_PLAN_ARTIFACT
2727
value: tf_plan_audit_DEVTEST
2828
- name: ENVIRONMENT

.azuredevops/pipelines/cd-infrastructure-int-audit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resources:
1313
- repository: dtos-devops-templates
1414
type: github
1515
name: NHSDigital/dtos-devops-templates
16-
ref: 2f8731f9c7d6b9d53b7044979e381377b2c85bcd
16+
ref: c00889236a258a52a2f3131272427ce81d4da951
1717
endpoint: NHSDigital
1818

1919
variables:
@@ -22,7 +22,7 @@ variables:
2222
- name: TF_DIRECTORY
2323
value: $(System.DefaultWorkingDirectory)/$(System.TeamProject)/infrastructure/tf-audit
2424
- name: TF_VERSION
25-
value: 1.9.2
25+
value: 1.11.4
2626
- name: TF_PLAN_ARTIFACT
2727
value: tf_plan_audit_INT
2828
- name: ENVIRONMENT

0 commit comments

Comments
 (0)