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

Speedup HA core auth (#2144)

* Speedup HA core auth

* Add reset API call

* use delete

* Add complexe cache logic

* Allow manage api to handle auth reset/cache

* revert to only cache

* add tests

* ignore protected-access for this tests

* fix comment
This commit is contained in:
Pascal Vizeli
2020-10-19 16:38:28 +02:00
committed by GitHub
parent 7a1d85ca2b
commit 9c53caae80
6 changed files with 131 additions and 5 deletions

View File

@@ -107,6 +107,9 @@ async def coresys(loop, docker, dbus, network_manager, aiohttp_client) -> CoreSy
# Mock save json
coresys_obj.ingress.save_data = MagicMock()
coresys_obj.auth.save_data = MagicMock()
coresys_obj.updater.save_data = MagicMock()
coresys_obj.config.save_data = MagicMock()
# Mock test client
coresys_obj.arch._default_arch = "amd64"