Skip to content

Commit 3d50a1d

Browse files
author
igba.ujege
committed
Skipped smoke test
1 parent dc2e98c commit 3d50a1d

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

azure/azure-release-pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ extends:
5555
- internal_qa_sandbox
5656
post_deploy:
5757
- template: ./templates/run-tests.yml
58+
parameters:
59+
full: false
5860
# - environment: ref
5961
# depends_on:
6062
# - internal_qa

tests/test_endpoints.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import os
1010

1111

12+
@pytest.mark.skip(reason="Temporarily disabled 30/10/2023")
1213
@pytest.mark.smoketest
1314
def test_ping(nhsd_apim_proxy_url):
1415
os.environ["PROXY_NAME"] = "dev"
@@ -17,15 +18,16 @@ def test_ping(nhsd_apim_proxy_url):
1718
assert resp.status_code == 200
1819

1920

21+
@pytest.mark.skip(reason="Temporarily disabled 30/10/2023")
2022
@pytest.mark.smoketest
2123
def test_wait_for_ping(nhsd_apim_proxy_url):
2224
retries = 0
2325
resp = requests.get(f"{nhsd_apim_proxy_url}/_ping")
2426
deployed_commitId = resp.json().get("commitId")
2527

2628
while (deployed_commitId != getenv('SOURCE_COMMIT_ID')
27-
and retries <= 30
28-
and resp.status_code == 200):
29+
and retries <= 30
30+
and resp.status_code == 200):
2931
resp = requests.get(f"{nhsd_apim_proxy_url}/_ping")
3032
deployed_commitId = resp.json().get("commitId")
3133
retries += 1
@@ -38,6 +40,7 @@ def test_wait_for_ping(nhsd_apim_proxy_url):
3840
assert deployed_commitId == getenv('SOURCE_COMMIT_ID')
3941

4042

43+
@pytest.mark.skip(reason="Temporarily disabled 30/10/2023")
4144
@pytest.mark.smoketest
4245
def test_status(nhsd_apim_proxy_url, status_endpoint_auth_headers):
4346
resp = requests.get(
@@ -47,16 +50,17 @@ def test_status(nhsd_apim_proxy_url, status_endpoint_auth_headers):
4750
# Make some additional assertions about your status response here!
4851

4952

53+
@pytest.mark.skip(reason="Temporarily disabled 30/10/2023")
5054
@pytest.mark.smoketest
5155
def test_wait_for_status(nhsd_apim_proxy_url, status_endpoint_auth_headers):
5256
retries = 0
5357
resp = requests.get(f"{nhsd_apim_proxy_url}/_status", headers=status_endpoint_auth_headers)
5458
deployed_commitId = resp.json().get("commitId")
5559

5660
while (deployed_commitId != getenv('SOURCE_COMMIT_ID')
57-
and retries <= 30
58-
and resp.status_code == 200
59-
and resp.json().get("version")):
61+
and retries <= 30
62+
and resp.status_code == 200
63+
and resp.json().get("version")):
6064
resp = requests.get(f"{nhsd_apim_proxy_url}/_status", headers=status_endpoint_auth_headers)
6165
deployed_commitId = resp.json().get("commitId")
6266
retries += 1

0 commit comments

Comments
 (0)