399 lines
7.7 KiB
Text
399 lines
7.7 KiB
Text
# serializer version: 1
|
|
# name: test_agents_download[with_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': None,
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_agents_download[without_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': None,
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_agents_download_exception
|
|
dict({
|
|
'error': dict({
|
|
'code': 'backup_agents_download',
|
|
'message': 'Boom',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_agents_download_unknown_agent
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_agent',
|
|
'message': 'Agent domain.test not found',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_agents_info[with_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': dict({
|
|
'agents': list([
|
|
dict({
|
|
'id': 'domain.test',
|
|
}),
|
|
]),
|
|
'syncing': False,
|
|
}),
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_agents_info[without_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': dict({
|
|
'agents': list([
|
|
dict({
|
|
'id': 'domain.test',
|
|
}),
|
|
]),
|
|
'syncing': False,
|
|
}),
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_agents_list_backups[with_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': list([
|
|
dict({
|
|
'agent_id': 'domain.test',
|
|
'date': '1970-01-01T00:00:00Z',
|
|
'id': 'abc123',
|
|
'name': 'Test',
|
|
'size': 13.37,
|
|
'slug': 'abc123',
|
|
}),
|
|
]),
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_agents_list_backups[without_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': list([
|
|
dict({
|
|
'agent_id': 'domain.test',
|
|
'date': '1970-01-01T00:00:00Z',
|
|
'id': 'abc123',
|
|
'name': 'Test',
|
|
'size': 13.37,
|
|
'slug': 'abc123',
|
|
}),
|
|
]),
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_end[with_hassio-hass_access_token]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'only_supervisor',
|
|
'message': 'Only allowed as Supervisor',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_end[with_hassio-hass_supervisor_access_token]
|
|
dict({
|
|
'id': 1,
|
|
'result': None,
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_end[without_hassio-hass_access_token]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_end[without_hassio-hass_supervisor_access_token]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_end_exception[exception0]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'post_backup_actions_failed',
|
|
'message': '',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_end_exception[exception1]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'post_backup_actions_failed',
|
|
'message': 'Boom',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_end_exception[exception2]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'post_backup_actions_failed',
|
|
'message': 'Boom',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_start[with_hassio-hass_access_token]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'only_supervisor',
|
|
'message': 'Only allowed as Supervisor',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_start[with_hassio-hass_supervisor_access_token]
|
|
dict({
|
|
'id': 1,
|
|
'result': None,
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_start[without_hassio-hass_access_token]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_start[without_hassio-hass_supervisor_access_token]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_start_exception[exception0]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'pre_backup_actions_failed',
|
|
'message': '',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_start_exception[exception1]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'pre_backup_actions_failed',
|
|
'message': 'Boom',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_backup_start_exception[exception2]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'pre_backup_actions_failed',
|
|
'message': 'Boom',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_details[with_hassio-with_backup_content]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_details[with_hassio-without_backup_content]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_details[without_hassio-with_backup_content]
|
|
dict({
|
|
'id': 1,
|
|
'result': dict({
|
|
'backup': dict({
|
|
'date': '1970-01-01T00:00:00.000Z',
|
|
'name': 'Test',
|
|
'path': 'abc123.tar',
|
|
'size': 0.0,
|
|
'slug': 'abc123',
|
|
}),
|
|
}),
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_details[without_hassio-without_backup_content]
|
|
dict({
|
|
'id': 1,
|
|
'result': dict({
|
|
'backup': None,
|
|
}),
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_generate[with_hassio]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_generate[without_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': dict({
|
|
'slug': '27f5c632',
|
|
}),
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_generate[without_hassio].1
|
|
dict({
|
|
'event': dict({
|
|
'done': True,
|
|
'stage': None,
|
|
'success': True,
|
|
}),
|
|
'id': 1,
|
|
'type': 'event',
|
|
})
|
|
# ---
|
|
# name: test_info[with_hassio]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_info[without_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': dict({
|
|
'backing_up': False,
|
|
'backups': list([
|
|
dict({
|
|
'date': '1970-01-01T00:00:00.000Z',
|
|
'name': 'Test',
|
|
'path': 'abc123.tar',
|
|
'size': 0.0,
|
|
'slug': 'abc123',
|
|
}),
|
|
]),
|
|
}),
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_remove[with_hassio]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_remove[without_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': None,
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_restore[with_hassio]
|
|
dict({
|
|
'error': dict({
|
|
'code': 'unknown_command',
|
|
'message': 'Unknown command.',
|
|
}),
|
|
'id': 1,
|
|
'success': False,
|
|
'type': 'result',
|
|
})
|
|
# ---
|
|
# name: test_restore[without_hassio]
|
|
dict({
|
|
'id': 1,
|
|
'result': None,
|
|
'success': True,
|
|
'type': 'result',
|
|
})
|
|
# ---
|