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:10:46 UTC
[trafficserver] branch master updated: Test: Add nameserver to transaction_data_sink test (#9056)
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 83a4c571c Test: Add nameserver to transaction_data_sink test (#9056)
83a4c571c is described below
commit 83a4c571c067c826789d967ff6099f4ac7faa8b4
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Aug 29 08:10:37 2022 +0900
Test: Add nameserver to transaction_data_sink test (#9056)
---
tests/gold_tests/pluginTest/transform/transaction_data_sink.test.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/gold_tests/pluginTest/transform/transaction_data_sink.test.py b/tests/gold_tests/pluginTest/transform/transaction_data_sink.test.py
index 172cc1c87..b31cef5dd 100644
--- a/tests/gold_tests/pluginTest/transform/transaction_data_sink.test.py
+++ b/tests/gold_tests/pluginTest/transform/transaction_data_sink.test.py
@@ -28,11 +28,13 @@ Test.SkipUnless(
replay_file = "transaction-with-body.replays.yaml"
server = Test.MakeVerifierServerProcess("server", replay_file)
+nameserver = Test.MakeDNServer("dns", default='127.0.0.1')
ts = Test.MakeATSProcess("ts", enable_cache=False)
ts.Disk.records_config.update({
'proxy.config.diags.debug.enabled': 1,
'proxy.config.diags.debug.tags': 'txn_data_sink',
+ 'proxy.config.dns.nameservers': f"127.0.0.1:{nameserver.Variables.Port}",
})
ts.Disk.remap_config.AddLine(
f'map / http://localhost:{server.Variables.http_port}/'
@@ -48,4 +50,5 @@ ts.Disk.traffic_out.Content = 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])