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

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


The following commit(s) were added to refs/heads/master by this push:
     new 1815988  Adjust tests to work with more versions of curl.
1815988 is described below

commit 1815988a53e54055685d45aa13d218b3173d0b9f
Author: Susan Hinrichs <[email protected]>
AuthorDate: Tue Jul 31 19:41:34 2018 +0000

    Adjust tests to work with more versions of curl.
---
 tests/gold_tests/h2/gold/priority_0_stderr.gold | 8 ++++----
 tests/gold_tests/h2/http2.test.py               | 3 ++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/gold_tests/h2/gold/priority_0_stderr.gold 
b/tests/gold_tests/h2/gold/priority_0_stderr.gold
index 73b1a77..e40b72d 100644
--- a/tests/gold_tests/h2/gold/priority_0_stderr.gold
+++ b/tests/gold_tests/h2/gold/priority_0_stderr.gold
@@ -1,11 +1,11 @@
 ``
-> GET /bigfile HTTP/2
+> GET /bigfile HTTP/{}
 > Host: ``
 > User-Agent: curl/``
 > Accept: */*
 ``
-< HTTP/2 200 ``
-< server: ATS/``
+< HTTP/2{} 200 ``
+< server:{}ATS/``
 ``
-< content-length: 1048576
+< content-length:{}1048576
 ``
diff --git a/tests/gold_tests/h2/http2.test.py 
b/tests/gold_tests/h2/http2.test.py
index f98c6e2..411590b 100644
--- a/tests/gold_tests/h2/http2.test.py
+++ b/tests/gold_tests/h2/http2.test.py
@@ -129,8 +129,9 @@ tr.Processes.Default.Streams.All = 
"gold/active_timeout.gold"
 tr.StillRunningAfter = server
 
 # Test Case 6: Post with chunked body
+# cannot explicitly specify Transfer-Encoding with a HTTP/2 requests because 
this is against the HTTP/2 spec.  ATS will error with malformed request
 tr = Test.AddTestRun()
-tr.Processes.Default.Command = 'curl -s -k -H "Transfer-Encoding: chunked" -d 
"{0}" https://127.0.0.1:{1}/postchunked'.format( post_body, 
ts.Variables.ssl_port)
+tr.Processes.Default.Command = 'curl -s -k -d "{0}" 
https://127.0.0.1:{1}/postchunked'.format( post_body, ts.Variables.ssl_port)
 tr.Processes.Default.ReturnCode = 0
 tr.Processes.Default.Streams.All = "gold/post_chunked.gold"
 tr.StillRunningAfter = server

Reply via email to