Skip to content

Fix ssl_multicert.yaml usage in two 10.2.x autests - #13448

Merged
cmcfarlen merged 1 commit into
apache:10.2.xfrom
cmcfarlen:10.2.x-fix-ssl-multicert-tests
Jul 29, 2026
Merged

Fix ssl_multicert.yaml usage in two 10.2.x autests#13448
cmcfarlen merged 1 commit into
apache:10.2.xfrom
cmcfarlen:10.2.x-fix-ssl-multicert-tests

Conversation

@cmcfarlen

Copy link
Copy Markdown
Contributor

Two autests fail at load time on 10.2.x because they use the
ssl_multicert.yaml Disk API, which the release-branch autest harness
does not provide (it registers ssl_multicert.config):

  • gold_tests/h2/http2_max_active_streams.test.py
  • gold_tests/tls/tls_secret_update_default.test.py

Both raise AttributeError: 'Disk' object has no attribute 'ssl_multicert_yaml' before running. They were backported (via #13386
and #13342) without adapting the config-file format to 10.2.x.

This converts both to the flat ssl_multicert.config form already used
throughout the branch (e.g. h2origin.test.py,
tls_check_dual_cert_selection2.test.py), including the reload touch
in the TLS test. No product-code changes.

Copilot AI review requested due to automatic review settings July 29, 2026 14:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes two AuTest gold tests on the 10.2.x branch that currently fail at import/load time by switching them from the unavailable ssl_multicert.yaml Disk API to the branch-supported ssl_multicert.config format and Disk API.

Changes:

  • Convert tls_secret_update_default.test.py to write ssl_multicert.config entries and touch the correct file for reload.
  • Convert http2_max_active_streams.test.py to write ssl_multicert.config entries instead of YAML.
  • Keep the changes scoped to test configuration (no product-code changes).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/gold_tests/tls/tls_secret_update_default.test.py Switch multicert setup + reload touch from YAML to ssl_multicert.config format for 10.2.x AuTest harness compatibility.
tests/gold_tests/h2/http2_max_active_streams.test.py Replace YAML multicert setup with a single ssl_multicert.config line to avoid missing Disk API on 10.2.x.

Comment thread tests/gold_tests/tls/tls_secret_update_default.test.py
http2_max_active_streams and tls_secret_update_default used the
ssl_multicert.yaml Disk API, which the 10.2.x autest harness does not
provide -- it registers ssl_multicert.config -- so both tests threw
AttributeError at load time. Convert them to the flat
ssl_multicert.config form already used by other tests on the branch.

For tls_secret_update_default this also updates the reload touch target
and the diags.log wait condition, which looked for "ssl_multicert.yaml
finished loading"; on 10.2.x the SSL loader logs the actual filename
(ssl_multicert.config), so the reload wait would otherwise never become
ready.

These tests were backported (via apache#13386 and apache#13342) without adapting
their config-file format to the release branch.
@cmcfarlen
cmcfarlen force-pushed the 10.2.x-fix-ssl-multicert-tests branch from 116735a to 8f0ff34 Compare July 29, 2026 14:51
@JosiahWI

Copy link
Copy Markdown
Contributor

[approve ci autest 1]

@cmcfarlen

Copy link
Copy Markdown
Contributor Author

The failing test is fixed in another PR so I'm going to merge this and confirm the other PR is clean.

@cmcfarlen
cmcfarlen merged commit 787ac6f into apache:10.2.x Jul 29, 2026
14 of 15 checks passed
@cmcfarlen
cmcfarlen deleted the 10.2.x-fix-ssl-multicert-tests branch July 29, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants