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

bneradt 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 642003b  compress.test.py: Reference config file from 
Test.RunDirectory (#7725)
642003b is described below

commit 642003be5e6d7354dbf88451ad81e82f89478683
Author: Brian Neradt <brian.ner...@gmail.com>
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.
---
 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