Skip to content

Commit

Permalink
refactor: move password_events to events.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoppenheimer committed Nov 7, 2024
1 parent bde92a5 commit f57d1e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 113 deletions.
3 changes: 2 additions & 1 deletion src/events/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def __init__(self, charm) -> None:
**DEPENDENCIES # pyright: ignore[reportArgumentType]
),
)
self.password_action_events = ActionEvents(self)
self.action_events = ActionEvents(self)

if not self.charm.state.runs_controller:
self.zookeeper = ZooKeeperHandler(self)

Expand Down
111 changes: 0 additions & 111 deletions src/events/password_actions.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/unit/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_run_password_rotation_while_upgrading(harness: Harness[KafkaCharm], upg
),
patch("managers.auth.AuthManager.add_user"),
):
harness.charm.broker.password_action_events._set_password_action(mock_event)
harness.charm.broker.action_events._set_password_action(mock_event)

if not upgrade_stack:
mock_event.set_results.assert_called()
Expand Down

0 comments on commit f57d1e6

Please sign in to comment.