Fixed validate_params
This commit is contained in:
parent
72c6b8eae6
commit
79522b0e2b
@ -220,6 +220,8 @@ def init_state(config):
|
||||
config.get('os_admin_tenant_name'),
|
||||
config.get('os_auth_url'),
|
||||
service_type="compute"),
|
||||
'hashed_username': sha1(config.get('os_admin_user')).hexdigest(),
|
||||
'hashed_password': sha1(config.get('os_admin_password')).hexdigest(),
|
||||
'compute_hosts': parse_compute_hosts(config['compute_hosts'])}
|
||||
|
||||
|
||||
|
@ -152,6 +152,8 @@ class GlobalManager(TestCase):
|
||||
assert state['previous_time'] == 0
|
||||
assert state['db'] == db
|
||||
assert state['nova'] == nova
|
||||
assert state['username'] == sha1('user').hexdigest(),
|
||||
assert state['password'] == sha1('password').hexdigest(),
|
||||
assert state['compute_hosts'] == hosts
|
||||
|
||||
def test_parse_compute_hosts(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user