charm-openstack-dashboard/unit_tests
Carlos Bravo 942e973cf2 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-05-28 21:01:20 -03:00
..
__init__.py Sync libraries & common files prior to freeze 2020-09-27 19:45:00 +01: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_actions.py Use unittest.mock instead of mock 2021-12-15 14:33:48 +00:00
test_horizon_contexts.py Added OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED to config options 2024-05-28 21:01:20 -03:00
test_horizon_hooks.py Run relation_set() in dashboard_relation_changed() on leader 2023-12-12 15:48:09 +00:00
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