@@ -96,62 +96,3 @@ def call_as_admin(&block)
9696Chef ::Config [ :client_key ] = orig_client_key
9797end
9898end
99-
100- #When /^I dump the contents of the search index$/ do
101- # Given "I dump the contents of the search index"
102- #end
103- #
104-
105- # When /^I '(.+)' the path '(.+)'$/ do |http_method, request_uri|
106- # begin
107- # #if http_method.downcase == 'get'
108- # # self.api_response = @rest.get_rest(request_uri)
109- # #else
110- # #puts "test test test \n\n\n\n\n\n\n"
111- # @response = @rest.send("#{http_method}_rest".downcase.to_sym, request_uri)
112- # #end
113- # puts "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
114- # puts @response
115- # puts @response['content-type']
116- # #puts self.api_response
117- # #puts self.api_response.inspect
118- # #self.inflated_response = self.api_response
119- # @inflated_response = @response#JSON.parse(response.body.to_s)
120- # puts "~~~~~~~~INFLATED RESPONSE~~~~~~~~~~~~"
121- # puts @inflated_response
122- # rescue
123- # self.exception = $!
124- # end
125- # end
126- #
127- # When /^I '(.+)' the '(.+)' to the path '(.+)'$/ do |http_method, stash_key, request_uri|
128- # begin
129- # #if http_method.downcase == 'post'
130- # # puts "post request"
131- # # self.api_response = @rest.post_rest(request_uri, @stash[stash_key])
132- # # puts self.api_response
133- # #else
134- # puts "This is the request -- @stash[stash_key]:"
135- # puts @stash[stash_key].to_s
136- # @response = @rest.send("#{http_method}_rest".downcase.to_sym, request_uri, @stash[stash_key])
137- # #end
138- # puts "This is the response:"
139- # #puts self.api_response.body.to_s
140- # puts @response
141- # #self.inflated_response = response
142- # @inflated_response = @response#JSON.parse(self.api_response.body.to_s)
143- # puts "~~~~~~~~INFLATED RESPONSE~~~~~~~~~~~~"
144- # puts @inflated_response
145- # rescue
146- # self.exception = $!
147- # end
148- # end
149- #
150- # When /^I authenticate as '(.+)'$/ do |reg|
151- # begin
152- # rest.authenticate(reg, 'tclown')
153- # rescue
154- # self.exception = $!
155- # end
156- # end
157- #
0 commit comments