1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-27 05:57:09 +00:00

Split extra info and add more metrics (#1927)

* Split extra

* Restructure and add info

* adjust test

* Move docker version

* Add name and repository for addons

* Test supervisor version

* Use context instead of extra

* adjust test
This commit is contained in:
Joakim Sørensen
2020-08-15 16:26:01 +02:00
committed by GitHub
parent 620234e708
commit b6509dca1f
2 changed files with 28 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
"""Test sentry data filter."""
from unittest.mock import patch
from supervisor.const import CoreStates
from supervisor.const import SUPERVISOR_VERSION, CoreStates
from supervisor.exceptions import AddonConfigurationError
from supervisor.misc.filter import filter_data
@@ -58,7 +58,8 @@ def test_defaults(coresys):
filtered = filter_data(coresys, SAMPLE_EVENT, {})
assert ["installation_type", "supervised"] in filtered["tags"]
assert filtered["extra"]["supervisor"]["arch"] == "amd64"
assert filtered["contexts"]["host"]["arch"] == "amd64"
assert filtered["contexts"]["versions"]["supervisor"] == SUPERVISOR_VERSION
def test_sanitize(coresys):