Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,6 @@ mtls-test-prod:
tests/mtls \
-m "mtlstest and inttest or prodtest"

e2e-test-internal-dev:
$(TEST_CMD) \
tests/end_to_end \
-m "e2e and devtest"

e2e-test-uat:
$(TEST_CMD) \
tests/end_to_end \
-m "e2e and uattest"

.environment:
@if [ -n "$(API_ENVIRONMENT)" ]; then \
printf "\n\nTests are running on $(API_ENVIRONMENT)\n\n\n"; \
Expand Down
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ The tests written in this repository target the NHS Notify API. The types of tes

* Unit tests
* Integration tests
* End to End tests
* Zap security scan tests
* Postman collection tests

Expand Down Expand Up @@ -230,18 +229,6 @@ Available values for `PROXY_NAME` include:
* `communications-manager-pr-{num}`
* `communications-manager-pr-{num}-sandbox`

### Set Up End to End Tests

If you are running the end to end tests you will need to set the following environment variables:

* `GUKN_API_KEY` - Gov UK Notify API Key for the internal dev environment, this value can be found in AWS parameter store under /comms/govuknotify/internal-dev/api_key in the 'NHS Digital Comms Mgr Dev' account
* `UAT_GUKN_API_KEY` - Gov UK Notify API Key for the UAT environment, this value can be found in AWS parameter store under /comms/govuknotify/uat/api_key in the 'NHS Digital Comms Mgr Test' account
* `UAT_NHS_APP_USERNAME` - NHS App username, this value can be found on the [NHS App Test User and Environments](https://nhsd-confluence.digital.nhs.uk/display/RIS/NHS+Notify+%7C+NHS+App+Test+User+and+Environments) Confluence page
* `UAT_NHS_APP_PASSWORD` - NHS App password, this value can be found on the [NHS App Test User and Environments](https://nhsd-confluence.digital.nhs.uk/display/RIS/NHS+Notify+%7C+NHS+App+Test+User+and+Environments) Confluence page
* `UAT_NHS_APP_OTP` - NHS App one time passcode, this value can be found on the [NHS App Test User and Environments](https://nhsd-confluence.digital.nhs.uk/display/RIS/NHS+Notify+%7C+NHS+App+Test+User+and+Environments) Confluence page

**When exporting values on your local machine, be sure to escape special characters i.e: `\! \# \$`**

### Running Tests

#### Unit Tests
Expand Down Expand Up @@ -284,9 +271,7 @@ The table below lists common make commands used for testing:
|-----------|-------|-----------|
|internal-dev-sandbox|`make internal-sandbox-test`|Runs sandbox unit tests, sandbox postman tests and sandbox integration tests against internal-dev-sandbox|
|internal-dev|`make internal-dev-test`|Runs integration tests against internal-dev|
|internal-dev|`make e2e-test-internal-dev`|Runs end to end tests against internal-dev|
|internal-qa|`make internal-qa-test`|Runs integration tests against internal-qa|
|internal-qa|`make e2e-test-uat`|Runs end to end tests against internal-qa|
|int|`make integration-test`|Runs integration tests against int|
|prod|`make production-test`|Runs integration tests against prod|

Expand Down
58 changes: 0 additions & 58 deletions azure/nightly-internal-dev-end-to-end-pipeline.yml

This file was deleted.

58 changes: 0 additions & 58 deletions azure/nightly-uat-end-to-end-pipeline.yml

This file was deleted.

35 changes: 0 additions & 35 deletions docs/tests/end_to_end/gov_notify/email.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/tests/end_to_end/gov_notify/index.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/tests/end_to_end/gov_notify/letter.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/tests/end_to_end/gov_notify/sms.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/tests/end_to_end/index.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/tests/end_to_end/nhsapp/index.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/tests/end_to_end/nhsapp/nhsapp.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/tests/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Test Suite

* [End to end test suite](end_to_end/index.md)
* [Gov Notify Tests](end_to_end/gov_notify/index.md)
* [NHS App Tests](end_to_end/nhsapp/index.md)
* [POST /v1/message-batches](post_v1_message-batches/index.md)
* [Validation Tests](post_v1_message-batches/validation.md)
* [Invalid Routing Plans](post_v1_message-batches/invalid_routing_plans.md)
Expand Down
12 changes: 0 additions & 12 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ export INTEGRATION_PRIVATE_KEY=xxx
# private key used to generate authentication for tests ran against the prod environment
export PRODUCTION_PRIVATE_KEY=xxx

# E2E Test Secrets
# ================
# Gov UK Notify API Key used for polling GUKN communications in end to end tests
# Value can be found in SSM under/comms/uat/clients/apim_integration_test_client_id/client-metadata/govuknotify/api_key
export UAT_GUKN_API_KEY=xxx
# NHS App user details used to log in and verify messages in end to end tests
# Test user details can be found under https://nhsd-confluence.digital.nhs.uk/display/RIS/NHS+Notify+%7C+NHS+App+Test+User+and+Environments
# Note: Symbols must be escaped to be used, i.e Test£123 must be Test\£123
export UAT_NHS_APP_USERNAME=nhsapp.aostest+yvette.bray@gmail.com
export UAT_NHS_APP_PASSWORD=xxx
export UAT_NHS_APP_OTP=xxx

# Postman Secrets
# ===============
# These are used to pull down changes made in the postman collection https://www.postman.com/nhs-communications-manager/communications-manager/
Expand Down
1 change: 0 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ python_files = *_tests.py test_*.py
norecursedirs = .venv .eggs build dist utils
addopts = --strict-markers
markers =
e2e: end to end tests
smoketest: suitable to run against all environments even production
mtlstest: suitable to run against periodically against environments
sandboxtest: suitable to run against sandbox environment
Expand Down
8 changes: 0 additions & 8 deletions tests/docs/end_to_end/gov_notify/email.rst

This file was deleted.

9 changes: 0 additions & 9 deletions tests/docs/end_to_end/gov_notify/index.rst

This file was deleted.

Loading