Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ def _localstack() -> bool:
def api_registry() -> str:
if _localstack():
return "http://localhost:9000"
return "https://api-registry.prod.api.platform.nhs.uk:9000"
return "https://api-registry.ptl.api.platform.nhs.uk:9000"
12 changes: 0 additions & 12 deletions ansible/roles/remove-old-pr-portal-apis/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
- name: list portals
uri:
url: "{{ portals_list_uri }}"
headers:
Authorization: "Bearer {{ APIGEE_ACCESS_TOKEN }}"
return_content: yes
register: portals

- name: set portal_id
set_fact:
portal_id: "{{ portals.json.data[0].id }}"

- name: get apidocs
uri:
url: "{{ portals_base_uri }}/{{ portal_id }}/apidocs"
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/remove-old-pr-portal-apis/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
portals_base_uri: "https://apigee.com/portals/api/sites"
portals_list_uri: "{{ portals_base_uri }}?orgname={{ APIGEE_ORGANIZATION }}"
portal_id: "{{ APIGEE_ORGANIZATION }}-developerportal"
retain_hours: "{{ (lookup('env', 'retain_hours') or 72) }}"
4 changes: 2 additions & 2 deletions azure/utils-pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ jobs:
displayName: Install utils pre-requisites

- bash: |
poetry run ansible-test units --python=3.8
ANSIBLE_FORCE_COLOR=yes poetry run ansible-test units --python=3.8
workingDirectory: ansible/collections/ansible_collections/nhsd/apigee
displayName: Unit test ansible

- bash: |
poetry run ansible-test integration --python=3.8
ANSIBLE_FORCE_COLOR=yes poetry run ansible-test integration --python=3.8
workingDirectory: ansible/collections/ansible_collections/nhsd/apigee
displayName: Integration test ansible

Expand Down