language-puppet-0.12.1: 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.

testingDaemonSource

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, [Resource]))) 

Initializes a daemon made for running tests, using the specific test puppetDB

defaultDaemon :: FilePath -> IO (Text -> IO (Either Doc (FinalCatalog, EdgeMap, FinalCatalog, [Resource])))Source

A default testing daemon.

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

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