Skip to content

92x autest updates#9952

Merged
zwoop merged 5 commits intoapache:9.2.xfrom
bneradt:92x_autest_updates
Jul 5, 2023
Merged

92x autest updates#9952
zwoop merged 5 commits intoapache:9.2.xfrom
bneradt:92x_autest_updates

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented Jul 5, 2023

No description provided.

@bneradt bneradt added the AuTest label Jul 5, 2023
@bneradt bneradt added this to the 9.2.2 milestone Jul 5, 2023
@bneradt bneradt requested a review from SolidWallOfCode as a code owner July 5, 2023 17:01
@bneradt bneradt self-assigned this Jul 5, 2023
@bneradt bneradt requested a review from bryancall as a code owner July 5, 2023 17:01
midchildan and others added 5 commits July 5, 2023 21:42
* Fix forward-non-http autest for OpenSSL 3.0

* Fix tls-verify-override autest for OpenSSL 3.0

* Fix tls_client_versions autest with OpenSSL 3.0

* Update test-nc-s_client.sh

Added an EOF to test-nc-s_client.sh

(cherry picked from commit e6d2fb1)

Conflicts:
      tests/gold_tests/tls/test-nc-s_client.sh
I ran autest on fedora:38 and noticed that all but three passed. This commit updates our autests to work with the newer openssl s_client and Python3.11.

The most significant set of changes come from hyper being abandoned an no longer working on Python 3.11. This converts the ad-hoc clients we had written in hyper to the h2 framework.

(cherry picked from commit 4310521)
The Python httpbin is no longer maintained and has dependency issues upon an old Werkzeug from which we would like to unpin. This converts our tests to using go-httpbin instead of the Python httpbin module.

(cherry picked from commit 796391e)

Conflicts:
      tests/gold_tests/proxy_protocol/gold/test_case_0_stdout.gold
      tests/gold_tests/proxy_protocol/gold/test_case_1_stdout.gold
      tests/gold_tests/proxy_protocol/gold/test_case_2_stdout.gold
      tests/gold_tests/proxy_protocol/gold/test_case_3_stderr.gold
      tests/gold_tests/proxy_protocol/gold/test_case_3_stdout.gold
      tests/gold_tests/proxy_protocol/gold/test_case_4_stderr.gold
      tests/gold_tests/proxy_protocol/gold/test_case_4_stdout.gold
go-httpbin@v2.6.0 fixes /bytes/0 to actually return 0 bytes. This patch
accommodates our autests for that fix and any other behavioral changes.

(cherry picked from commit a9cb994)
The global namespace destructor for the test_tsapi.cc used in
tsapi.test.py would crash on shutdown. This does the cleanup in a
shutdown handler rather than in the global namespace.
@bneradt bneradt force-pushed the 92x_autest_updates branch from 07136ea to ba4573b Compare July 5, 2023 21:43
@zwoop zwoop merged commit 92eebcd into apache:9.2.x Jul 5, 2023
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Sep 26, 2023
* Fix autest for OpenSSL 3.0 (apache#9753)

* Fix forward-non-http autest for OpenSSL 3.0

* Fix tls-verify-override autest for OpenSSL 3.0

* Fix tls_client_versions autest with OpenSSL 3.0

* Update test-nc-s_client.sh

Added an EOF to test-nc-s_client.sh

(cherry picked from commit e6d2fb1)

Conflicts:
      tests/gold_tests/tls/test-nc-s_client.sh

* Fix autests for fedora 38 (apache#9881)

I ran autest on fedora:38 and noticed that all but three passed. This commit updates our autests to work with the newer openssl s_client and Python3.11.

The most significant set of changes come from hyper being abandoned an no longer working on Python 3.11. This converts the ad-hoc clients we had written in hyper to the h2 framework.

(cherry picked from commit 4310521)

* Replace httpbin with go-httpbin (apache#9475)

The Python httpbin is no longer maintained and has dependency issues upon an old Werkzeug from which we would like to unpin. This converts our tests to using go-httpbin instead of the Python httpbin module.

(cherry picked from commit 796391e)

Conflicts:
      tests/gold_tests/proxy_protocol/gold/test_case_0_stdout.gold
      tests/gold_tests/proxy_protocol/gold/test_case_1_stdout.gold
      tests/gold_tests/proxy_protocol/gold/test_case_2_stdout.gold
      tests/gold_tests/proxy_protocol/gold/test_case_3_stderr.gold
      tests/gold_tests/proxy_protocol/gold/test_case_3_stdout.gold
      tests/gold_tests/proxy_protocol/gold/test_case_4_stderr.gold
      tests/gold_tests/proxy_protocol/gold/test_case_4_stdout.gold

* Updates for the new go-httpbin v2.6.0 release. (apache#9633)

go-httpbin@v2.6.0 fixes /bytes/0 to actually return 0 bytes. This patch
accommodates our autests for that fix and any other behavioral changes.

(cherry picked from commit a9cb994)

* Fix test_tsapi.cc shutdown crash

The global namespace destructor for the test_tsapi.cc used in
tsapi.test.py would crash on shutdown. This does the cleanup in a
shutdown handler rather than in the global namespace.

---------

Co-authored-by: midchildan <git@midchildan.org>
(cherry picked from commit 92eebcd)
@bneradt bneradt deleted the 92x_autest_updates branch June 17, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants