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:
13
tests/api/test_docker.py
Normal file
13
tests/api/test_docker.py
Normal 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"
|
||||
Reference in New Issue
Block a user