-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #345 from ghoneycutt/fix_testing
(maint) Fix testing
- Loading branch information
Showing
4 changed files
with
58 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
fixtures: | ||
repositories: | ||
'stdlib': | ||
repo: 'git://github.com/puppetlabs/puppetlabs-stdlib.git' | ||
stdlib: | ||
repo: 'https://github.com/puppetlabs/puppetlabs-stdlib.git' | ||
ref: '4.6.0' | ||
'epel': | ||
repo: 'git://github.com/stahnma/puppet-module-epel.git' | ||
epel: | ||
repo: 'https://github.com/stahnma/puppet-module-epel.git' | ||
ref: '1.2.2' | ||
symlinks: | ||
python: "#{source_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
require 'puppetlabs_spec_helper/module_spec_helper' | ||
|
||
RSpec.configure do |config| | ||
config.hiera_config = 'spec/fixtures/hiera/hiera.yaml' | ||
config.before :each do | ||
# Ensure that we don't accidentally cache facts and environment between | ||
# test cases. This requires each example group to explicitly load the | ||
# facts being exercised with something like | ||
# Facter.collection.loader.load(:ipaddress) | ||
Facter.clear | ||
Facter.clear_messages | ||
end | ||
config.default_facts = { | ||
:environment => 'rp_env', | ||
:operatingsystemmajrelease => '6', | ||
:osfamily => 'RedHat', | ||
} | ||
end |