[Fuego] [PATCH 02/18] add http proxy
Song Cai
cais.fnst at cn.fujitsu.com
Fri Oct 13 10:04:59 UTC 2017
add http proxy for curl
Signed-off-by: Song Cai <cais.fnst at cn.fujitsu.com>
---
engine/tests/Functional.curl/fuego_test.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/engine/tests/Functional.curl/fuego_test.sh b/engine/tests/Functional.curl/fuego_test.sh
index 90d24dd..5f8d71a 100755
--- a/engine/tests/Functional.curl/fuego_test.sh
+++ b/engine/tests/Functional.curl/fuego_test.sh
@@ -1,5 +1,6 @@
function test_run {
- report "if curl -o test.html www.baidu.com > /dev/null; then echo 'TEST-1 OK'; else echo 'TEST-1 FAILED'; fi;\
+ report "export http_proxy=$http_proxy;\
+ if curl -o test.html www.baidu.com > /dev/null; then echo 'TEST-1 OK'; else echo 'TEST-1 FAILED'; fi;\
if curl -i -r 0-1024 http://www.sina.com.cn -o sina_part1.html > /dev/null; then echo 'TEST-2 OK'; else echo 'TEST-2 FAILED'; fi;\
if curl -v www.baidu.com > /dev/null; then echo 'TEST-3 OK'; else echo 'TEST-3 FAILED'; fi;\
if curl -V > /dev/null; then echo 'TEST-4 OK'; else echo 'TEST-4 FAILED'; fi;\
--
2.9.3.windows.3
More information about the Fuego
mailing list