cfme.fixtures.authentication module¶
-
cfme.fixtures.authentication.
auth_user_data
(auth_provider, user_type)[source]¶ Grab user data attrdict from auth provider’s user data in yaml
- Expected formatting of yaml containing user data:
test_users: -
username: ldapuser2 password: mysecretpassworddontguess fullname: Ldap User2 groupname: customgroup1 providers:
- freeipa01
- user_types:
- uid
Only include user data for users where the user_type matches that under test
Assert the data isn’t empty, and skip the test if so
-
cfme.fixtures.authentication.
configure_auth
(appliance, auth_mode, auth_provider, user_type, request)[source]¶ Given auth_mode, auth_provider, user_type parametrization, configure auth for login testing.
Saves original auth settings Configures external or internal auth modes Separate freeipa / openldap config methods and finalizers Restores original auth settings after yielding