charm-openstack-dashboard/unit_tests
Carlos Bravo ab66a192f4 Added OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED to config options
Starting from Openstack Bobcat (2023.2) Multi Factor Authentication
was added for Horizon. This change introduced a new variable called
OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED, which if set to True will display
a new form requesting for the user's TOTP code for MFA enabled users.

This change provides the missing OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED
config option for the charm, allowing the user to enable from the
charm's configuration. If the value is set to True, the new bobcat
template will render the following values:
OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED = True

AUTHENTICATION_PLUGINS = [
    'openstack_auth.plugin.totp.TotpPlugin',
    'openstack_auth.plugin.password.PasswordPlugin',
    'openstack_auth.plugin.token.TokenPlugin'
]

Closes-Bug: #2058689
Change-Id: Ifedf587356693b58612b1fc4d7404f0f446158ce
2024-03-27 21:57:28 -04:00
..
__init__.py Improve platform mocking 2023-10-24 16:00:53 +01:00
test_actions.py Use unittest.mock instead of mock 2021-12-15 14:33:48 +00:00
test_actions_openstack_upgrade.py Force resolve configs after openstack-upgrade action 2022-03-14 12:12:06 -07:00
test_actions_package_upgrade.py Add package-upgrade action 2023-05-26 16:55:30 +01:00
test_horizon_contexts.py Added OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED to config options 2024-03-27 21:57:28 -04:00
test_horizon_hooks.py Add config for extra regions 2024-03-21 10:50:01 +10:30
test_horizon_utils.py Use unittest.mock instead of mock 2021-12-15 14:33:48 +00:00
test_utils.py Use unittest.mock instead of mock 2021-12-15 14:33:48 +00:00