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/30 23:52:00 UTC

[trafficserver] branch 9.2.x updated: Test: Add nameserver to logging client ip test (#9055)

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 84325eaf0 Test: Add nameserver to logging client ip test (#9055)
84325eaf0 is described below

commit 84325eaf0f85c526a1c25fd47fd022643793c1b3
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Tue Aug 30 08:12:43 2022 +0900

    Test: Add nameserver to logging client ip test (#9055)
    
    (cherry picked from commit f4d89db7dff48b45fd4b84ae9a93735cf54a994f)
---
 tests/gold_tests/logging/log-debug-client-ip.test.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/gold_tests/logging/log-debug-client-ip.test.py b/tests/gold_tests/logging/log-debug-client-ip.test.py
index 705ed4920..494b8e170 100644
--- a/tests/gold_tests/logging/log-debug-client-ip.test.py
+++ b/tests/gold_tests/logging/log-debug-client-ip.test.py
@@ -25,11 +25,13 @@ Test log filter.
 ts = Test.MakeATSProcess("ts", enable_cache=False)
 replay_file = "log-filter.replays.yaml"
 server = Test.MakeVerifierServerProcess("server", replay_file)
+nameserver = Test.MakeDNServer("dns", default='127.0.0.1')
 
 ts.Disk.records_config.update({
     'proxy.config.diags.debug.enabled': 2,
     'proxy.config.diags.debug.tags': 'http',
     'proxy.config.diags.debug.client_ip': '127.0.0.1',
+    'proxy.config.dns.nameservers': f"127.0.0.1:{nameserver.Variables.Port}",
 })
 ts.Disk.remap_config.AddLine(
     'map / http://localhost:{}/'.format(server.Variables.http_port)
@@ -53,4 +55,5 @@ ts.Streams.stderr += Testers.ContainsExpression(
 tr = Test.AddTestRun()
 tr.Processes.Default.StartBefore(server)
 tr.Processes.Default.StartBefore(ts)
+tr.Processes.Default.StartBefore(nameserver)
 tr.AddVerifierClientProcess("client-1", replay_file, http_ports=[ts.Variables.port], other_args="--keys test-1")