Skip to content

Commit

Permalink
Disable the httpbin test with redirects
Browse files Browse the repository at this point in the history
The endpoint currently returns 404. The issue is reported:

postmanlabs/httpbin#617
  • Loading branch information
mrkkrp committed Jun 21, 2020
1 parent a920ec0 commit 6575d41
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions httpbin-tests/Network/HTTP/ReqSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -273,18 +273,22 @@ spec = do
-- TODO /response-headers
-- TODO /redirect

describe "redirects"
$ it "follows redirects"
$ do
r <-
req
GET
(httpbin /: "redirect-to")
NoReqBody
ignoreResponse
("url" =: ("https://httpbin.org" :: Text))
responseStatusCode r `shouldBe` 200
responseStatusMessage r `shouldBe` "OK"
-- FIXME Redirects test is temporarily disabled due to
--
-- https://github.com/postmanlabs/httpbin/issues/617

-- describe "redirects"
-- $ it "follows redirects"
-- $ do
-- r <-
-- req
-- GET
-- (httpbin /: "redirect-to")
-- NoReqBody
-- ignoreResponse
-- ("url" =: ("https://httpbin.org" :: Text))
-- responseStatusCode r `shouldBe` 200
-- responseStatusMessage r `shouldBe` "OK"

-- TODO /relative-redicet
-- TODO /absolute-redirect
Expand Down

0 comments on commit 6575d41

Please sign in to comment.