-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out sandwich-contexts.minio, fixes #84
- Loading branch information
Showing
21 changed files
with
283 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
((haskell-mode | ||
. ( | ||
(haskell-process-args-stack-ghci . ("--ghci-options=-ferror-spans" "--no-build" "--no-load" | ||
"--stack-yaml" "/home/tom/codedown/stack.yaml" | ||
"codedown-core:lib" | ||
"codedown-test-contexts:lib" | ||
"sandwich-contexts-docker:lib" | ||
)) | ||
))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
((haskell-mode | ||
. ( | ||
(haskell-process-args-stack-ghci . ("--ghci-options=-ferror-spans" "--no-build" "--no-load" | ||
"--stack-yaml" "/home/tom/tools/sandwich/stack.yaml" | ||
"sandwich-contexts-kubernetes:lib" | ||
)) | ||
))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
((haskell-mode | ||
. ( | ||
(haskell-process-args-stack-ghci . ("--ghci-options=-ferror-spans" "--no-build" "--no-load" | ||
"sandwich-contexts-minio:lib" | ||
)) | ||
))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: sandwich-contexts-minio | ||
version: 0.1.0.0 | ||
synopsis: Sandwich test contexts for MinIO | ||
description: Please see README.md | ||
author: Tom McLaughlin | ||
maintainer: tom@codedown.io | ||
copyright: 2024 Tom McLaughlin | ||
dependencies: | ||
- base | ||
- sandwich | ||
- unliftio | ||
|
||
default-extensions: | ||
- OverloadedStrings | ||
- QuasiQuotes | ||
- NamedFieldPuns | ||
- RecordWildCards | ||
- ScopedTypeVariables | ||
- LambdaCase | ||
- MultiWayIf | ||
- ViewPatterns | ||
- TupleSections | ||
- FlexibleContexts | ||
- NoImplicitPrelude | ||
- NumericUnderscores | ||
|
||
ghc-options: | ||
- -Wunused-packages # For GHC 8.10.1 and above | ||
- -Wall | ||
# - -Wpartial-fields | ||
# - -Wredundant-constraints # Reports HasCallStack, so keep it off normally | ||
|
||
library: | ||
source-dirs: lib | ||
exposed-modules: | ||
- Test.Sandwich.Contexts.MinIO | ||
dependencies: | ||
- aeson | ||
- containers | ||
- exceptions | ||
- filepath | ||
- minio-hs | ||
- monad-logger | ||
- mtl | ||
- network | ||
- network-uri | ||
- relude | ||
- retry | ||
- safe | ||
- sandwich-contexts | ||
- string-interpolate | ||
- temporary | ||
- text | ||
- unliftio-core | ||
|
||
tests: | ||
tests: | ||
main: Main.hs | ||
source-dirs: test | ||
ghc-options: | ||
- -Wall | ||
- -rtsopts | ||
- -threaded | ||
dependencies: | ||
- filepath | ||
- postgresql-simple | ||
- relude | ||
- sandwich-contexts | ||
- string-interpolate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
cabal-version: 1.12 | ||
|
||
-- This file has been generated from package.yaml by hpack version 0.36.0. | ||
-- | ||
-- see: https://github.com/sol/hpack | ||
|
||
name: sandwich-contexts-minio | ||
version: 0.1.0.0 | ||
synopsis: Sandwich test contexts for MinIO | ||
description: Please see README.md | ||
author: Tom McLaughlin | ||
maintainer: tom@codedown.io | ||
copyright: 2024 Tom McLaughlin | ||
build-type: Simple | ||
|
||
library | ||
exposed-modules: | ||
Test.Sandwich.Contexts.MinIO | ||
other-modules: | ||
Paths_sandwich_contexts_minio | ||
hs-source-dirs: | ||
lib | ||
default-extensions: | ||
OverloadedStrings | ||
QuasiQuotes | ||
NamedFieldPuns | ||
RecordWildCards | ||
ScopedTypeVariables | ||
LambdaCase | ||
MultiWayIf | ||
ViewPatterns | ||
TupleSections | ||
FlexibleContexts | ||
NoImplicitPrelude | ||
NumericUnderscores | ||
ghc-options: -Wunused-packages -Wall | ||
build-depends: | ||
aeson | ||
, base | ||
, containers | ||
, exceptions | ||
, filepath | ||
, minio-hs | ||
, monad-logger | ||
, mtl | ||
, network | ||
, network-uri | ||
, relude | ||
, retry | ||
, safe | ||
, sandwich | ||
, sandwich-contexts | ||
, string-interpolate | ||
, temporary | ||
, text | ||
, unliftio | ||
, unliftio-core | ||
default-language: Haskell2010 | ||
|
||
test-suite tests | ||
type: exitcode-stdio-1.0 | ||
main-is: Main.hs | ||
other-modules: | ||
Spec | ||
Spec.Basic | ||
Paths_sandwich_contexts_minio | ||
hs-source-dirs: | ||
test | ||
default-extensions: | ||
OverloadedStrings | ||
QuasiQuotes | ||
NamedFieldPuns | ||
RecordWildCards | ||
ScopedTypeVariables | ||
LambdaCase | ||
MultiWayIf | ||
ViewPatterns | ||
TupleSections | ||
FlexibleContexts | ||
NoImplicitPrelude | ||
NumericUnderscores | ||
ghc-options: -Wunused-packages -Wall -Wall -rtsopts -threaded | ||
build-depends: | ||
base | ||
, filepath | ||
, postgresql-simple | ||
, relude | ||
, sandwich | ||
, sandwich-contexts | ||
, string-interpolate | ||
, unliftio | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module Main where | ||
|
||
import Relude | ||
import qualified Spec | ||
import Test.Sandwich | ||
|
||
|
||
main :: IO () | ||
main = runSandwichWithCommandLineArgs defaultOptions $ | ||
Spec.tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{-# OPTIONS_GHC -F -pgmF sandwich-discover #-} | ||
{-# LANGUAGE CPP #-} | ||
{-# LANGUAGE DataKinds #-} | ||
{-# LANGUAGE TemplateHaskell #-} | ||
{-# OPTIONS_GHC -fno-warn-type-defaults #-} | ||
|
||
module Spec where | ||
|
||
import Test.Sandwich | ||
|
||
#insert_test_imports | ||
|
||
|
||
tests :: TopSpec | ||
tests = $(getSpecFromFolder defaultGetSpecFromFolderOptions) | ||
|
||
-- testsPooled :: PooledSpec | ||
-- testsPooled = $(getSpecFromFolder $ defaultGetSpecFromFolderOptions { | ||
-- getSpecCombiner = 'describeParallel | ||
-- , getSpecIndividualSpecHooks = 'poolify | ||
-- , getSpecWarnOnParseError = NoWarnOnParseError | ||
-- }) | ||
|
||
-- main :: IO () | ||
-- main = pooledMain (return ()) testsPooled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Spec.Basic where | ||
|
||
import Data.String.Interpolate | ||
import Relude | ||
import System.FilePath | ||
import Test.Sandwich | ||
import Test.Sandwich.Contexts.Nix | ||
import UnliftIO.Directory | ||
|
||
|
||
tests :: TopSpec | ||
tests = describe "Tests" $ do | ||
it "should work" $ do | ||
2 `shouldBe` 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
((haskell-mode | ||
. ( | ||
(haskell-process-args-stack-ghci . ("--ghci-options=-ferror-spans" "--no-build" "--no-load" | ||
"--stack-yaml" "/home/tom/codedown/stack.yaml" | ||
"codedown-core:lib" | ||
"codedown-test-contexts:lib" | ||
"sandwich-contexts:lib" | ||
)) | ||
))) |
Oops, something went wrong.