
This change adds possibility to use the os_service_default fact for configuration options that default to '<SERVICE DEFAULT>'. this change is done by analogy with cinder commit 667e6c0850672dbbf99381eb92468f95e5591913 Change-Id: Ie5c8909bcc1c9a6a7a9ab1b59eec4637751ffd74
16 lines
608 B
Ruby
16 lines
608 B
Ruby
# Load libraries from openstacklib 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', 'openstacklib', 'lib'))
|
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
|
require 'shared_examples'
|
|
require 'webmock/rspec'
|
|
|
|
RSpec.configure do |c|
|
|
c.alias_it_should_behave_like_to :it_configures, 'configures'
|
|
c.alias_it_should_behave_like_to :it_raises, 'raises'
|
|
c.before :each do
|
|
@default_facts = { :os_service_default => '<SERVICE DEFAULT>' }
|
|
end
|
|
end
|
|
|
|
at_exit { RSpec::Puppet::Coverage.report! }
|