summaryrefslogtreecommitdiff
path: root/features/steps/request_steps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/request_steps.rb')
-rw-r--r--features/steps/request_steps.rb59
1 files changed, 0 insertions, 59 deletions
diff --git a/features/steps/request_steps.rb b/features/steps/request_steps.rb
index 92a57af280..199ff8d6c1 100644
--- a/features/steps/request_steps.rb
+++ b/features/steps/request_steps.rb
@@ -96,62 +96,3 @@ def call_as_admin(&block)
Chef::Config[:client_key] = orig_client_key
end
end
-
-#When /^I dump the contents of the search index$/ do
-# Given "I dump the contents of the search index"
-#end
-#
-
-# When /^I '(.+)' the path '(.+)'$/ do |http_method, request_uri|
-# begin
-# #if http_method.downcase == 'get'
-# # self.api_response = @rest.get_rest(request_uri)
-# #else
-# #puts "test test test \n\n\n\n\n\n\n"
-# @response = @rest.send("#{http_method}_rest".downcase.to_sym, request_uri)
-# #end
-# puts "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
-# puts @response
-# puts @response['content-type']
-# #puts self.api_response
-# #puts self.api_response.inspect
-# #self.inflated_response = self.api_response
-# @inflated_response = @response#JSON.parse(response.body.to_s)
-# puts "~~~~~~~~INFLATED RESPONSE~~~~~~~~~~~~"
-# puts @inflated_response
-# rescue
-# self.exception = $!
-# end
-# end
-#
-# When /^I '(.+)' the '(.+)' to the path '(.+)'$/ do |http_method, stash_key, request_uri|
-# begin
-# #if http_method.downcase == 'post'
-# # puts "post request"
-# # self.api_response = @rest.post_rest(request_uri, @stash[stash_key])
-# # puts self.api_response
-# #else
-# puts "This is the request -- @stash[stash_key]:"
-# puts @stash[stash_key].to_s
-# @response = @rest.send("#{http_method}_rest".downcase.to_sym, request_uri, @stash[stash_key])
-# #end
-# puts "This is the response:"
-# #puts self.api_response.body.to_s
-# puts @response
-# #self.inflated_response = response
-# @inflated_response = @response#JSON.parse(self.api_response.body.to_s)
-# puts "~~~~~~~~INFLATED RESPONSE~~~~~~~~~~~~"
-# puts @inflated_response
-# rescue
-# self.exception = $!
-# end
-# end
-#
-# When /^I authenticate as '(.+)'$/ do |reg|
-# begin
-# rest.authenticate(reg, 'tclown')
-# rescue
-# self.exception = $!
-# end
-# end
-#