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 b89b2d9c55 Update test for TSHttpTxnVerifiedAddr (#12515)
b89b2d9c55 is described below
commit b89b2d9c55d3c43f87e774309146ccf0036acf28
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Wed Sep 17 10:15:15 2025 -0600
Update test for TSHttpTxnVerifiedAddr (#12515)
* Remove settings for TLS
* Use AddLine instead of AddLines
* Add a description
* Remove ssl_multicert_config.AddLine
---
.../pluginTest/tsapi/test_TSHttpTxnVerifiedAddr.test.py | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git
a/tests/gold_tests/pluginTest/tsapi/test_TSHttpTxnVerifiedAddr.test.py
b/tests/gold_tests/pluginTest/tsapi/test_TSHttpTxnVerifiedAddr.test.py
index ae7dcfc2a3..a8b3417bf6 100644
--- a/tests/gold_tests/pluginTest/tsapi/test_TSHttpTxnVerifiedAddr.test.py
+++ b/tests/gold_tests/pluginTest/tsapi/test_TSHttpTxnVerifiedAddr.test.py
@@ -32,14 +32,9 @@ httpbin = Test.MakeHttpBinServer("httpbin")
# ----
# Setup ATS
# ----
-ts = Test.MakeATSProcess("ts", enable_tls=True)
+ts = Test.MakeATSProcess("ts")
-# add ssl materials like key, certificates for the server
-ts.addDefaultSSLFiles()
-
-ts.Disk.remap_config.AddLines([f'map /httpbin/
http://127.0.0.1:{httpbin.Variables.Port}/'])
-
-ts.Disk.ssl_multicert_config.AddLine('dest_ip=* ssl_cert_name=server.pem
ssl_key_name=server.key')
+ts.Disk.remap_config.AddLine(f'map /httpbin/
http://127.0.0.1:{httpbin.Variables.Port}/')
Test.PrepareTestPlugin(
os.path.join(Test.Variables.AtsBuildGoldTestsDir, 'pluginTest', 'tsapi',
'.libs', 'test_TSHttpTxnVerifiedAddr.so'), ts)
@@ -51,15 +46,15 @@ ts.Disk.records_config.update(
{
'proxy.config.diags.debug.enabled': 1,
'proxy.config.diags.debug.tags': 'http|test_TSHttpTxnVerifiedAddr',
- 'proxy.config.ssl.server.cert.path': f'{ts.Variables.SSLDir}',
- 'proxy.config.ssl.server.private_key.path': f'{ts.Variables.SSLDir}'
})
# ----
# Test Cases
# ----
-tr = Test.AddTestRun()
+# The test plugin sets an hard coded IP address as a verified address.
+# The verified address should be read by header_rewrite plugin and returned in
"ip" response header.
+tr = Test.AddTestRun("Test that a verified address is set by a plugin and read
by another plugin")
tr.MakeCurlCommand(f'-v http://127.0.0.1:{ts.Variables.port}/httpbin/get',
ts=ts)
tr.Processes.Default.ReturnCode = 0
tr.Processes.Default.StartBefore(httpbin)