"""CloudifyIms testcase implementation."""
+from __future__ import division
+
import logging
import os
import time
self.run_blocking_ssh_command(ssh, cmd)
cmd = "sudo chmod 444 /etc/cloudify/cloudify_ims.pem"
self.run_blocking_ssh_command(ssh, cmd)
- cmd = "sudo yum install -y gcc python-devel"
+ # cmd2 is badly unpinned by Cloudify
+ cmd = "sudo yum install -y gcc python-devel python-cmd2"
self.run_blocking_ssh_command(
ssh, cmd, "Unable to install packages on manager")
self.run_blocking_ssh_command(ssh, 'cfy status')
self.details['test_vnf'].update(status='FAIL')
return False
- return True
+ return True if vnf_test_rate > 0 else False
def clean(self):
"""Clean created objects/functions."""