-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
enablePasswordDB
charm configuration option to enable/dis…
…able static password login (#149) (#153) * feat: add `enablePasswordDB` charm configuration option to enable/disable static password login (#149) Add enable-password-db charm configuration option to enable/disable static password login. Fixes #76 Co-authored-by: Mohammed Alhabib <[email protected]> * build: unpin setuptools and pip versions from charmcraft.yaml file * 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(). * tests: add test case for checking BlockedStatus when disabling static login * tests: add test cases for checking helper method and config changes when enabling/disabling static login Co-authored-by: Phoevos Kalemkeris <[email protected]> --------- Co-authored-by: Mohammed Alhabib <[email protected]> Co-authored-by: Phoevos Kalemkeris <[email protected]>
- Loading branch information
1 parent
6523d4b
commit fbb2b84
Showing
4 changed files
with
189 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters