You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2022/08/28 23:11:18 UTC

[trafficserver] branch master updated: Test: add nameserver to remap_inc test (#9057)

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

maskit 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 bcfa25711 Test: add nameserver to remap_inc test (#9057)
bcfa25711 is described below

commit bcfa25711fe463acca5ed6f3e3cbed2eecceafa2
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Aug 29 08:11:12 2022 +0900

    Test: add nameserver to remap_inc test (#9057)
---
 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} ; " +