on master help sign in
Re-enable the httpbin test with redirects
e26e055Mark Karpov
httpbin-tests/Network/HTTP/ReqSpec.hs+11−15
@@ -261,21 +261,17 @@ spec = do
261 -- TODO /response-headers
261 -- TODO /response-headers
262 -- TODO /redirect
262 -- TODO /redirect
263
263
264− -- FIXME Redirects test is temporarily disabled due to
265− --
266− -- https://github.com/postmanlabs/httpbin/issues/617
267−
268− -- describe "redirects" $
264+ describe "redirects" $
269− -- it "follows redirects" $ do
265+ it "follows redirects" $ do
270− -- r <-
266+ r <-
271− -- req
267+ req
272− -- GET
268+ GET
273− -- (httpbin /: "redirect-to")
269+ (httpbin /: "redirect-to")
274− -- NoReqBody
270+ NoReqBody
275− -- ignoreResponse
271+ ignoreResponse
276− -- ("url" =: ("https://httpbin.org" :: Text))
272+ ("url" =: ("https://httpbin.org" :: Text))
277− -- responseStatusCode r `shouldBe` 200
273+ responseStatusCode r `shouldBe` 200
278− -- responseStatusMessage r `shouldBe` "OK"
274+ responseStatusMessage r `shouldBe` "OK"
279
275
280 -- TODO /relative-redicet
276 -- TODO /relative-redicet
281 -- TODO /absolute-redirect
277 -- TODO /absolute-redirect