Skip to content

Commit

Permalink
[DBAAS] | Add API endpoint for applying cluster patches (#332)
Browse files Browse the repository at this point in the history
* [DBAAS] | Add API endpoint for applying cluster patches

* removed un-necessary changes

* removed unused lines

* Address linter issue

---------

Co-authored-by: v.sharma <v.sharma@digitalocean.com>
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
Co-authored-by: Andrew Starr-Bochicchio <a.starr.b@gmail.com>
  • Loading branch information
4 people authored Oct 15, 2024
1 parent e7d4377 commit e3f5203
Showing 1 changed file with 19 additions and 0 deletions.
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

0 comments on commit e3f5203

Please sign in to comment.