charm-keystone/unit_tests
Wouter van Bommel 78f2e5e049 Assign username from config if none is given
When hooks/keystone_utils.py:get_admin_passwd is called without the user
parameter, the parameter should default to config('admin-user')

Also changed the log, to use the parameter for consistency with facts.

Don't assume 'admin' is always the username for admin, when setting the
admin password.

Added unittests to check the various options, either specifying the
username via function arguments, or use setting from
config('admin-user').

Change-Id: I02726c07ee4ed1e78ea1bfaa93adc2564a1a8236
Closes-Bug: 1794893
2018-10-02 16:02:01 +02:00
..
__init__.py Convert the charm to Python 3 only 2018-09-21 09:09:47 +00:00
test_actions.py Convert the charm to Python 3 only 2018-09-21 09:09:47 +00:00
test_actions_openstack_upgrade.py Convert the charm to Python 3 only 2018-09-21 09:09:47 +00:00
test_keystone_contexts.py Convert the charm to Python 3 only 2018-09-21 09:09:47 +00:00
test_keystone_hooks.py Convert the charm to Python 3 only 2018-09-21 09:09:47 +00:00
test_keystone_utils.py Assign username from config if none is given 2018-10-02 16:02:01 +02:00
test_scripts_fernet_rotate_and_sync.py Convert the charm to Python 3 only 2018-09-21 09:09:47 +00:00
test_utils.py Convert the charm to Python 3 only 2018-09-21 09:09:47 +00:00