mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add arch to payload (#51330)
This commit is contained in:
@@ -132,7 +132,9 @@ async def test_send_base_with_supervisor(hass, caplog, aioclient_mock):
|
||||
|
||||
with patch(
|
||||
"homeassistant.components.hassio.get_supervisor_info",
|
||||
side_effect=Mock(return_value={"supported": True, "healthy": True}),
|
||||
side_effect=Mock(
|
||||
return_value={"supported": True, "healthy": True, "arch": "amd64"}
|
||||
),
|
||||
), patch(
|
||||
"homeassistant.components.hassio.get_os_info",
|
||||
side_effect=Mock(return_value={"board": "blue", "version": "123"}),
|
||||
@@ -157,7 +159,10 @@ async def test_send_base_with_supervisor(hass, caplog, aioclient_mock):
|
||||
|
||||
assert f"'uuid': '{MOCK_UUID}'" in caplog.text
|
||||
assert f"'version': '{MOCK_VERSION}'" in caplog.text
|
||||
assert "'supervisor': {'healthy': True, 'supported': True}" in caplog.text
|
||||
assert (
|
||||
"'supervisor': {'healthy': True, 'supported': True, 'arch': 'amd64'}"
|
||||
in caplog.text
|
||||
)
|
||||
assert "'operating_system': {'board': 'blue', 'version': '123'}" in caplog.text
|
||||
assert "'installation_type':" in caplog.text
|
||||
assert "'integration_count':" not in caplog.text
|
||||
@@ -197,6 +202,7 @@ async def test_send_usage_with_supervisor(hass, caplog, aioclient_mock):
|
||||
return_value={
|
||||
"healthy": True,
|
||||
"supported": True,
|
||||
"arch": "amd64",
|
||||
"addons": [{"slug": "test_addon"}],
|
||||
}
|
||||
),
|
||||
@@ -303,6 +309,7 @@ async def test_send_statistics_with_supervisor(hass, caplog, aioclient_mock):
|
||||
return_value={
|
||||
"healthy": True,
|
||||
"supported": True,
|
||||
"arch": "amd64",
|
||||
"addons": [{"slug": "test_addon"}],
|
||||
}
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user