Skip to content

Commit 8a07601

Browse files
committed
Fix integration_tests.yml
- Scrape.do was getting blocked by Cloud Run. Included `super=True` to all requests made by the test suite and `render=True` for GET requests.
1 parent 87e93f7 commit 8a07601

1 file changed

Lines changed: 24 additions & 7 deletions

File tree

tests/integration/test_client.py

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ def test_target_rate_limit_logic(
100100
"""
101101
Checks logic when the target explicitly rate-limits the proxy.
102102
"""
103-
response = no_retry_sync_client.get(f"{HTTPBIN_BASE}/status/429")
103+
response = no_retry_sync_client.get(
104+
f"{HTTPBIN_BASE}/status/429",
105+
super=True,
106+
render=True
107+
)
104108

105109
# Target error, proxy succeeded
106110
self._validate_and_log_error_state(
@@ -117,7 +121,9 @@ def test_proxy_timeout_logic(
117121
"""
118122
response = no_retry_sync_client.get(
119123
f"{HTTPBIN_BASE}/delay/10",
120-
timeout=5000
124+
timeout=5000,
125+
super=True,
126+
render=True
121127
)
122128

123129
# True proxy error
@@ -154,7 +160,9 @@ def test_transparent_target_error_logic(
154160
"""
155161
response = no_retry_sync_client.get(
156162
f"{HTTPBIN_BASE}/status/500",
157-
transparent_response=True
163+
transparent_response=True,
164+
super=True,
165+
render=True
158166
)
159167

160168
# The target failed, not the proxy.
@@ -173,7 +181,9 @@ def test_transparent_proxy_timeout_logic(
173181
response = no_retry_sync_client.get(
174182
f"{HTTPBIN_BASE}/delay/10",
175183
timeout=5000,
176-
transparent_response=True
184+
transparent_response=True,
185+
super=True,
186+
render=True
177187
)
178188

179189
# The proxy timed out.
@@ -203,7 +213,8 @@ def test_live_post_json_payload(
203213
response = default_sync_client.post(
204214
f"{HTTPBIN_BASE}/post",
205215
body=test_payload,
206-
payload_type="json"
216+
payload_type="json",
217+
super=True
207218
)
208219

209220
assert response.status_code == 200
@@ -223,7 +234,11 @@ def test_live_binary_file_download(
223234
"""
224235

225236
# Request a raw PNG image
226-
response = default_sync_client.get(f"{HTTPBIN_BASE}/image/png")
237+
response = default_sync_client.get(
238+
f"{HTTPBIN_BASE}/image/png",
239+
super=True,
240+
render=True
241+
)
227242

228243
assert response.status_code == 200
229244

@@ -249,7 +264,9 @@ def test_live_cookie_injection(
249264

250265
response = default_sync_client.get(
251266
f"{HTTPBIN_BASE}/cookies",
252-
set_cookies=injected_cookie
267+
set_cookies=injected_cookie,
268+
super=True,
269+
render=True
253270
)
254271

255272
assert response.status_code == 200

0 commit comments

Comments
 (0)