99import os
1010
1111
12+ @pytest .mark .skip (reason = "Temporarily disabled 30/10/2023" )
1213@pytest .mark .smoketest
1314def 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
2123def 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
4245def 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
5155def 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