cfme.utils.rest module

Helper functions for tests using REST API.

cfme.utils.rest.assert_response(rest_obj, success=None, http_status=None, results_num=None, task_wait=600)[source]

Asserts that the response HTTP status code and content is as expected.

cfme.utils.rest.create_resource(rest_api, col_name, col_data, col_action='create', substr_search=False)[source]

Creates new resource in collection.

cfme.utils.rest.delete_resources_from_collection(collection, resources, not_found=False, num_sec=10, delay=2)[source]
cfme.utils.rest.get_vms_in_service(rest_api, service)[source]

Gets list of vm entities associated with the service.