You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2021/05/04 14:04:31 UTC
[trafficserver] branch master updated: Test: add nameserver to
log-field test. (#7779)
This is an automated email from the ASF dual-hosted git repository.
amc 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 ee99e35 Test: add nameserver to log-field test. (#7779)
ee99e35 is described below
commit ee99e35bcd227fd8dbaec031f62e423b538b1e80
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Tue May 4 09:03:38 2021 -0500
Test: add nameserver to log-field test. (#7779)
---
tests/gold_tests/logging/log-field.test.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/gold_tests/logging/log-field.test.py b/tests/gold_tests/logging/log-field.test.py
index b0a3c90..f898860 100644
--- a/tests/gold_tests/logging/log-field.test.py
+++ b/tests/gold_tests/logging/log-field.test.py
@@ -46,8 +46,12 @@ server.addResponse("sessionlog.json",
"headers": "HTTP/1.1 200 OK\r\nTest: 3\r\nConnection: close\r\nContent-Type: application/json\r\n\r\n",
"body": "Test 3"})
+nameserver = Test.MakeDNServer("dns", default='127.0.0.1')
+
ts.Disk.records_config.update({
'proxy.config.net.connections_throttle': 100,
+ 'proxy.config.dns.nameservers': f"127.0.0.1:{nameserver.Variables.Port}",
+ 'proxy.config.dns.resolv_conf': 'NULL'
})
# setup some config file for this server
ts.Disk.remap_config.AddLine(
@@ -77,6 +81,7 @@ Test.Disk.File(os.path.join(ts.Variables.LOGDIR, 'field-test.log'),
tr = Test.AddTestRun()
# Wait for the micro server
tr.Processes.Default.StartBefore(server)
+tr.Processes.Default.StartBefore(nameserver)
# Delay on readiness of our ssl ports
tr.Processes.Default.StartBefore(Test.Processes.ts)