You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/04/21 21:41:00 UTC
[trafficserver] branch 9.1.x updated: compress.test.py: Reference
config file from Test.RunDirectory (#7725)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.1.x by this push:
new f77eaed compress.test.py: Reference config file from Test.RunDirectory (#7725)
f77eaed is described below
commit f77eaed5c212beaf4354ee17a839a6f0c8250158
Author: Brian Neradt <br...@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.
(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):