You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a module which uses the $settings::storeconfig variable to ensure resources are only exported on systems which have sotreconfigs configured and im having trouble mocking the config setting. To test this out i have created a test module with the following puppet code.
with the following test , the check for the confined resources fails as the clause for $settings::storeconfigs fails
describe'rspec_test'docontext'test'doit{is_expected.tocompile.with_all_deps}endcontext'should have exported resources'dosubject{exported_resources}it{is_expected.tocontain_nagios_host('confined')}it{is_expected.tocontain_nagios_host('unconfined')}endend
I tried to update my tests by explicitly setting Puppet[:storeconfigs] = true. However this results in the error
ArgumentError:
Could not find terminus puppetdb for indirection catalog
Is it possible to configure rspec to honour the settings::storeconfig variable without having to configure puppetdb.
full rspec output from both spec files avalible here
Thanks
The text was updated successfully, but these errors were encountered:
I have a module which uses the
$settings::storeconfig
variable to ensure resources are only exported on systems which have sotreconfigs configured and im having trouble mocking the config setting. To test this out i have created a test module with the following puppet code.with the following test , the check for the confined resources fails as the clause for
$settings::storeconfigs
failsI tried to update my tests by explicitly setting
Puppet[:storeconfigs] = true
. However this results in the errorIs it possible to configure rspec to honour the
settings::storeconfig
variable without having to configure puppetdb.full rspec output from both spec files avalible here
Thanks
The text was updated successfully, but these errors were encountered: