You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/03/05 00:23:00 UTC

[trafficserver] 10/14: tweak test to be more stable

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 8b9888ffcf9f90e3504ef7c3a22c2dc9684f3646
Author: Jason <dr...@live.com>
AuthorDate: Wed Mar 1 09:50:34 2017 -0600

    tweak test to be more stable
---
 .../pluginTest/header_rewrite/gold/header_rewrite-303.gold     |  2 +-
 .../pluginTest/header_rewrite/header_rewrite.test.py           |  2 +-
 tests/gold_tests/remap/gold/remap-200.gold                     |  2 +-
 tests/gold_tests/remap/remap_http.test.py                      | 10 +++++-----
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/gold_tests/pluginTest/header_rewrite/gold/header_rewrite-303.gold b/tests/gold_tests/pluginTest/header_rewrite/gold/header_rewrite-303.gold
index 5a0be7f..5d55f9e 100644
--- a/tests/gold_tests/pluginTest/header_rewrite/gold/header_rewrite-303.gold
+++ b/tests/gold_tests/pluginTest/header_rewrite/gold/header_rewrite-303.gold
@@ -3,7 +3,7 @@
 > Host: www.example.com``
 > User-Agent: curl/``
 > Accept: */*
-> Proxy-Connection: Keep-Alive
+> Proxy-Connection: keep-alive
 ``
 < HTTP/1.1 303 See Other
 < Date: ``
diff --git a/tests/gold_tests/pluginTest/header_rewrite/header_rewrite.test.py b/tests/gold_tests/pluginTest/header_rewrite/header_rewrite.test.py
index 5c4590f..c9d6d73 100644
--- a/tests/gold_tests/pluginTest/header_rewrite/header_rewrite.test.py
+++ b/tests/gold_tests/pluginTest/header_rewrite/header_rewrite.test.py
@@ -54,7 +54,7 @@ ts.Disk.remap_config.AddLine(
 
 # call localhost straight
 tr=Test.AddTestRun()
-tr.Processes.Default.Command='curl --proxy 127.0.0.1:{0} "http://www.example.com" --verbose'.format(ts.Variables.port)
+tr.Processes.Default.Command='curl --proxy 127.0.0.1:{0} "http://www.example.com" -H "Proxy-Connection: keep-alive" --verbose'.format(ts.Variables.port)
 tr.Processes.Default.ReturnCode=0
 # time delay as proxy.config.http.wait_for_cache could be broken
 tr.Processes.Default.StartBefore(server,ready=When.PortOpen(server.Variables.Port))
diff --git a/tests/gold_tests/remap/gold/remap-200.gold b/tests/gold_tests/remap/gold/remap-200.gold
index e4f5eb9..ec2f310 100644
--- a/tests/gold_tests/remap/gold/remap-200.gold
+++ b/tests/gold_tests/remap/gold/remap-200.gold
@@ -3,7 +3,7 @@
 > Host: www.example.com``
 > User-Agent: curl/``
 > Accept: */*
-> Proxy-Connection: Keep-Alive
+> Proxy-Connection: keep-alive
 ``
 < HTTP/1.1 200 OK
 < Date: ``
diff --git a/tests/gold_tests/remap/remap_http.test.py b/tests/gold_tests/remap/remap_http.test.py
index 2f6e007..a6fa9cb 100644
--- a/tests/gold_tests/remap/remap_http.test.py
+++ b/tests/gold_tests/remap/remap_http.test.py
@@ -60,31 +60,31 @@ tr.StillRunningAfter=server
 
 # www.example.com host
 tr=Test.AddTestRun()
-tr.Processes.Default.Command='curl --proxy 127.0.0.1:{0} "http://www.example.com" --verbose'.format(ts.Variables.port)
+tr.Processes.Default.Command='curl --proxy 127.0.0.1:{0} "http://www.example.com"  -H "Proxy-Connection: keep-alive" --verbose'.format(ts.Variables.port)
 tr.Processes.Default.ReturnCode=0
 tr.Processes.Default.Streams.stderr="gold/remap-200.gold"
 
 # www.example.com:80 host
 tr=Test.AddTestRun()
-tr.Processes.Default.Command='curl  --proxy 127.0.0.1:{0} "http://www.example.com:80/" --verbose'.format(ts.Variables.port)
+tr.Processes.Default.Command='curl  --proxy 127.0.0.1:{0} "http://www.example.com:80/"  -H "Proxy-Connection: keep-alive" --verbose'.format(ts.Variables.port)
 tr.Processes.Default.ReturnCode=0
 tr.Processes.Default.Streams.stderr="gold/remap-200.gold"
 
 # www.example.com:8080 host
 tr=Test.AddTestRun()
-tr.Processes.Default.Command='curl  --proxy 127.0.0.1:{0} "http://www.example.com:8080" --verbose'.format(ts.Variables.port)
+tr.Processes.Default.Command='curl  --proxy 127.0.0.1:{0} "http://www.example.com:8080"  -H "Proxy-Connection: keep-alive" --verbose'.format(ts.Variables.port)
 tr.Processes.Default.ReturnCode=0
 tr.Processes.Default.Streams.stderr="gold/remap-200.gold"
 
 # no rule for this
 tr=Test.AddTestRun()
-tr.Processes.Default.Command='curl  --proxy 127.0.0.1:{0} "http://www.test.com/" --verbose'.format(ts.Variables.port)
+tr.Processes.Default.Command='curl  --proxy 127.0.0.1:{0} "http://www.test.com/"  -H "Proxy-Connection: keep-alive" --verbose'.format(ts.Variables.port)
 tr.Processes.Default.ReturnCode=0
 tr.Processes.Default.Streams.stderr="gold/remap-404.gold"
 
 # bad port
 tr=Test.AddTestRun()
-tr.Processes.Default.Command='curl  --proxy 127.0.0.1:{0} "http://www.example.com:1234/" --verbose'.format(ts.Variables.port)
+tr.Processes.Default.Command='curl  --proxy 127.0.0.1:{0} "http://www.example.com:1234/"  -H "Proxy-Connection: keep-alive" --verbose'.format(ts.Variables.port)
 tr.Processes.Default.ReturnCode=0
 tr.Processes.Default.Streams.stderr="gold/remap-404.gold"
 

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.