pdksync_heads/master-0-g34e3266
This commit is contained in:
8
spec/default_facts.yml
Normal file
8
spec/default_facts.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
# Use default_module_facts.yml for module specific facts.
|
||||
#
|
||||
# Facts specified here will override the values provided by rspec-puppet-facts.
|
||||
---
|
||||
concat_basedir: "/tmp"
|
||||
ipaddress: "172.16.254.254"
|
||||
is_pe: false
|
||||
macaddress: "AA:AA:AA:AA:AA:AA"
|
||||
@@ -1,5 +1,13 @@
|
||||
|
||||
require 'puppetlabs_spec_helper/module_spec_helper'
|
||||
require 'rspec-puppet-facts'
|
||||
|
||||
begin
|
||||
require 'spec_helper_local' if File.file?(File.join(File.dirname(__FILE__), 'spec_helper_local.rb'))
|
||||
rescue LoadError => loaderror
|
||||
warn "Could not require spec_helper_local: #{loaderror.message}"
|
||||
end
|
||||
|
||||
include RspecPuppetFacts
|
||||
|
||||
default_facts = {
|
||||
@@ -20,4 +28,9 @@ end
|
||||
|
||||
RSpec.configure do |c|
|
||||
c.default_facts = default_facts
|
||||
c.before :each do
|
||||
# set to strictest setting for testing
|
||||
# by default Puppet runs at warning level
|
||||
Puppet.settings[:strict] = :warning
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ run_puppet_install_helper
|
||||
install_module_on(hosts)
|
||||
install_module_dependencies_on(hosts)
|
||||
|
||||
UNSUPPORTED_PLATFORMS = %w[Darwin windows].freeze
|
||||
UNSUPPORTED_PLATFORMS = ['Darwin', 'windows'].freeze
|
||||
|
||||
unless ENV['RS_PROVISION'] == 'no' || ENV['BEAKER_provision'] == 'no'
|
||||
hosts.each do |host|
|
||||
|
||||
Reference in New Issue
Block a user