language-puppet-0.10.3: Tools to parse and evaluate the Puppet DSL.

Safe HaskellNone

Puppet.Testing

Synopsis

Documentation

module Puppet.PP

hspec :: Spec -> IO ()

Run given spec and write a report to stdout. Exit with exitFailure if at least one spec item fails.

basicTest :: PSpec

testingDaemon

Arguments

:: 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.

it :: Example a => String -> PSpecM a -> PSpec

shouldBe :: (Show a, Eq a) => a -> a -> PSpecM Expectation