def ha(name, iterations=1, progress=False): """Test an OpenStack deployment.""" data.load_config(name) deployment = data.load_deployment(name) test_object = HATest(deployment, progress) local = "./results/{0}/".format(deployment.name) run_cmd("mkdir -p {}".format(local)) for controller in deployment.controllers: ip, user, password = (controller.ipaddress, controller.user, controller.password) remote = "{0}@{1}:~/*.xml".format(user, ip) get_file(ip, user, password, remote, local) for i in xrange(iterations): logger.info(Color.cyan('HA: running iteration {0} of {1}!' .format(i + 1, iterations))) test_object.test(iterations) logger.info(Color.cyan("HA tests completed..."))
def tempest(name, iterations=1): """Test an OpenStack deployment.""" data.load_config(name) deployment = data.load_deployment(name) branch = TempestQuantum.tempest_branch(deployment.branch) if "grizzly" in branch: test_object = TempestQuantum(deployment) else: test_object = TempestNeutron(deployment) local = "./results/{}/".format(deployment.name) run_cmd("mkdir -p {}".format(local)) for controller in deployment.controllers: ip, user, password = (controller.ipaddress, controller.user, controller.password) remote = "{0}@{1}:~/*.xml".format(user, ip) get_file(ip, user, password, remote, local) for i in range(iterations): logger.info(Color.cyan('Tempest: running iteration {0} of {1}!' .format(i + 1, iterations))) test_object.test() logger.info(Color.cyan("Tempest tests completed..."))