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 2021/04/21 16:19:23 UTC
[trafficserver] branch 8.1.x updated: compress.test.py: Reference
config file from Test.RunDirectory (#7726)
This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/8.1.x by this push:
new bb67a5d compress.test.py: Reference config file from Test.RunDirectory (#7726)
bb67a5d is described below
commit bb67a5da852be854a25cd4cd9fb061cfc7c317ec
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Wed Apr 21 11:17:53 2021 -0500
compress.test.py: Reference config file from Test.RunDirectory (#7726)
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)
Conflicts:
tests/gold_tests/pluginTest/compress/compress.test.py
---
tests/gold_tests/pluginTest/compress/compress.test.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/gold_tests/pluginTest/compress/compress.test.py b/tests/gold_tests/pluginTest/compress/compress.test.py
index 65d2890..e5434fd 100644
--- a/tests/gold_tests/pluginTest/compress/compress.test.py
+++ b/tests/gold_tests/pluginTest/compress/compress.test.py
@@ -85,19 +85,22 @@ def oneTs(name, AeHdr1='gzip, deflate, sdch, br'):
'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)
)
for i in range(3):