Mike Degatano
0e8ace949a
Fix mypy issues in plugins and resolution ( #5946 )
...
* Fix mypy issues in plugins
* Fix mypy issues in resolution module
* fix misses in resolution check
* Fix signatures on evaluate methods
* nitpick fix suggestions
2025-06-16 14:12:47 -04:00
Stefan Agner
b9bbb99f37
Fix pytests to make them run in isolation ( #5878 )
2025-05-12 12:37:09 +02:00
Mike Degatano
324b059970
Move write of core state to executor ( #5720 )
2025-03-04 17:49:53 +01:00
Stefan Agner
f6faa18409
Bump pre-commit ruff to 0.5.7 and reformat ( #5242 )
...
It seems that the codebase is not formatted with the latest ruff
version. This PR reformats the codebase with ruff 0.5.7.
2024-08-13 20:53:56 +02:00
Joakim Sørensen
4f9e646b4c
Fix addon_pwned enabled setter ( #2952 )
...
* Fix addon_pwned enabled setter
* whatever
* adjust
2021-06-14 11:33:53 +02:00
Pascal Vizeli
b59f741162
Validate secrets on options/validate UI check ( #2854 )
...
* Validate secrets on options/validate UI check
* Allow schema as payload
* Update supervisor/api/addons.py
Co-authored-by: Franck Nijhof <git@frenck.dev >
* Offload into a module
* using new function
* disable check
* fix options value
* generated return value
* add debug logging
Co-authored-by: Franck Nijhof <git@frenck.dev >
2021-05-10 14:27:50 +02:00
Pascal Vizeli
82f76f60bd
Force / Enforce security if service is not available ( #2744 )
...
* Force / Enforce security if service is not available
* add options
* Add tests
* force security on test
* force security add-on validation
* Adjust style like codenotary
* Different exception type for backend error
* Adjust messages
* add comments
* ditch, not needed
* Address comment
* fix build
2021-03-24 14:36:23 +01:00
Joakim Sørensen
73849b7468
Check management ( #2703 )
...
* Check management
* Add test
* Don't allow disable core_security
* options and decorator
* streamline config handling
* streamline v2
* fix logging
* Add tests
* Fix test
* cleanup v1
* fix api
* Add more test
* Expose option also for cli
* address comments from Paulus
* Address second comment
* Update supervisor/resolution/checks/base.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
* fix lint
* Fix black
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch >
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2021-03-12 11:32:56 +01:00
Pascal Vizeli
33385b46a7
Fix add-on is not installed anymore ( #2656 )
...
* Fix add-on is not installed anymore
* Fix and add tests
2021-03-01 17:19:38 +01:00
Pascal Vizeli
31f5033dca
Add throttle to job execution ( #2631 )
...
* Add throttle to job execution
* fix unittests
* Add tests
* address comments
* add comment
* better on __init__
* New text
* Simplify logic
2021-02-25 23:29:03 +01:00
Pascal Vizeli
85d527bfbc
Add check for pwned secrets to resolution center ( #2614 )
...
* Add check for pwned secrets to resolution center
* restructure check
* add checks
* Add test
* Add test
* reload secrets before check
* simplify
* create notification
* Use own exceptions
* Check on startup
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <git@frenck.dev >
* Add job decorator
* Update supervisor/resolution/notify.py
Co-authored-by: Franck Nijhof <git@frenck.dev >
* Update supervisor/utils/pwned.py
Co-authored-by: Franck Nijhof <git@frenck.dev >
Co-authored-by: Franck Nijhof <git@frenck.dev >
2021-02-25 09:37:45 +01:00