Remove usage of --content-trust CLI option in Supervisor tests (#4371)

With https://github.com/home-assistant/cli/pull/604, there is no
--content-trust option anymore. Remove the call and only check if Supervisor is
healthy and there are no issues. This replaces #4370 which is too broad.

(cherry picked from commit 1d29f6b099d797215f0be22b69c281d3425f6992)
This commit is contained in:
Jan Čermák 2025-10-31 12:29:57 +01:00 committed by Jan Čermák
parent 3cdb465ecf
commit eef29878b4
No known key found for this signature in database
GPG Key ID: A78C897AA3AF012B

View File

@ -117,11 +117,7 @@ def test_addon_install(shell_json):
@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"
def test_supervisor_errors(shell_json):
# 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"