mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Improve backup store in tests (#135974)
This commit is contained in:
parent
754de6f998
commit
02347d5d36
@ -53,7 +53,7 @@ BACKUP_CALL = call(
|
|||||||
)
|
)
|
||||||
|
|
||||||
DEFAULT_STORAGE_DATA: dict[str, Any] = {
|
DEFAULT_STORAGE_DATA: dict[str, Any] = {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": [],
|
"agent_ids": [],
|
||||||
@ -910,7 +910,7 @@ async def test_agents_info(
|
|||||||
{
|
{
|
||||||
"backup": {
|
"backup": {
|
||||||
"data": {
|
"data": {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test-agent"],
|
"agent_ids": ["test-agent"],
|
||||||
@ -934,7 +934,7 @@ async def test_agents_info(
|
|||||||
{
|
{
|
||||||
"backup": {
|
"backup": {
|
||||||
"data": {
|
"data": {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test-agent"],
|
"agent_ids": ["test-agent"],
|
||||||
@ -958,7 +958,7 @@ async def test_agents_info(
|
|||||||
{
|
{
|
||||||
"backup": {
|
"backup": {
|
||||||
"data": {
|
"data": {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test-agent"],
|
"agent_ids": ["test-agent"],
|
||||||
@ -982,7 +982,7 @@ async def test_agents_info(
|
|||||||
{
|
{
|
||||||
"backup": {
|
"backup": {
|
||||||
"data": {
|
"data": {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test-agent"],
|
"agent_ids": ["test-agent"],
|
||||||
@ -1006,7 +1006,7 @@ async def test_agents_info(
|
|||||||
{
|
{
|
||||||
"backup": {
|
"backup": {
|
||||||
"data": {
|
"data": {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test-agent"],
|
"agent_ids": ["test-agent"],
|
||||||
@ -1392,7 +1392,7 @@ async def test_config_schedule_logic(
|
|||||||
"""Test config schedule logic."""
|
"""Test config schedule logic."""
|
||||||
client = await hass_ws_client(hass)
|
client = await hass_ws_client(hass)
|
||||||
storage_data = {
|
storage_data = {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test.test-agent"],
|
"agent_ids": ["test.test-agent"],
|
||||||
@ -1838,7 +1838,7 @@ async def test_config_retention_copies_logic(
|
|||||||
"""Test config backup retention copies logic."""
|
"""Test config backup retention copies logic."""
|
||||||
client = await hass_ws_client(hass)
|
client = await hass_ws_client(hass)
|
||||||
storage_data = {
|
storage_data = {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test-agent"],
|
"agent_ids": ["test-agent"],
|
||||||
@ -2095,7 +2095,7 @@ async def test_config_retention_copies_logic_manual_backup(
|
|||||||
"""Test config backup retention copies logic for manual backup."""
|
"""Test config backup retention copies logic for manual backup."""
|
||||||
client = await hass_ws_client(hass)
|
client = await hass_ws_client(hass)
|
||||||
storage_data = {
|
storage_data = {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test-agent"],
|
"agent_ids": ["test-agent"],
|
||||||
@ -2515,7 +2515,7 @@ async def test_config_retention_days_logic(
|
|||||||
"""Test config backup retention logic."""
|
"""Test config backup retention logic."""
|
||||||
client = await hass_ws_client(hass)
|
client = await hass_ws_client(hass)
|
||||||
storage_data = {
|
storage_data = {
|
||||||
"backups": {},
|
"backups": [],
|
||||||
"config": {
|
"config": {
|
||||||
"create_backup": {
|
"create_backup": {
|
||||||
"agent_ids": ["test-agent"],
|
"agent_ids": ["test-agent"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user