Rename remove to delete in backup websocket type (#131023)

This commit is contained in:
Paul Bottein
2024-11-20 15:21:31 +01:00
committed by GitHub
parent 791280506d
commit 30c8ff775a
3 changed files with 4 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ async def handle_details(
@websocket_api.require_admin @websocket_api.require_admin
@websocket_api.websocket_command( @websocket_api.websocket_command(
{ {
vol.Required("type"): "backup/remove", vol.Required("type"): "backup/delete",
vol.Required("backup_id"): str, vol.Required("backup_id"): str,
} }
) )

View File

@@ -217,7 +217,7 @@ async def test_delete(
await client.send_json_auto_id({"type": "backup/info"}) await client.send_json_auto_id({"type": "backup/info"})
assert await client.receive_json() == snapshot assert await client.receive_json() == snapshot
await client.send_json_auto_id({"type": "backup/remove", "backup_id": "abc123"}) await client.send_json_auto_id({"type": "backup/delete", "backup_id": "abc123"})
assert await client.receive_json() == snapshot assert await client.receive_json() == snapshot
await client.send_json_auto_id({"type": "backup/info"}) await client.send_json_auto_id({"type": "backup/info"})
@@ -239,7 +239,7 @@ async def test_agent_delete_backup(
with patch.object(BackupAgentTest, "async_delete_backup") as delete_mock: with patch.object(BackupAgentTest, "async_delete_backup") as delete_mock:
await client.send_json_auto_id( await client.send_json_auto_id(
{ {
"type": "backup/remove", "type": "backup/delete",
"backup_id": "abc123", "backup_id": "abc123",
} }
) )

View File

@@ -165,7 +165,7 @@ async def test_agent_delete_backup(
await client.send_json_auto_id( await client.send_json_auto_id(
{ {
"type": "backup/remove", "type": "backup/delete",
"backup_id": backup_id, "backup_id": backup_id,
} }
) )