module ChefSpec::API::HttpRequestMatchers
def delete_http_request(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)-
Parameters:
-
resource_name(String, Regex) --
Other tags:
- Example: Assert that an +http_request+ was _not_ DELETE -
Example: Assert that an +http_request+ was DELETE using a regex -
Example: Assert that an +http_request+ was DELETE with attributes -
Example: Assert that an +http_request+ was DELETE with predicate matchers -
Example: Assert that an +http_request+ was DELETE -
def delete_http_request(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:http_request, :delete, resource_name) end
def get_http_request(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)-
Parameters:
-
resource_name(String, Regex) --
Other tags:
- Example: Assert that an +http_request+ was _not_ GET -
Example: Assert that an +http_request+ was GET using a regex -
Example: Assert that an +http_request+ was GET with attributes -
Example: Assert that an +http_request+ was GET with predicate matchers -
Example: Assert that an +http_request+ was GET -
def get_http_request(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:http_request, :get, resource_name) end
def head_http_request(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)-
Parameters:
-
resource_name(String, Regex) --
Other tags:
- Example: Assert that an +http_request+ was _not_ HEAD -
Example: Assert that an +http_request+ was HEAD using a regex -
Example: Assert that an +http_request+ was HEAD with attributes -
Example: Assert that an +http_request+ was HEAD with predicate matchers -
Example: Assert that an +http_request+ was HEAD -
def head_http_request(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:http_request, :head, resource_name) end
def options_http_request(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)-
Parameters:
-
resource_name(String, Regex) --
Other tags:
- Example: Assert that an +http_request+ was _not_ OPTIONS -
Example: Assert that an +http_request+ was OPTIONS using a regex -
Example: Assert that an +http_request+ was OPTIONS with attributes -
Example: Assert that an +http_request+ was OPTIONS with predicate matchers -
Example: Assert that an +http_request+ was OPTIONS -
def options_http_request(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:http_request, :options, resource_name) end
def post_http_request(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)-
Parameters:
-
resource_name(String, Regex) --
Other tags:
- Example: Assert that an +http_request+ was _not_ POST -
Example: Assert that an +http_request+ was POST using a regex -
Example: Assert that an +http_request+ was POST with attributes -
Example: Assert that an +http_request+ was POST with predicate matchers -
Example: Assert that an +http_request+ was POST -
def post_http_request(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:http_request, :post, resource_name) end
def put_http_request(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)-
Parameters:
-
resource_name(String, Regex) --
Other tags:
- Example: Assert that an +http_request+ was _not_ PUT -
Example: Assert that an +http_request+ was PUT using a regex -
Example: Assert that an +http_request+ was PUT with attributes -
Example: Assert that an +http_request+ was PUT with predicate matchers -
Example: Assert that an +http_request+ was PUT -
def put_http_request(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:http_request, :put, resource_name) end