Skip to content

[10.2.x] Fix unit test & AuTest#13341

Open
masaori335 wants to merge 3 commits into
apache:10.2.xfrom
masaori335:asf-10.2.x-prb
Open

[10.2.x] Fix unit test & AuTest#13341
masaori335 wants to merge 3 commits into
apache:10.2.xfrom
masaori335:asf-10.2.x-prb

Conversation

@masaori335

@masaori335 masaori335 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

1. proxy/unit_tests: restore IpAllow::subjects stub definition

It looks like PRB against 10.2.x are broken. #13278 dropped IpAllow::subjects definition, but test_proxy links ts::http (which references it) ahead of ts::proxy (which defines it). GNU ld's single-pass archive scan then leaves the symbol unresolved, breaking the Linux build; macOS links fine.

The master branch avoids this incidentally via test_PluginYAML.cc from the unbackported plugin.yaml migration (#13070).

2. TLS AuTest

Several TLS AuTest assume ssl_multicert.yaml, but 10.2.x still using ssl_multicert.config.

3. Cherry-pick curl 8.20 test update

curl 8.20 test update: curl PROXY destination changes (#13239)

apache#13278 dropped this definition, but test_proxy links ts::http
(which references IpAllow::subjects) ahead of ts::proxy (which
defines it). GNU ld's single-pass archive scan then leaves the
symbol unresolved, breaking the Linux build; macOS links fine.
master avoids this incidentally via test_PluginYAML.cc from the
unbackported plugin.yaml migration (apache#13070).
@masaori335 masaori335 added this to the 10.2.0 milestone Jun 26, 2026
@masaori335 masaori335 requested a review from cmcfarlen June 26, 2026 09:56
@masaori335 masaori335 self-assigned this Jun 26, 2026
@masaori335 masaori335 added the Build work related to build configuration or environment label Jun 26, 2026
These tests were backported from master, where the default cert
config is ssl_multicert.yaml and the harness exposes
ts.Disk.ssl_multicert_yaml. On 10.2.x the default is still legacy
ssl_multicert.config and no ssl_multicert_yaml Disk attribute is
registered, so the tests failed at collection. Switch them to the
ssl_multicert.config one-liner used by the other 10.2.x TLS tests.
@masaori335 masaori335 changed the title [10.2.x] proxy/unit_tests: restore IpAllow::subjects stub definition [10.2.x] Fix unit test & AuTest Jun 26, 2026
curl 8.20 intentionally mirrors --haproxy-clientip into both PROXY
addresses to keep the header address family consistent. The
TSVConnPPInfo AuTest still expected the older destination address, so
jobs with newer curl failed even though ATS preserved the PROXY metadata
it received.

This relaxes the destination-address expectation to accept either curl
behavior while continuing to verify the source address and PROXY
metadata. This also wraps the long curl command strings while leaving
the test's request flow unchanged.

(cherry picked from commit ad0ce02)
@masaori335

Copy link
Copy Markdown
Contributor Author

[approve ci autest 2of4]

@masaori335

Copy link
Copy Markdown
Contributor Author

[approve ci clang-analyzer]

@masaori335

Copy link
Copy Markdown
Contributor Author

[approve ci osx]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build work related to build configuration or environment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants