Skip to content

[DPE-10609] Unit tests for the operator-cert manager + handler (4/4)#175

Draft
marceloneppel wants to merge 1 commit into
tls-3-manager-eventsfrom
tls-4-tests
Draft

[DPE-10609] Unit tests for the operator-cert manager + handler (4/4)#175
marceloneppel wants to merge 1 commit into
tls-3-manager-eventsfrom
tls-4-tests

Conversation

@marceloneppel

@marceloneppel marceloneppel commented Jul 1, 2026

Copy link
Copy Markdown
Member

Part 4/4, stacked on tls-3-manager-events. The unit tests for the operator-certificate manager and events handler (the code added in part 3).

What's here

  • tests/unit/test_tls_manager.py: TLSManager live-fetch getters, CA rotation (rotate_peer_ca / clear_peer_ca), push_tls_files, client_tls_files_on_disk, internal-peer CA/cert generation, and the constructor-injection wiring.
  • tests/unit/test_tls_events.py: the TLS events handler — certificate_available / relation_broken routing, CA rotation on peer-cert, defer-until-ready paths.

@marceloneppel marceloneppel force-pushed the tls-3-manager-events branch from 90e7728 to ab4b0c8 Compare July 2, 2026 17:46
@marceloneppel marceloneppel force-pushed the tls-3-manager-events branch from ab4b0c8 to d59f0ac Compare July 2, 2026 18:23
@marceloneppel marceloneppel force-pushed the tls-4-tests branch 2 times, most recently from 5aeebec to 5a9fa05 Compare July 3, 2026 20:27
@marceloneppel marceloneppel force-pushed the tls-3-manager-events branch from d59f0ac to 1f84b9c Compare July 3, 2026 20:27
@marceloneppel marceloneppel changed the title test(tls): unit tests for the operator-cert manager + handler (4/4) [DPE-10609] Unit tests for the operator-cert manager + handler (4/4) Jul 7, 2026
@marceloneppel marceloneppel force-pushed the tls-3-manager-events branch from 1f84b9c to f78c998 Compare July 7, 2026 19:28
Cover TLSManager live-fetch getters, CA rotation, push, and the TLS events
handler (certificate_available / relation_broken / defer paths). Stacked on
the manager+events PR whose code these exercise.

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
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.

1 participant