|
192 | 192 |
|
193 | 193 | ###### |
194 | 194 |
|
195 | | -http_request "/tmp/http_request.html" do |
196 | | - url "https://httpbin.org/get?from=itamae" |
197 | | -end |
| 195 | +unless ENV["SKIP_HTTP_REQUEST_TEST"] == "true" |
| 196 | + http_request "/tmp/http_request.html" do |
| 197 | + url "https://httpbin.org/get?from=itamae" |
| 198 | + end |
198 | 199 |
|
199 | | -http_request "/tmp/http_request_delete.html" do |
200 | | - action :delete |
201 | | - url "https://httpbin.org/delete?from=itamae" |
202 | | -end |
| 200 | + http_request "/tmp/http_request_delete.html" do |
| 201 | + action :delete |
| 202 | + url "https://httpbin.org/delete?from=itamae" |
| 203 | + end |
203 | 204 |
|
204 | | -http_request "/tmp/http_request_post.html" do |
205 | | - action :post |
206 | | - message "love=sushi" |
207 | | - url "https://httpbin.org/post?from=itamae" |
208 | | -end |
| 205 | + http_request "/tmp/http_request_post.html" do |
| 206 | + action :post |
| 207 | + message "love=sushi" |
| 208 | + url "https://httpbin.org/post?from=itamae" |
| 209 | + end |
209 | 210 |
|
210 | | -http_request "/tmp/http_request_put.html" do |
211 | | - action :put |
212 | | - message "love=sushi" |
213 | | - url "https://httpbin.org/put?from=itamae" |
214 | | -end |
| 211 | + http_request "/tmp/http_request_put.html" do |
| 212 | + action :put |
| 213 | + message "love=sushi" |
| 214 | + url "https://httpbin.org/put?from=itamae" |
| 215 | + end |
215 | 216 |
|
216 | | -http_request "/tmp/http_request_headers.html" do |
217 | | - headers "User-Agent" => "Itamae" |
218 | | - url "https://httpbin.org/get" |
219 | | -end |
| 217 | + http_request "/tmp/http_request_headers.html" do |
| 218 | + headers "User-Agent" => "Itamae" |
| 219 | + url "https://httpbin.org/get" |
| 220 | + end |
220 | 221 |
|
221 | | -# http_request "/tmp/http_request_redirect.html" do |
222 | | -# redirect_limit 1 |
223 | | -# url "https://httpbin.org/redirect-to?url=https%3A%2F%2Fhttpbin.org%2Fget%3Ffrom%3Ditamae" |
224 | | -# end |
| 222 | + # http_request "/tmp/http_request_redirect.html" do |
| 223 | + # redirect_limit 1 |
| 224 | + # url "https://httpbin.org/redirect-to?url=https%3A%2F%2Fhttpbin.org%2Fget%3Ffrom%3Ditamae" |
| 225 | + # end |
| 226 | +end |
225 | 227 |
|
226 | 228 | link "/tmp-link" do |
227 | 229 | to "/tmp" |
|
0 commit comments