Skip to content

Commit 4d9c7d5

Browse files
authored
chore: dtoss 7933 specflow migration to reqnroll (#833)
* chore: rename smoke test to match coding conventions * feat: selenium to reqnroll migration * chore: sln and prj same directory as convention * feat: pipeline to pick e2e tests also * fix: readme link to header * chore: docs updated for reqnroll * chore: re introduce test input files for smoke pack * fix: ignore local settings configuration file * chore: point to feature branch for testing * chore: remove e2e pack call * chore: update to latest commit on branch * chore: add test parameters to route to live pipeline * chore: point to lastet main for reusable pl * fix: reusable pl ref to point to latest version * chore: project name fix to smoke
1 parent c531702 commit 4d9c7d5

35 files changed

Lines changed: 63 additions & 77 deletions

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resources:
99
- repository: dtos-devops-templates
1010
type: github
1111
name: NHSDigital/dtos-devops-templates
12-
ref: ce0f49a28a90aa60ac579db350dbd18971b0d5ed
12+
ref: b27ec9f8be6e667ee4073c8436dadb55b9fe99c7
1313
endpoint: NHSDigital
1414

1515
variables:
@@ -92,3 +92,5 @@ stages:
9292
- template: .azuredevops/templates/steps/run-post-deployment-tests.yaml@dtos-devops-templates
9393
parameters:
9494
serviceConnection: sc-cohort-manager-nft
95+
testProjectDirectory: 'tests/smoke-tests/NHS.CohortManager.SmokeTests'
96+
testProjectName: 'NHS.CohortManager.SmokeTests'

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resources:
99
- repository: dtos-devops-templates
1010
type: github
1111
name: NHSDigital/dtos-devops-templates
12-
ref: ce0f49a28a90aa60ac579db350dbd18971b0d5ed
12+
ref: b27ec9f8be6e667ee4073c8436dadb55b9fe99c7
1313
endpoint: NHSDigital
1414

1515
variables:
@@ -92,3 +92,5 @@ stages:
9292
- template: .azuredevops/templates/steps/run-post-deployment-tests.yaml@dtos-devops-templates
9393
parameters:
9494
serviceConnection: sc-cohort-manager-int
95+
testProjectDirectory: 'tests/smoke-tests/NHS.CohortManager.SmokeTests'
96+
testProjectName: 'NHS.CohortManager.SmokeTests'

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resources:
99
- repository: dtos-devops-templates
1010
type: github
1111
name: NHSDigital/dtos-devops-templates
12-
ref: ce0f49a28a90aa60ac579db350dbd18971b0d5ed
12+
ref: b27ec9f8be6e667ee4073c8436dadb55b9fe99c7
1313
endpoint: NHSDigital
1414

1515
variables:
@@ -67,3 +67,5 @@ stages:
6767
- template: .azuredevops/templates/steps/run-post-deployment-tests.yaml@dtos-devops-templates
6868
parameters:
6969
serviceConnection: sc-cohort-manager-dev
70+
testProjectDirectory: 'tests/smoke-tests/NHS.CohortManager.SmokeTests'
71+
testProjectName: 'NHS.CohortManager.SmokeTests'

.azuredevops/pipelines/post-deployment-tests-dev.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resources:
99
- repository: dtos-devops-templates
1010
type: github
1111
name: NHSDigital/dtos-devops-templates
12-
ref: 0a1ae809e2b5f41a1974c5490595e08f591fb8c7
12+
ref: b27ec9f8be6e667ee4073c8436dadb55b9fe99c7
1313
endpoint: NHSDigital
1414

1515
variables:
@@ -32,8 +32,8 @@ stages:
3232
value: ${{ parameters.destEnvironmentShortName }}
3333

3434
jobs:
35-
- job: post_deployment_tests
36-
displayName: Run post-deployment tests
35+
- job: post_deployment_tests_smoke
36+
displayName: Run post-deployment smoke tests
3737
pool:
3838
name: private-pool-dev-uks
3939
variables:
@@ -45,3 +45,6 @@ stages:
4545
- template: .azuredevops/templates/steps/run-post-deployment-tests.yaml@dtos-devops-templates
4646
parameters:
4747
serviceConnection: sc-cohort-manager-dev
48+
testProjectDirectory: 'tests/smoke-tests/NHS.CohortManager.SmokeTests'
49+
testProjectName: 'NHS.CohortManager.SmokeTests'
50+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ application/CohortManager/.vscode/
8484

8585
# Ignore generated feature bindings
8686
*.feature.cs
87-
tests/smoke-tests/dtos-cohort-manager-smoke-tests/Config/appsettings-local.json
87+
tests/smoke-tests/NHS.CohortManager.SmokeTests/Config/appsettings-local.json
8888
tests/e2e-tests/NHS.CohortManager.EndToEndTests/Config/appsettings-local.json
8989
*.crt

tests/smoke-tests/dtos-cohort-manager-smoke-tests/Config/AppSettings.cs renamed to tests/smoke-tests/NHS.CohortManager.SmokeTests/Config/AppSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using dtos_cohort_manager_specflow.Config;
1+
using NHS.CohortManager.SmokeTests.Config;
22
public class AzureSettings
33
{
44
public bool IsCloudEnvironment { get; set; }

tests/smoke-tests/dtos-cohort-manager-smoke-tests/Config/FilePaths.cs renamed to tests/smoke-tests/NHS.CohortManager.SmokeTests/Config/FilePaths.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace dtos_cohort_manager_specflow.Config;
1+
namespace NHS.CohortManager.SmokeTests.Config;
22

33
public class FilePaths
44
{

tests/smoke-tests/dtos-cohort-manager-smoke-tests/Config/appsettings.json renamed to tests/smoke-tests/NHS.CohortManager.SmokeTests/Config/appsettings.json

File renamed without changes.

tests/smoke-tests/dtos-cohort-manager-smoke-tests/Contexts/SmokeTestsContext.cs renamed to tests/smoke-tests/NHS.CohortManager.SmokeTests/Contexts/SmokeTestsContext.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
55
using System.Threading.Tasks;
66
using CsvHelper;
7-
using dtos_cohort_manager_specflow.Models;
7+
using NHS.CohortManager.SmokeTests.Models;
88

9-
namespace dtos_cohort_manager_specflow.Contexts;
9+
namespace NHS.CohortManager.SmokeTests.Contexts;
1010

1111
public class SmokeTestsContext
1212
{

tests/smoke-tests/dtos-cohort-manager-smoke-tests/Features/SmokeTests/FileUploadAndCohortDistribution.feature renamed to tests/smoke-tests/NHS.CohortManager.SmokeTests/Features/SmokeTests/FileUploadAndCohortDistribution.feature

File renamed without changes.

0 commit comments

Comments
 (0)