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

[DBAAS] | Add API endpoint for applying cluster patches #332

Merged
merged 9 commits into from
Oct 15, 2024
19 changes: 19 additions & 0 deletions tests/mocked/test_databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,25 @@ def test_databases_update_maintenance_window(mock_client: Client, mock_client_ur
assert resp is None


@responses.activate
def test_databases_update_install_update(mock_client: Client, mock_client_url):
"""Mocks the databases Starts installation of updates."""

cluster_uuid = "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"

responses.add(
responses.PUT,
f"{mock_client_url}/v2/databases/{cluster_uuid}/install_update",
status=204,
)

resp = mock_client.databases.install_update(
cluster_uuid,
)

assert resp is None


@responses.activate
def test_databases_update_online_migration(mock_client: Client, mock_client_url):
"""Mocks the databases update firewall rules operation."""
Expand Down
Loading