mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-12-20 02:18:37 +00:00
Remove Supervisor test using removed --content-trust CLI option
With https://github.com/home-assistant/cli/pull/604, this test now fails as the option has been removed. Remove the test altogether.
This commit is contained in:
@@ -116,27 +116,6 @@ def test_addon_install(shell_json):
|
||||
logger.info("Core SSH add-on info: %s", ssh_info)
|
||||
|
||||
|
||||
@pytest.mark.dependency(depends=["test_supervisor_is_updated"])
|
||||
def test_code_sign(shell_json):
|
||||
# enable Content-Trust
|
||||
assert (
|
||||
shell_json("ha security options --content-trust=true --no-progress --raw-json").get("result") == "ok"
|
||||
), "Content-Trust enable failed"
|
||||
# run Supervisor health check
|
||||
health_check = shell_json("ha resolution healthcheck --no-progress --raw-json")
|
||||
assert health_check.get("result") == "ok", "Supervisor health check failed"
|
||||
logger.info("Supervisor health check result: %s", health_check)
|
||||
# get resolution center info
|
||||
resolution_info = shell_json("ha resolution info --no-progress --raw-json")
|
||||
logger.info("Resolution center info: %s", resolution_info)
|
||||
# check supervisor is healthy
|
||||
unhealthy = resolution_info.get("data").get("unhealthy")
|
||||
assert len(unhealthy) == 0, "Supervisor is unhealthy"
|
||||
# check for unsupported entries
|
||||
unsupported = resolution_info.get("data").get("unsupported")
|
||||
assert len(unsupported) == 0, "Unsupported entries found"
|
||||
|
||||
|
||||
@pytest.mark.dependency(depends=["test_supervisor_is_updated"])
|
||||
def test_create_backup(shell_json, stash):
|
||||
result = shell_json("ha backups new --no-progress --raw-json")
|
||||
|
||||
Reference in New Issue
Block a user