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

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


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 9ce39d8  compress.test.py: Reference config file from 
Test.RunDirectory (#7725)
9ce39d8 is described below

commit 9ce39d8cba006824b08e8b1d8dcf101efd2befbf
Author: Brian Neradt <[email protected]>
AuthorDate: Tue Apr 20 15:38:54 2021 -0500

    compress.test.py: Reference config file from Test.RunDirectory (#7725)
    
    In certain environments in which AuTest is run, Test.TestDirectory is
    not readable to the ATS process. Alter the test to reference the
    compress.config file from the sandbox, which is curated to be readable
    by the ATS process.
    
    (cherry picked from commit 642003be5e6d7354dbf88451ad81e82f89478683)
---
 tests/gold_tests/pluginTest/compress/compress.test.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/tests/gold_tests/pluginTest/compress/compress.test.py 
b/tests/gold_tests/pluginTest/compress/compress.test.py
index fdc2097..245c065 100644
--- a/tests/gold_tests/pluginTest/compress/compress.test.py
+++ b/tests/gold_tests/pluginTest/compress/compress.test.py
@@ -102,23 +102,26 @@ ts.Disk.records_config.update({
     'proxy.config.http.normalize_ae': 0,
 })
 
+ts.Setup.Copy("compress.config")
+ts.Setup.Copy("compress2.config")
+
 ts.Disk.remap_config.AddLine(
     'map http://ae-0/ http://127.0.0.1:{}/'.format(server.Variables.Port) +
-    ' @plugin=compress.so 
@pparam={}/compress.config'.format(Test.TestDirectory)
+    ' @plugin=compress.so @pparam={}/compress.config'.format(Test.RunDirectory)
 )
 ts.Disk.remap_config.AddLine(
     'map http://ae-1/ http://127.0.0.1:{}/'.format(server.Variables.Port) +
     ' @plugin=conf_remap.so @pparam=proxy.config.http.normalize_ae=1' +
-    ' @plugin=compress.so 
@pparam={}/compress.config'.format(Test.TestDirectory)
+    ' @plugin=compress.so @pparam={}/compress.config'.format(Test.RunDirectory)
 )
 ts.Disk.remap_config.AddLine(
     'map http://ae-2/ http://127.0.0.1:{}/'.format(server.Variables.Port) +
     ' @plugin=conf_remap.so @pparam=proxy.config.http.normalize_ae=2' +
-    ' @plugin=compress.so 
@pparam={}/compress2.config'.format(Test.TestDirectory)
+    ' @plugin=compress.so 
@pparam={}/compress2.config'.format(Test.RunDirectory)
 )
 ts.Disk.remap_config.AddLine(
     'map http://ae-3/ http://127.0.0.1:{}/'.format(server.Variables.Port) +
-    ' @plugin=compress.so 
@pparam={}/compress.config'.format(Test.TestDirectory)
+    ' @plugin=compress.so @pparam={}/compress.config'.format(Test.RunDirectory)
 )
 
 for i in range(3):

Reply via email to