integration test update
This commit is contained in:
parent
e764d4efd7
commit
aa0b65340c
@ -128,15 +128,15 @@ class TestNode(TestCase):
|
|||||||
if [out.strip() for out in ret['stdout']] != ['monitor', 'default', 'compute']:
|
if [out.strip() for out in ret['stdout']] != ['monitor', 'default', 'compute']:
|
||||||
raise Exception("Recipes executed in a wrong order: %s!" \
|
raise Exception("Recipes executed in a wrong order: %s!" \
|
||||||
% str(ret['stdout']))
|
% str(ret['stdout']))
|
||||||
"""
|
|
||||||
# check passwords
|
# check passwords
|
||||||
self.remote.exec_cmd("tar -C %s -xvf /root/nodes.tar.gz" % SAMPLE_REMOTE_PATH)
|
self.remote.exec_cmd("tar -C /root -xvf /root/nodes.tar.gz")
|
||||||
ret = self.remote.exec_cmd("cat %s/nodes/`ls nodes` && echo" % SAMPLE_REMOTE_PATH)
|
ret = self.remote.exec_cmd("cat /root/nodes/`ls nodes` && echo")
|
||||||
solo_json = json.loads(ret.split("\r\n")[1:-1][0])
|
print ret
|
||||||
|
solo_json = json.loads(ret['stdout'][1])
|
||||||
gen_pwd = solo_json['service']['password']
|
gen_pwd = solo_json['service']['password']
|
||||||
if not gen_pwd or gen_pwd == 'password':
|
if not gen_pwd or gen_pwd == 'password':
|
||||||
raise Exception("Password generation failed!")
|
raise Exception("Password generation failed!")
|
||||||
"""
|
|
||||||
|
|
||||||
self.remote.disconnect()
|
self.remote.disconnect()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user