Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bootstrapping after TLS enabled/disabled #58

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def _restart(self, *, tls: bool) -> None:
"""Restart MySQL Router to enable or disable TLS."""
logger.debug("Restarting MySQL Router")
assert self._container.mysql_router_service_enabled is True
self._bootstrap_router(tls=tls)
self._container.update_mysql_router_service(enabled=True, tls=tls)
logger.debug("Restarted MySQL Router")
self._charm.wait_until_mysql_router_ready()
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ deps =
pytest-xdist
; `pytest-cov` used instead of `coverage` for `pytest-xdist` support
pytest-cov
# Workaround for https://github.com/canonical/ops-scenario/issues/48
ops<2.5
ops-scenario
-r {tox_root}/requirements.txt
commands =
Expand Down
Loading