on master help sign in
Re-enable the httpbin test with redirects

postmanlabs/httpbin#617 has been fixed.

commite26e055c51ff7bafce97174a319c7b8ea71956b9 authorMark Karpov <markkarpov92@gmail.com> dateThu 7 Apr 2022, 18:17 (5 years ago) parent295e707
1 file changed+11−15
httpbin-tests/Network/HTTP/ReqSpec.hs+11−15
httpbin-tests/Network/HTTP/ReqSpec.hs+11−15
@@ -261,21 +261,17 @@ spec = do
261261 -- TODO /response-headers
262262 -- TODO /redirect
263263
264− -- FIXME Redirects test is temporarily disabled due to
265− --
266− -- https://github.com/postmanlabs/httpbin/issues/617
267−
268− -- describe "redirects" $
269− -- it "follows redirects" $ do
270− -- r <-
271− -- req
272− -- GET
273− -- (httpbin /: "redirect-to")
274− -- NoReqBody
275− -- ignoreResponse
276− -- ("url" =: ("https://httpbin.org" :: Text))
277− -- responseStatusCode r `shouldBe` 200
278− -- responseStatusMessage r `shouldBe` "OK"
264+ describe "redirects" $
265+ it "follows redirects" $ do
266+ r <-
267+ req
268+ GET
269+ (httpbin /: "redirect-to")
270+ NoReqBody
271+ ignoreResponse
272+ ("url" =: ("https://httpbin.org" :: Text))
273+ responseStatusCode r `shouldBe` 200
274+ responseStatusMessage r `shouldBe` "OK"
279275
280276 -- TODO /relative-redicet
281277 -- TODO /absolute-redirect