Skip to content

Commit dd98d73

Browse files
authored
Merge pull request #1057 from NHSDigital/feature/CCM-15685_removing_ref2
CCM-15685: Removing REF2 References
2 parents 4da99b3 + ef741e3 commit dd98d73

4 files changed

Lines changed: 3 additions & 30 deletions

File tree

azure/azure-release-pipeline.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,6 @@ extends:
7676
parameters:
7777
environment: 'ref'
7878
test_command: 'make internal-dev-test'
79-
80-
- environment: ref
81-
stage_name: ref2
82-
service_name: "${{ variables.service_name }}-2"
83-
short_service_name: "${{ variables.short_service_name }}-2"
84-
service_base_path: "${{ variables.service_base_path }}-2"
85-
depends_on:
86-
- manual_approval_ref
87-
jinja_templates:
88-
ENVIRONMENT_TYPE: 'internal'
89-
ERROR_ABOUT_LINK: ${{ variables.error_about_link }}
90-
TARGET_SERVER_OVERRIDE: communications-manager-target-2
91-
post_deploy:
92-
- template: ./templates/run-tests.yml
93-
parameters:
94-
environment: 'ref2'
95-
test_command: 'make internal-dev-test'
9679

9780
- environment: manual-approval
9881
stage_name: manual_approval_internal_qa

manifest_template.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ APIGEE_ENVIRONMENTS:
2525
app_quota: '108000'
2626
global_ratelimit: '108000pm'
2727
global_quota: '108000'
28-
- name: 2-ref
29-
display_name: Reference - 2
30-
display_name: Reference
31-
app_ratelimit: '108000pm'
32-
app_quota: '108000'
33-
global_ratelimit: '108000pm'
34-
global_quota: '108000'
3528
- name: internal-dev-sandbox
3629
variants:
3730
- name: internal-dev-sandbox

tests/lib/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def generate_authentication(self, env, base_url):
3333
# a 404 response means the authentication is working.
3434
test_url = f"{base_url}/v1/messages/message_id"
3535

36-
if env in ["internal-dev", "internal-qa", "ref", "ref2"]:
36+
if env in ["internal-dev", "internal-qa", "ref"]:
3737
api_key = os.environ["NON_PROD_API_KEY"]
3838
private_key = os.environ["NON_PROD_PRIVATE_KEY"]
3939
url = "https://internal-dev.api.service.nhs.uk/oauth2/token"

tests/lib/fixtures.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def url(api_product_name):
103103
environment = os.environ['API_ENVIRONMENT']
104104
if environment == "prod":
105105
return "https://api.service.nhs.uk/comms"
106-
# authentication for ref and ref2 is shared with internal-dev
107-
elif environment in ["ref", "ref2"]:
106+
# authentication for ref is shared with internal-dev
107+
elif environment in ["ref"]:
108108
return "https://internal-dev.api.service.nhs.uk/comms"
109109
else:
110110
return f"https://{environment}.api.service.nhs.uk/{suffix}"
@@ -115,9 +115,6 @@ def bearer_token(authentication_cache, api_product_in_comms_manager_local):
115115
environment = os.environ['API_ENVIRONMENT']
116116
if environment == "prod":
117117
url = PROD_URL
118-
# the ref2 url is structured slightly differently so it needs to be explicitly called out here
119-
elif environment == "ref2":
120-
url = "https://ref.api.service.nhs.uk/comms-2"
121118
else:
122119
url = f"https://{environment}.api.service.nhs.uk/comms"
123120
return authentication_cache.generate_authentication(environment, url)

0 commit comments

Comments
 (0)