Skip to content

Commit

Permalink
Merge branch 'main' into database_mocked_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanBakliwal authored Oct 1, 2024
2 parents 02c30b4 + c3e2f8b commit 16fe128
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/mocked/test_databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,23 @@ def test_databases_update_online_migration(mock_client: Client, mock_client_url)
assert expected == resp


@responses.activate
def test_databases_install_update(mock_client: Client, mock_client_url):
"""Mocks the databases install update."""

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_region(mock_client: Client, mock_client_url):
"""Mocks the databases update firewall rules operation."""
Expand Down

0 comments on commit 16fe128

Please sign in to comment.