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 f7b40bef8 Test: add nameserver to proxy_serve_stale test (#9059)
(#9070)
f7b40bef8 is described below
commit f7b40bef819299b185c235423a1b874386b48b23
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Thu Sep 1 02:31:36 2022 +0900
Test: add nameserver to proxy_serve_stale test (#9059) (#9070)
* Test: add nameserver to proxy_serve_stale test
* autopep8
(cherry picked from commit 44f2eaf12d00438bc71261ea6fceb61d8a5df33c)
Conflicts:
tests/gold_tests/proxy_protocol/proxy_serve_stale.test.py
---
tests/gold_tests/proxy_protocol/proxy_serve_stale.test.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/gold_tests/proxy_protocol/proxy_serve_stale.test.py
b/tests/gold_tests/proxy_protocol/proxy_serve_stale.test.py
index e012d394f..eabc31570 100644
--- a/tests/gold_tests/proxy_protocol/proxy_serve_stale.test.py
+++ b/tests/gold_tests/proxy_protocol/proxy_serve_stale.test.py
@@ -37,6 +37,9 @@ class ProxyServeStaleTest:
self.server = Test.MakeVerifierServerProcess(
"server",
self.single_transaction_replay)
+ self.nameserver = Test.MakeDNServer(
+ "dns",
+ default='127.0.0.1')
def _configure_ts(self):
self.ts_child = Test.MakeATSProcess("ts_child")
@@ -48,6 +51,7 @@ class ProxyServeStaleTest:
'proxy.config.http.parent_proxy.self_detect': 0,
'proxy.config.diags.debug.enabled': 1,
'proxy.config.diags.debug.tags': 'http|dns|parent_proxy',
+ 'proxy.config.dns.nameservers':
f"127.0.0.1:{self.nameserver.Variables.Port}",
})
self.ts_child.Disk.parent_config.AddLine(
f'dest_domain=. parent="{self.ts_parent_hostname}"
round_robin=consistent_hash go_direct=false'
@@ -67,6 +71,7 @@ class ProxyServeStaleTest:
tr.Processes.Default.ReturnCode = 0
tr.StillRunningAfter = self.ts_child
tr.Processes.Default.StartBefore(self.server)
+ tr.Processes.Default.StartBefore(self.nameserver)
tr.Processes.Default.StartBefore(self.ts_child)