You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2022/07/06 22:57:13 UTC

[trafficserver] branch 10-Dev updated: Fix the body_buffer AuTest for 10-Dev (#8940)

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

bneradt pushed a commit to branch 10-Dev
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/10-Dev by this push:
     new 0272d2c20 Fix the body_buffer AuTest for 10-Dev (#8940)
0272d2c20 is described below

commit 0272d2c2083cd8298b5eb7451a647b930c12f742
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Wed Jul 6 17:57:07 2022 -0500

    Fix the body_buffer AuTest for 10-Dev (#8940)
    
    The body_buffer test is new to 10-Dev so it wasn't updated with the
    traffic.out changes we made on master for the trafficserver.test.ext
    AuTest extension. This updates the test to expect the stderr output to
    go to traffic.out instead of the Streams.stderr AuTest file.
---
 tests/gold_tests/pluginTest/test_hooks/body_buffer.test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/gold_tests/pluginTest/test_hooks/body_buffer.test.py b/tests/gold_tests/pluginTest/test_hooks/body_buffer.test.py
index 674274fb0..28d1ef2a2 100644
--- a/tests/gold_tests/pluginTest/test_hooks/body_buffer.test.py
+++ b/tests/gold_tests/pluginTest/test_hooks/body_buffer.test.py
@@ -98,10 +98,10 @@ class BodyBufferTest:
             'proxy.config.diags.debug.tags': 'request_buffer',
         })
 
-        self._ts.Streams.stderr = Testers.ContainsExpression(
+        self._ts.Disk.traffic_out.Content = Testers.ContainsExpression(
             rf"request_buffer_plugin gets the request body with length\[{self.content_length_size}\]",
             "Verify that the plugin parsed the content-length request body data.")
-        self._ts.Streams.stderr += Testers.ContainsExpression(
+        self._ts.Disk.traffic_out.Content += Testers.ContainsExpression(
             rf"request_buffer_plugin gets the request body with length\[{self.encoded_chunked_size}\]",
             "Verify that the plugin parsed the chunked request body.")