Unverified Commit 59ac9eab authored by Dominic Cleal's avatar Dominic Cleal
Browse files

Run catalog tests as non-host_config catalogs

Prevents Puppet attempting to store information about the catalog, it's
treated instead as a transient catalog run and not the main catalog for
the host.

Fixes an issue under Puppet 4.6 where the transactionstorefile fails to
be written to a /dev/null vardir during tests.
parent 761a7205
......@@ -15,6 +15,7 @@ module AugeasSpec::Fixtures
# Runs a particular resource via a catalog
def apply(*resources)
catalog = Puppet::Resource::Catalog.new
catalog.host_config = false
resources.each do |resource|
catalog.add_resource resource
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment