refactor: generate dex-auth configuration outside of update_layer(), use CheckFailedError
Generate dex-auth configuration outside of update_layer() will allow us to have error
handling when checking for certain conditions of the configurations without cluttering
too much the update_layer() method.
This commit also leverages CheckFailedError to set the unit status to blocked when
the static login has been disabled and no connectors configuration has been provieded.
Lastly, this commit introduces a change for raising CheckFailedError in some methods
and handling the exception in main().
build: unpin setuptools and pip versions from charmcraft.yaml file
tests: add test cases for checking helper method and config changes when enabling/disabling static login
tests: add test case for checking BlockedStatus when disabling static login
Fixes #76 in track/2.31
Fixes #155 in track/2.31
IMPORTANT:
Most of this PR is a backport from main to track/2.31
In this PR:
Add enable-password-db charm configuration option to enable/disable static password login. (backport)
refactor: generate dex-auth configuration outside of update_layer(), use CheckFailedError
Generate dex-auth configuration outside of update_layer() will allow us to have error handling when checking for certain conditions of the configurations without cluttering too much the update_layer() method.
This commit also leverages CheckFailedError to set the unit status to blocked when the static login has been disabled and no connectors configuration has been provieded.
Lastly, this commit introduces a change for raising CheckFailedError in some methods and handling the exception in main().
Fixes #76 in track/2.31 Fixes #155 in track/2.31
IMPORTANT:
main
totrack/2.31