Pascal Vizeli
042bdcdf37
Make startup more stable ( #2167 )
2020-10-23 16:48:03 +02:00
Pascal Vizeli
35b626a1c5
Fix gvariant bytes array ( #2162 )
2020-10-22 15:56:32 +02:00
Pascal Vizeli
01064564b4
Fix new version handling with Plugins ( #2159 )
2020-10-22 12:29:53 +02:00
Joakim Sørensen
b513512551
Normalize CPU stats ( #2154 )
...
* Normalize CPU stats
* Change fixture to make it clearer
* guard for 0
* Update supervisor/docker/stats.py
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
* Update stats.py
* Update stats.py
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-10-20 22:26:09 +02:00
Pascal Vizeli
45861617b9
Add test for network docker ( #2153 )
2020-10-20 10:52:16 +02:00
Pascal Vizeli
9c53caae80
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
2020-10-19 16:38:28 +02:00
Pascal Vizeli
7a9aac491e
Use /info for resolution API ( #2136 )
2020-10-16 13:07:02 +02:00
Pascal Vizeli
d119e99001
Resolution: extend type and context ( #2130 )
...
* Resolution: extend type and context
* fix property
* add helper
* fix api
* fix tests
* Fix patch
* finish tests
* Update supervisor/resolution/const.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/const.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Fix type
* fix lint
* Update supervisor/api/resolution.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update API & add more tests
* Update supervisor/api/resolution.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* fix black
* remove azure ci
* fix test
* fix tests
* fix tests
* fix tests p2
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-10-16 12:22:32 +02:00
Joakim Sørensen
02e72726a5
Add issues/suggestion to resolution center / start with diskspace ( #2125 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-10-14 17:14:25 +02:00
Joakim Sørensen
028b170cff
Add resolution manager and unsupported flags ( #2124 )
...
* Add unsupported reason flags
* Restore test_network.py
* Add Resolution manager object
* fix import
2020-10-13 12:54:17 +02:00
Pascal Vizeli
0f60fdd20b
Make api soon available ( #2119 )
...
* Make api soon available
* add more tests
2020-10-12 15:56:29 +02:00
Pascal Vizeli
ac4277cd7b
Return default network connection ( #2115 )
2020-10-12 09:13:27 +02:00
Joakim Sørensen
17559bfc8e
Extract exception message from chain for API errors ( #2100 )
...
* Get message from excepiton chain
* cleanup
2020-10-06 15:53:58 +02:00
Joakim Sørensen
9dc2f43ffb
Handle both cases of bind failures ( #2099 )
2020-10-06 11:28:09 +02:00
Joakim Sørensen
38db375fea
Add docker/info API ( #2095 )
2020-10-06 11:26:56 +02:00
Joakim Sørensen
f35b6d0b00
Set permissions on JSON files ( #2093 )
...
* Set 600 premissions on json files
* Add test
* Fix local tar tests
* Fix tar test in action
* Use pytest fixture for tmp_path in tests
* remove not needed things
2020-10-05 15:14:09 +02:00
Joakim Sørensen
1af90721cc
Addon repositories ( #2071 )
...
* stash
* Add test
* Use executor
* Make remove a coroutine
* Change logging and return
2020-09-22 23:40:36 +02:00
Joakim Sørensen
9274a0fa17
Add uuid to update payload ( #2070 )
...
* Add uuid to update payload
* Add it to test
2020-09-22 23:38:04 +02:00
Pascal Vizeli
0f54824cdb
add one test more
2020-09-17 10:32:41 +00:00
Pascal Vizeli
15a8f40f6f
add more test
2020-09-17 10:07:05 +00:00
Pascal Vizeli
78f63380f2
Handle exception chain on addon boot ( #2063 )
...
* Handle exception chain on addon boot
* fix import
* Add tests
2020-09-17 12:01:48 +02:00
Pascal Vizeli
ca60a69b22
Add timeout handling to gdbus ( #2053 )
...
* Add timeout handling to gdbus
* fix bus name
* make it silent
* fix tests
* add more wraper
2020-09-14 14:22:38 +02:00
Joakim Sørensen
c9db42583b
Capture typeerror exception ( #2052 )
2020-09-14 13:40:11 +02:00
Pascal Vizeli
7be508214a
gvariant: parse byte string ( #2041 )
...
* Parse byte string
* fix lint
2020-09-11 18:36:19 +02:00
Pascal Vizeli
4565b01eeb
Only support IPv4 for DNS ( #2040 )
2020-09-10 23:51:31 +02:00
Pascal Vizeli
40aa5c9caf
Write core state to /run/supervisor & monitor ( #2027 )
...
* Write core state to /run/supervisor & monitor
* Add watchdog
* Add log if they getting started
* fix stale comment
* Fix script
* avoid output
* fix tests
* fix lint
* Update rootfs/etc/services.d/watchdog/run
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-09-08 10:09:41 +02:00
Pascal Vizeli
2321890dde
Full support of bytes arrays on gvariant ( #2024 )
...
* Full support of bytes arrays on gvariant
* Fix overlay ssid
* cleanup ssid
* fix test
2020-09-07 16:34:20 +02:00
Joakim Sørensen
25ea80e169
Fixes issues with managing wireless interfaces ( #2015 )
...
* Fixes issues with managing wireless interfaces
* Add test
* Add back fixture
2020-09-04 20:58:37 +02:00
Joakim Sørensen
f32d17d924
Format API error messages ( #1997 )
2020-08-30 17:53:10 +02:00
Pascal Vizeli
a9a2c35f06
Sentry send env infos ( #1992 )
2020-08-29 11:44:08 +02:00
Joakim Sørensen
98785b00e2
Use jinja for payload generation ( #1985 )
2020-08-28 11:46:22 +02:00
Joakim Sørensen
8d3694884d
Split payload so we can set auto without IP configuration ( #1982 )
...
* Guard for no interfaces
* Host reload on update
* Extract payload
* Check eth and wifi interfaces with a valid ip4 config
* Add tests
* Fix tests
* Move to enum
2020-08-28 10:40:50 +02:00
Pascal Vizeli
a2821a98ad
Fix gvar for dbus if binary is not a string ( #1984 )
2020-08-27 17:04:14 +02:00
Pascal Vizeli
6db4c60f47
Fix byte parser ( #1981 )
2020-08-27 14:31:34 +02:00
Pascal Vizeli
127073c01b
Small cleanup & adjustments for 236 ( #1978 )
2020-08-27 10:33:35 +02:00
Pascal Vizeli
1a3b369dd7
Update black 20.8b1 ( #1976 )
2020-08-26 23:01:29 +02:00
Pascal Vizeli
efcfc1f841
Watchdog for Add-ons ( #1970 )
...
* Watchdog for Add-ons
* Run task
* Extend appliaction watchdog
* fix spell
* Add running tasks
* Add tests
* Fix states
* Update supervisor/misc/tasks.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/test_validate.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Adjust timeout
* change timeout
* Modify tasker
* slots the task object
* fix typing
* Add tests
* fix lint
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-08-26 22:20:35 +02:00
Joakim Sørensen
7a5a01bdcc
Add network to host suppported features ( #1973 )
2020-08-26 14:11:21 +02:00
Joakim Sørensen
9bcb15dbc0
MVP: Add Network Manager context ( #1937 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-08-24 16:58:02 +02:00
Pascal Vizeli
016fd24859
Fix hardware serial list check ( #1943 )
2020-08-18 15:03:30 +02:00
Pascal Vizeli
d315e81ab2
Extend hardware/udev support & usb mapping ( #1940 )
...
* Extend hardware/udev support & usb mapping
* Cleanup list
* new style
* Fix tests
* Fix
* use frozen
* add test for usb
* Fix block disks
* Update API.md
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-08-18 14:25:07 +02:00
Pascal Vizeli
94f112512f
Machine ID for user/sentry & cleanups ( #1928 )
...
* Machine ID for user/sentry & cleanups
* Add tests / fix users
2020-08-15 18:26:20 +02:00
Joakim Sørensen
b6509dca1f
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
2020-08-15 16:26:01 +02:00
Joakim Sørensen
b51f9586c4
Fix attribute in sentry data_filter ( #1920 )
2020-08-14 19:29:10 +02:00
Joakim Sørensen
f5f5f829ac
Add test for denylist ( #1914 )
...
* Add test for denylist
* Mock API in conftest
2020-08-14 18:09:03 +02:00
Joakim Sørensen
84755836c9
Filter AddonConfigurationError from sentry ( #1912 )
2020-08-14 14:06:46 +02:00
Joakim Sørensen
c9585033cb
Sanitize event ( #1908 )
...
* Sanitise event
* No need to remove supervisor token
* cleanup
* Typo
* Review comments
* Move and test
* Move and use hdr
2020-08-14 13:40:14 +02:00
Joakim Sørensen
3b0d0e9928
Add disk total, used, free to host/info API ( #1909 )
2020-08-14 09:24:38 +02:00
Pascal Vizeli
a9bdab4b49
Fix validation issue addon options ( #1898 )
...
* Fix validation issue addon options
* Add some basic tests
* Update supervisor/addons/validate.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-12 14:49:46 +02:00
Pascal Vizeli
ad988f2a24
Add diagnostics support ( #1870 )
...
* Add diagnostics support
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* add aditional data
* Fix handling
* Better states
* Fix opt
* Update supervisor/bootstrap.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Only events on supported systems
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-05 14:54:03 +02:00