Safe Haskell | None |
---|
- module Control.Lens
- module Data.Monoid
- module Puppet.PP
- module Puppet.Interpreter.Types
- hspec :: Spec -> IO ()
- basicTest :: PSpec
- testingDaemon :: PuppetDBAPI -> FilePath -> (Text -> IO (Container Text)) -> IO (Text -> IO (Either Doc (FinalCatalog, EdgeMap, FinalCatalog)))
- defaultDaemon :: FilePath -> IO (Text -> IO (Either Doc (FinalCatalog, EdgeMap, FinalCatalog)))
- testCatalog :: Nodename -> FilePath -> FinalCatalog -> PSpec -> IO Summary
- describeCatalog :: Nodename -> FilePath -> FinalCatalog -> PSpec -> Spec
- it :: Example a => String -> PSpecM a -> PSpec
- shouldBe :: (Show a, Eq a) => a -> a -> PSpecM Expectation
Documentation
module Control.Lens
module Data.Monoid
module Puppet.PP
module Puppet.Interpreter.Types
Run given spec and write a report to stdout
.
Exit with exitFailure
if at least one spec item fails.
basicTest :: PSpec
:: PuppetDBAPI | Contains the puppetdb API functions |
-> FilePath | Path to the manifests |
-> (Text -> IO (Container Text)) | The facter function |
-> IO (Text -> IO (Either Doc (FinalCatalog, EdgeMap, FinalCatalog))) |
Initializes a daemon made for running tests, using the specific test puppetDB
defaultDaemon :: FilePath -> IO (Text -> IO (Either Doc (FinalCatalog, EdgeMap, FinalCatalog)))
A default testing daemon.
testCatalog :: Nodename -> FilePath -> FinalCatalog -> PSpec -> IO Summary
describeCatalog :: Nodename -> FilePath -> FinalCatalog -> PSpec -> Spec
shouldBe :: (Show a, Eq a) => a -> a -> PSpecM Expectation