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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user