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
17 changes: 0 additions & 17 deletions azure/azure-release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,6 @@ extends:
parameters:
environment: 'ref'
test_command: 'make internal-dev-test'

- environment: ref
stage_name: ref2
service_name: "${{ variables.service_name }}-2"
short_service_name: "${{ variables.short_service_name }}-2"
service_base_path: "${{ variables.service_base_path }}-2"
depends_on:
- manual_approval_ref
jinja_templates:
ENVIRONMENT_TYPE: 'internal'
ERROR_ABOUT_LINK: ${{ variables.error_about_link }}
TARGET_SERVER_OVERRIDE: communications-manager-target-2
post_deploy:
- template: ./templates/run-tests.yml
parameters:
environment: 'ref2'
test_command: 'make internal-dev-test'

- environment: manual-approval
stage_name: manual_approval_internal_qa
Expand Down
7 changes: 0 additions & 7 deletions manifest_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ APIGEE_ENVIRONMENTS:
app_quota: '108000'
global_ratelimit: '108000pm'
global_quota: '108000'
- name: 2-ref
display_name: Reference - 2
display_name: Reference
app_ratelimit: '108000pm'
app_quota: '108000'
global_ratelimit: '108000pm'
global_quota: '108000'
- name: internal-dev-sandbox
variants:
- name: internal-dev-sandbox
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def generate_authentication(self, env, base_url):
# a 404 response means the authentication is working.
test_url = f"{base_url}/v1/messages/message_id"

if env in ["internal-dev", "internal-qa", "ref", "ref2"]:
if env in ["internal-dev", "internal-qa", "ref"]:
api_key = os.environ["NON_PROD_API_KEY"]
private_key = os.environ["NON_PROD_PRIVATE_KEY"]
url = "https://internal-dev.api.service.nhs.uk/oauth2/token"
Expand Down
7 changes: 2 additions & 5 deletions tests/lib/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def url(api_product_name):
environment = os.environ['API_ENVIRONMENT']
if environment == "prod":
return "https://api.service.nhs.uk/comms"
# authentication for ref and ref2 is shared with internal-dev
elif environment in ["ref", "ref2"]:
# authentication for ref is shared with internal-dev
elif environment in ["ref"]:
return "https://internal-dev.api.service.nhs.uk/comms"
else:
return f"https://{environment}.api.service.nhs.uk/{suffix}"
Expand All @@ -115,9 +115,6 @@ def bearer_token(authentication_cache, api_product_in_comms_manager_local):
environment = os.environ['API_ENVIRONMENT']
if environment == "prod":
url = PROD_URL
# the ref2 url is structured slightly differently so it needs to be explicitly called out here
elif environment == "ref2":
url = "https://ref.api.service.nhs.uk/comms-2"
else:
url = f"https://{environment}.api.service.nhs.uk/comms"
return authentication_cache.generate_authentication(environment, url)
Loading