mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 12:29:08 +00:00
Add support for cloud backups in Core (#5438)
* Add support for cloud backups in Core * Test cases and small fixes identified * Add test for partial reload no file failure
This commit is contained in:
@@ -46,13 +46,14 @@ async def test_fixup(
|
||||
suggestions=[SuggestionType.EXECUTE_RELOAD, SuggestionType.EXECUTE_REMOVE],
|
||||
)
|
||||
|
||||
systemd_unit_service.active_state = ["active", "inactive"]
|
||||
systemd_unit_service.active_state = ["active", "inactive", "active", "inactive"]
|
||||
await mount_execute_remove()
|
||||
|
||||
assert coresys.resolution.issues == []
|
||||
assert coresys.resolution.suggestions == []
|
||||
assert coresys.mounts.mounts == []
|
||||
assert systemd_service.StopUnit.calls == [
|
||||
("mnt-data-supervisor-mounts-test.mount", "fail")
|
||||
("mnt-data-supervisor-backup-test.mount", "fail"),
|
||||
("mnt-data-supervisor-mounts-test.mount", "fail"),
|
||||
]
|
||||
coresys.mounts.save_data.assert_called_once()
|
||||
|
||||
Reference in New Issue
Block a user