mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 20:12:09 +03:00
Split proxy.sh and proxy_option.sh
This commit is contained in:
parent
9823bd48d8
commit
c5be0a88ea
0
integration/tests_ok/proxy.out
Normal file
0
integration/tests_ok/proxy.out
Normal file
@ -1,4 +1,3 @@
|
||||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
hurl tests_ok/proxy.hurl --proxy localhost:3128 --verbose
|
||||
hurl tests_ok/proxy_option.hurl --verbose
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
hurl tests_ok/proxy.hurl --proxy localhost:3128 --verbose
|
||||
hurl tests_ok/proxy_option.hurl --verbose
|
||||
|
1
integration/tests_ok/proxy_option.curl
Normal file
1
integration/tests_ok/proxy_option.curl
Normal file
@ -0,0 +1 @@
|
||||
curl --proxy 'localhost:3128' 'http://127.0.0.1:8000/proxy'
|
9
integration/tests_ok/proxy_option.html
Normal file
9
integration/tests_ok/proxy_option.html
Normal file
@ -0,0 +1,9 @@
|
||||
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"></span><span class="comment"># Go through proxy</span>
|
||||
<span class="line"></span><span class="comment"># The proxy adds header "From-Proxy:Hello" for both request and response</span>
|
||||
<span class="line"><span class="method">GET</span> <span class="url">http://127.0.0.1:8000/proxy</span></span>
|
||||
<span class="line"><span class="section-header">[Options]</span></span>
|
||||
<span class="line"><span class="string">proxy</span>: <span class="string">localhost:3128</span></span>
|
||||
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
||||
<span class="line"><span class="string">From-Proxy</span>: <span class="string">Hello</span></span>
|
||||
</span></span><span class="line"></span>
|
||||
</code></pre>
|
1
integration/tests_ok/proxy_option.json
Normal file
1
integration/tests_ok/proxy_option.json
Normal file
@ -0,0 +1 @@
|
||||
{"entries":[{"request":{"method":"GET","url":"http://127.0.0.1:8000/proxy","options":[{"name":"proxy","value":"localhost:3128"}]},"response":{"status":200,"headers":[{"name":"From-Proxy","value":"Hello"}]}}]}
|
0
integration/tests_ok/proxy_option.out
Normal file
0
integration/tests_ok/proxy_option.out
Normal file
3
integration/tests_ok/proxy_option.ps1
Normal file
3
integration/tests_ok/proxy_option.ps1
Normal file
@ -0,0 +1,3 @@
|
||||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
hurl tests_ok/proxy_option.hurl --verbose
|
3
integration/tests_ok/proxy_option.sh
Executable file
3
integration/tests_ok/proxy_option.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
hurl tests_ok/proxy_option.hurl --verbose
|
Loading…
Reference in New Issue
Block a user