1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Add docker/info API (#2095)

This commit is contained in:
Joakim Sørensen
2020-10-06 11:26:56 +02:00
committed by GitHub
parent f35b6d0b00
commit 38db375fea
5 changed files with 73 additions and 19 deletions

13
tests/api/test_docker.py Normal file
View File

@@ -0,0 +1,13 @@
"""Test Docker API."""
import pytest
@pytest.mark.asyncio
async def test_api_docker_info(api_client):
"""Test docker info api."""
resp = await api_client.get("/docker/info")
result = await resp.json()
assert result["data"]["logging"] == "journald"
assert result["data"]["storage"] == "overlay2"
assert result["data"]["version"] == "1.0.0"