on master help sign in
Disable the httpbin test with redirects

The endpoint currently returns 404. The issue is reported: https://github.com/postmanlabs/httpbin/issues/617

commit6575d41ef8ec146eb7a6999851094743a2ab5a31 authorMark Karpov <markkarpov92@gmail.com> dateSun 21 Jun 2020, 11:25 (6 years ago) parenta920ec0
1 file changed+16−12
httpbin-tests/Network/HTTP/ReqSpec.hs+16−12
httpbin-tests/Network/HTTP/ReqSpec.hs+16−12
@@ -273,18 +273,22 @@ spec = do
273273 -- TODO /response-headers
274274 -- TODO /redirect
275275
276− describe "redirects"
277− $ it "follows redirects"
278− $ do
279− r <-
280− req
281− GET
282− (httpbin /: "redirect-to")
283− NoReqBody
284− ignoreResponse
285− ("url" =: ("https://httpbin.org" :: Text))
286− responseStatusCode r `shouldBe` 200
287− responseStatusMessage r `shouldBe` "OK"
276+ -- FIXME Redirects test is temporarily disabled due to
277+ --
278+ -- https://github.com/postmanlabs/httpbin/issues/617
279+
280+ -- describe "redirects"
281+ -- $ it "follows redirects"
282+ -- $ do
283+ -- r <-
284+ -- req
285+ -- GET
286+ -- (httpbin /: "redirect-to")
287+ -- NoReqBody
288+ -- ignoreResponse
289+ -- ("url" =: ("https://httpbin.org" :: Text))
290+ -- responseStatusCode r `shouldBe` 200
291+ -- responseStatusMessage r `shouldBe` "OK"
288292
289293 -- TODO /relative-redicet
290294 -- TODO /absolute-redirect