Skip to content

Commit

Permalink
Disable the tests that use httpbin.org (#2533)
Browse files Browse the repository at this point in the history
… so that CI stops failing with various 50X errors
  • Loading branch information
Gabriella439 authored Sep 3, 2023
1 parent 959faed commit 8d77098
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
submodules: true
- id: setup-haskell-cabal
name: "Setup Haskell environment"
uses: haskell/actions/setup@v1.2.1
uses: haskell/actions/setup@v2.4.6
with:
enable-stack: true
- name: "Cache"
Expand Down
18 changes: 18 additions & 0 deletions dhall/tests/Dhall/Test/Import.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@ getTests = do
, importDirectory </> "success/unit/asLocation/RemoteChain2A.dhall"
, importDirectory </> "success/unit/asLocation/RemoteChain3A.dhall"
, importDirectory </> "success/unit/asLocation/RemoteChainMissingA.dhall"

-- Skip all tests that reference httpbin.org to avoid clobbering
-- their servers. These should eventually be replaced by tests
-- that depend on an equivalent endpoint on test.dhall-lang.org
-- instead of httpbin.org.
, importDirectory </> "failure/customHeadersUsingBoundVariable.dhall"
, importDirectory </> "failure/originHeadersFromRemote.dhall"
, importDirectory </> "failure/originHeadersFromRemoteENV.dhall"
, importDirectory </> "success/customHeadersA.dhall"
, importDirectory </> "success/noHeaderForwardingA.dhall"
, importDirectory </> "success/success/originHeadersA.dhall"
, importDirectory </> "success/originHeadersENV.dhall"
, importDirectory </> "success/originHeadersImportA.dhall"
, importDirectory </> "success/originHeadersImportENV.dhall"
, importDirectory </> "success/originHeadersImportFromEnvA.dhall"
, importDirectory </> "success/originHeadersImportFromEnvENV.dhall"
, importDirectory </> "success/originHeadersOverrideA.dhall"
, importDirectory </> "success/originHeadersOverrideENV.dhall"
]

successTests <- Test.Util.discover (Turtle.chars <* "A.dhall") successTest (do
Expand Down

0 comments on commit 8d77098

Please sign in to comment.