2021-12-27 11:05:27 +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'))
|
2014-05-30 18:04:09 +02:00
|
|
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
|
|
|
require 'shared_examples'
|
2016-09-30 13:33:11 -06:00
|
|
|
require 'puppet-openstack_spec_helper/facts'
|
2016-01-06 21:28:56 -07:00
|
|
|
|
2021-06-02 14:26:17 +09:00
|
|
|
fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures'))
|
|
|
|
|
2014-05-30 18:04:09 +02: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:26:17 +09:00
|
|
|
|
|
|
|
c.module_path = File.join(fixture_path, 'modules')
|
|
|
|
c.manifest_dir = File.join(fixture_path, 'manifests')
|
2014-05-30 18:04:09 +02:00
|
|
|
end
|
2015-08-04 11:34:13 -07:00
|
|
|
|
|
|
|
at_exit { RSpec::Puppet::Coverage.report! }
|