Skip to content

test(tls): 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

test(tls): 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

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 (~594 lines)

  • 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.

Split out of part 3 so that PR stays near the ~500-line review target; this is the tip of the TLS stack (the commit consuming charms pin via archive URL). Draft — not ready for review.

(This branch was formerly tls-manager-wiring/#164, repurposed + renamed to tls-4-tests after the rebalance.)

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