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

bcall 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 6f54dfe  Add case were origin returns 404 to x_remap gold test.
6f54dfe is described below

commit 6f54dfeaa3541b1da9ae4d434a010918bb9f1821
Author: Walter Karas <[email protected]>
AuthorDate: Fri Nov 16 20:05:47 2018 -0600

    Add case were origin returns 404 to x_remap gold test.
---
 tests/gold_tests/pluginTest/xdebug/x_remap/four.in         |  4 ++++
 tests/gold_tests/pluginTest/xdebug/x_remap/out.gold        | 11 +++++++++++
 tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.gold    |  2 ++
 tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.test.py |  1 +
 4 files changed, 18 insertions(+)

diff --git a/tests/gold_tests/pluginTest/xdebug/x_remap/four.in 
b/tests/gold_tests/pluginTest/xdebug/x_remap/four.in
new file mode 100644
index 0000000..1982451
--- /dev/null
+++ b/tests/gold_tests/pluginTest/xdebug/x_remap/four.in
@@ -0,0 +1,4 @@
+GET /not_there HTTP/1.1
+Host: two
+X-Debug: X-Remap
+
diff --git a/tests/gold_tests/pluginTest/xdebug/x_remap/out.gold 
b/tests/gold_tests/pluginTest/xdebug/x_remap/out.gold
index e60a8aa..0619bd2 100644
--- a/tests/gold_tests/pluginTest/xdebug/x_remap/out.gold
+++ b/tests/gold_tests/pluginTest/xdebug/x_remap/out.gold
@@ -59,6 +59,17 @@ X-Remap: from=http://three[0-9]+/, 
to=http://127.0.0.1:SERVER_PORT/
 0
 
 ======
+HTTP/1.1 404 Not Found
+Server: ATS/``
+Date: ``
+Age: ``
+Transfer-Encoding: chunked
+Connection: keep-alive
+X-Remap: from=http://two/, to=http://127.0.0.1:SERVER_PORT/
+
+0
+
+======
 HTTP/1.1 200 OK
 Date: ``
 Age: ``
diff --git a/tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.gold 
b/tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.gold
index 55e7f94..d0baa81 100644
--- a/tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.gold
+++ b/tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.gold
@@ -4,6 +4,8 @@ X_DEBUG MISSING
 -
 X_DEBUG MISSING
 -
+X_DEBUG MISSING
+-
 X-Remap, fwd
 -
 X_DEBUG MISSING
diff --git a/tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.test.py 
b/tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.test.py
index e901098..fb070d0 100644
--- a/tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.test.py
+++ b/tests/gold_tests/pluginTest/xdebug/x_remap/x_remap.test.py
@@ -68,6 +68,7 @@ sendMsg('none')
 sendMsg('one')
 sendMsg('two')
 sendMsg('three')
+sendMsg('four')
 sendMsg('fwd1')
 sendMsg('fwd2')
 sendMsg('fwd3')

Reply via email to