|
48 | 48 | '--threadless --local-executor 0 --plugin proxy.plugin.ModifyChunkResponsePlugin ' + |
49 | 49 | TLS_INTERCEPTION_FLAGS |
50 | 50 | ), |
51 | | - ( |
52 | | - '--threaded --plugin proxy.plugin.ModifyChunkResponsePlugin ' + |
53 | | - TLS_INTERCEPTION_FLAGS |
54 | | - ), |
| 51 | + # ( |
| 52 | + # '--threaded --plugin proxy.plugin.ModifyChunkResponsePlugin ' + |
| 53 | + # TLS_INTERCEPTION_FLAGS |
| 54 | + # ), |
55 | 55 | ) |
56 | 56 |
|
57 | 57 | PROXY_PY_FLAGS_MODIFY_POST_DATA_PLUGIN = ( |
@@ -101,6 +101,7 @@ def proxy_py_subprocess(request: Any) -> Generator[int, None, None]: |
101 | 101 | '--num-acceptors', '3', |
102 | 102 | '--num-workers', '3', |
103 | 103 | '--ca-cert-dir', str(ca_cert_dir), |
| 104 | + '--log-level', 'd', |
104 | 105 | ) + tuple(request.param.split()) |
105 | 106 | proxy_proc = Popen(proxy_cmd) |
106 | 107 | # Needed because port file might not be available immediately |
@@ -168,18 +169,18 @@ def test_modify_chunk_response_integration(proxy_py_subprocess: int) -> None: |
168 | 169 | check_output([str(shell_script_test), str(proxy_py_subprocess)]) |
169 | 170 |
|
170 | 171 |
|
171 | | -# @pytest.mark.smoke # type: ignore[misc] |
172 | | -# @pytest.mark.parametrize( |
173 | | -# 'proxy_py_subprocess', |
174 | | -# PROXY_PY_FLAGS_MODIFY_POST_DATA_PLUGIN, |
175 | | -# indirect=True, |
176 | | -# ) # type: ignore[misc] |
177 | | -# @pytest.mark.skipif( |
178 | | -# IS_WINDOWS, |
179 | | -# reason='OSError: [WinError 193] %1 is not a valid Win32 application', |
180 | | -# ) # type: ignore[misc] |
181 | | -# def test_modify_post_response_integration(proxy_py_subprocess: int) -> None: |
182 | | -# """An acceptance test for :py:class:`~proxy.plugin.ModifyPostDataPlugin` |
183 | | -# interception using ``curl`` through proxy.py.""" |
184 | | -# shell_script_test = Path(__file__).parent / 'test_modify_post_data.sh' |
185 | | -# check_output([str(shell_script_test), str(proxy_py_subprocess)]) |
| 172 | +@pytest.mark.smoke # type: ignore[misc] |
| 173 | +@pytest.mark.parametrize( |
| 174 | + 'proxy_py_subprocess', |
| 175 | + PROXY_PY_FLAGS_MODIFY_POST_DATA_PLUGIN, |
| 176 | + indirect=True, |
| 177 | +) # type: ignore[misc] |
| 178 | +@pytest.mark.skipif( |
| 179 | + IS_WINDOWS, |
| 180 | + reason='OSError: [WinError 193] %1 is not a valid Win32 application', |
| 181 | +) # type: ignore[misc] |
| 182 | +def test_modify_post_response_integration(proxy_py_subprocess: int) -> None: |
| 183 | + """An acceptance test for :py:class:`~proxy.plugin.ModifyPostDataPlugin` |
| 184 | + interception using ``curl`` through proxy.py.""" |
| 185 | + shell_script_test = Path(__file__).parent / 'test_modify_post_data.sh' |
| 186 | + check_output([str(shell_script_test), str(proxy_py_subprocess)]) |
0 commit comments