ha-supervisor/tests
Florian Bachmann acc0e5c989
Allows the supervisor to send a session's user to addon with header X-Remote-User (#4152)
* Working draft for x-remote-user

* Renames prop to remote_user

* Allows to set in addon description whether it requests the username

* Fixes addon-options schema

* Sends user ID instead of username to addons

* Adds tests

* Removes configurability of remote-user forwarding

* Update const.py

* Also adds username header

* Fetches full user info object from homeassistant

* Cleaner validation and dataclasses

* Fixes linting

* Fixes linting

* Tries to fix test

* Updates tests

* Updates tests

* Updates tests

* Updates tests

* Updates tests

* Updates tests

* Updates tests

* Updates tests

* Resolves PR comments

* Linting

* Fixes tests

* Update const.py

* Removes header keys if not required

* Moves ignoring user ID headers if no session_data is given

* simplify

* fix lint with new job

---------

Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2023-08-22 10:11:13 +02:00
..
addons Always stop the addon before restoring it (#4492) 2023-08-15 13:08:45 +02:00
api Allows the supervisor to send a session's user to addon with header X-Remote-User (#4152) 2023-08-22 10:11:13 +02:00
backups Temporary operations for backups take place in destination folder (#4452) 2023-07-21 22:49:31 -04:00
dbus Fallback on interface name if path is missing (#4479) 2023-08-07 20:53:25 -04:00
dbus_service_mocks Use udev path instead of mac or name for nm match (#4476) 2023-08-04 17:39:35 -04:00
discovery Add Wyoming Protocol add-on/integration discovery (#4248) 2023-04-19 11:35:05 -04:00
docker Add job group execution limit option (#4457) 2023-08-08 16:49:17 -04:00
fixtures List discovery only includes healthy addons (#4451) 2023-07-22 23:27:42 +02:00
hardware Bump black from 21.12b0 to 22.1.0 (#3425) 2022-02-10 14:13:40 +01:00
homeassistant Add job group execution limit option (#4457) 2023-08-08 16:49:17 -04:00
host Use udev path instead of mac or name for nm match (#4476) 2023-08-04 17:39:35 -04:00
jobs Add job names and references everywhere (#4495) 2023-08-21 09:15:37 +02:00
misc Add mount to supported features (#4301) 2023-05-23 14:00:15 +02:00
mounts Allow all characters in mount credentials (#4399) 2023-06-22 15:55:13 -04:00
os Add mount to supported features (#4301) 2023-05-23 14:00:15 +02:00
plugins Add job group execution limit option (#4457) 2023-08-08 16:49:17 -04:00
resolution Reduce executor code for docker (#4438) 2023-07-18 11:39:39 -04:00
security Add integrity check (#3608) 2022-04-30 10:14:43 +02:00
services Fix services validation & add tests (#1456) 2020-01-27 21:38:26 +01:00
store Address addon storage race condition (#4481) 2023-08-10 15:24:43 -04:00
utils Disable codenotary until rework of cosign (#4217) 2023-03-31 11:11:29 +02:00
__init__.py Rename Hass.io -> Supervisor (#1522) 2020-02-21 17:55:41 +01:00
common.py Use session dbus mocks for all tests (#4198) 2023-03-21 07:30:31 +01:00
conftest.py Add job group execution limit option (#4457) 2023-08-08 16:49:17 -04:00
const.py Use deepmerge for options (#3162) 2021-09-29 09:37:04 +02:00
test_arch.py Add Home Assistant Green (#4486) 2023-08-10 17:31:37 +02:00
test_auth.py Speedup HA core auth (#2144) 2020-10-19 16:38:28 +02:00
test_bus.py Support dynamic device access cgroup (#3421) 2022-01-26 16:48:23 +01:00
test_core.py Time handling (#2901) 2021-06-09 09:38:32 +02:00
test_coresys.py Use session dbus mocks for all tests (#4198) 2023-03-21 07:30:31 +01:00
test_ingress.py Allows the supervisor to send a session's user to addon with header X-Remote-User (#4152) 2023-08-22 10:11:13 +02:00
test_main.py Supervisor container startup health function (#2214) 2020-11-03 16:36:10 +01:00
test_supervisor.py Add support for apparmor channels (#4408) 2023-06-27 19:12:42 +02:00
test_updater.py OS latest version set from upgrade path (#3632) 2022-05-11 13:14:28 +02:00
test_validate.py Extend container image name validator (#4480) 2023-08-10 12:58:33 -04:00