def clean_services_for_node(controller, node): services_stdout = nova.run_nova_cmd( ["nova", "service-list", "--host", node.data['hostname']], controller) services = nova.nova_stdout_parser(services_stdout) for service in services: nova.run_nova_cmd( ["nova", "service-delete", service['Id']], controller, output=False)
def test_nova_stdout_parser(cmd_output, expected_result): assert expected_result == nova.nova_stdout_parser(cmd_output)