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 2022/08/29 22:35:24 UTC
[trafficserver] branch 9.2.x updated: Test: add nameserver to remap_inc test (#9057)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new 70f18c452 Test: add nameserver to remap_inc test (#9057)
70f18c452 is described below
commit 70f18c452abae2dea7777ece6de7c4f05004b6b5
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Aug 29 08:11:12 2022 +0900
Test: add nameserver to remap_inc test (#9057)
(cherry picked from commit bcfa25711fe463acca5ed6f3e3cbed2eecceafa2)
---
tests/gold_tests/traffic_ctl/remap_inc/remap_inc.test.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/gold_tests/traffic_ctl/remap_inc/remap_inc.test.py b/tests/gold_tests/traffic_ctl/remap_inc/remap_inc.test.py
index 852b0f95e..44391cbe5 100644
--- a/tests/gold_tests/traffic_ctl/remap_inc/remap_inc.test.py
+++ b/tests/gold_tests/traffic_ctl/remap_inc/remap_inc.test.py
@@ -25,6 +25,7 @@ Test.Setup.Copy("wait_reload.sh")
# Define ATS and configure
ts = Test.MakeATSProcess("ts", command="traffic_manager", enable_cache=False)
+nameserver = Test.MakeDNServer("dns", default='127.0.0.1')
ts.Disk.File(ts.Variables.CONFIGDIR + "/test.inc", id="test_cfg", typename="ats:config")
ts.Disk.test_cfg.AddLine(
@@ -46,10 +47,12 @@ ts.Disk.remap_config.AddLine(
ts.Disk.records_config.update({
'proxy.config.diags.debug.enabled': 1,
'proxy.config.diags.debug.tags': 'regex_remap|url_rewrite|plugin_factory',
+ 'proxy.config.dns.nameservers': f"127.0.0.1:{nameserver.Variables.Port}",
})
tr = Test.AddTestRun("Start TS, then update test.inc")
tr.Processes.Default.StartBefore(Test.Processes.ts)
+tr.Processes.Default.StartBefore(nameserver)
test_inc_path = ts.Variables.CONFIGDIR + "/test.inc"
tr.Processes.Default.Command = (
f"rm -f {test_inc_path} ; " +