2021-12-27 10:52:39 +09:00
|
|
|
# Load libraries here to simulate how they live together in a real puppet run (for provider unit tests)
|
|
|
|
$LOAD_PATH.push(File.join(File.dirname(__FILE__), 'fixtures', 'modules', 'inifile', 'lib'))
|
|
|
|
$LOAD_PATH.push(File.join(File.dirname(__FILE__), 'fixtures', 'modules', 'openstacklib', 'lib'))
|
2016-03-09 17:36:49 -05:00
|
|
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
|
|
|
require 'shared_examples'
|
2016-09-30 13:24:18 -06:00
|
|
|
require 'puppet-openstack_spec_helper/facts'
|
2016-03-09 17:36:49 -05:00
|
|
|
|
2021-06-02 14:10:06 +09:00
|
|
|
fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures'))
|
|
|
|
|
2016-03-09 17:36:49 -05:00
|
|
|
RSpec.configure do |c|
|
|
|
|
c.alias_it_should_behave_like_to :it_configures, 'configures'
|
|
|
|
c.alias_it_should_behave_like_to :it_raises, 'raises'
|
2021-06-02 14:10:06 +09:00
|
|
|
|
|
|
|
c.module_path = File.join(fixture_path, 'modules')
|
|
|
|
c.manifest_dir = File.join(fixture_path, 'manifests')
|
2016-03-09 17:36:49 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
at_exit { RSpec::Puppet::Coverage.report! }
|