Fixed validate_params

This commit is contained in:
Anton Beloglazov 2012-10-02 15:14:38 +10:00
parent 72c6b8eae6
commit 79522b0e2b
2 changed files with 4 additions and 0 deletions

View File

@ -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'])}

View File

@ -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):