mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-05-07 11:28:38 +00:00

* OS-Agent support * add agent to host feature * Add support for os-agent on devcontainer * Rename core * fix tests * add setter * add cgroup / apparmor * all interfaces added * fix import * Add tests * More tests * Finish tests * reformating xml files * fix doc string * address comments * change return value * fix tests * Update supervisor/dbus/agent/__init__.py Co-authored-by: Joakim Sørensen <joasoe@gmail.com> * Update scripts/supervisor.sh Co-authored-by: Joakim Sørensen <joasoe@gmail.com> Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
18 lines
482 B
Python
18 lines
482 B
Python
"""Test System/Agent dbus interface."""
|
|
|
|
import pytest
|
|
|
|
from supervisor.coresys import CoreSys
|
|
from supervisor.exceptions import DBusNotConnectedError
|
|
|
|
|
|
async def test_dbus_osagent_system_wipe(coresys: CoreSys):
|
|
"""Test wipe data partition on host."""
|
|
|
|
with pytest.raises(DBusNotConnectedError):
|
|
await coresys.dbus.agent.system.schedule_wipe_device()
|
|
|
|
await coresys.dbus.agent.connect()
|
|
|
|
assert await coresys.dbus.agent.system.schedule_wipe_device() is None
|