(FM-4049) Update to current msync configs [2c99161]
This commit is contained in:
parent
bf92497e62
commit
10a8e79e7f
8 changed files with 34 additions and 50 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,5 +5,6 @@ spec/fixtures/
|
||||||
.vagrant/
|
.vagrant/
|
||||||
.bundle/
|
.bundle/
|
||||||
coverage/
|
coverage/
|
||||||
|
log/
|
||||||
.idea/
|
.idea/
|
||||||
*.iml
|
*.iml
|
||||||
|
|
2
.rspec
Normal file
2
.rspec
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
--color
|
||||||
|
--format documentation
|
26
.sync.yml
26
.sync.yml
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
.travis.yml:
|
|
||||||
includes:
|
|
||||||
- rvm: 1.8.7
|
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0" STRICT_VARIABLES="yes" ORDERING="random"
|
|
||||||
- rvm: 1.9.3
|
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0" STRICT_VARIABLES="yes" ORDERING="random"
|
|
||||||
- rvm: 2.0.0
|
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0" STRICT_VARIABLES="yes" ORDERING="random"
|
|
||||||
- rvm: 2.1.6
|
|
||||||
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes" ORDERING="random"
|
|
||||||
allow_failures:
|
|
||||||
Gemfile:
|
|
||||||
required:
|
|
||||||
':development, :unit_tests':
|
|
||||||
- gem: rspec-puppet
|
|
||||||
version: '~> 2.1'
|
|
||||||
- gem: rspec-core
|
|
||||||
version: '3.1.7'
|
|
||||||
- gem: puppetlabs_spec_helper
|
|
||||||
- gem: simplecov
|
|
||||||
- gem: puppet_facts
|
|
||||||
- gem: json
|
|
||||||
':system_tests':
|
|
||||||
- gem: beaker-rspec
|
|
||||||
- gem: serverspec
|
|
17
.travis.yml
17
.travis.yml
|
@ -1,18 +1,19 @@
|
||||||
---
|
---
|
||||||
sudo: false
|
sudo: false
|
||||||
language: ruby
|
language: ruby
|
||||||
|
cache: bundler
|
||||||
bundler_args: --without system_tests
|
bundler_args: --without system_tests
|
||||||
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
|
script: "bundle exec rake validate lint spec"
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- rvm: 1.8.7
|
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0" STRICT_VARIABLES="yes" ORDERING="random"
|
|
||||||
- rvm: 1.9.3
|
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0" STRICT_VARIABLES="yes" ORDERING="random"
|
|
||||||
- rvm: 2.0.0
|
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0" STRICT_VARIABLES="yes" ORDERING="random"
|
|
||||||
- rvm: 2.1.6
|
- rvm: 2.1.6
|
||||||
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes" ORDERING="random"
|
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
|
||||||
|
- rvm: 2.1.5
|
||||||
|
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
|
||||||
|
- rvm: 2.1.5
|
||||||
|
env: PUPPET_GEM_VERSION="~> 3.0"
|
||||||
|
- rvm: 1.9.3
|
||||||
|
env: PUPPET_GEM_VERSION="~> 3.0"
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
|
@ -159,7 +159,7 @@ If you already have those gems installed, make sure they are up-to-date:
|
||||||
With all dependencies in place and up-to-date we can now run the tests:
|
With all dependencies in place and up-to-date we can now run the tests:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
% rake spec
|
% bundle exec rake spec
|
||||||
```
|
```
|
||||||
|
|
||||||
This will execute all the [rspec tests](http://rspec-puppet.com/) tests
|
This will execute all the [rspec tests](http://rspec-puppet.com/) tests
|
||||||
|
@ -178,8 +178,8 @@ installed on your system.
|
||||||
You can run them by issuing the following command
|
You can run them by issuing the following command
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
% rake spec_clean
|
% bundle exec rake spec_clean
|
||||||
% rspec spec/acceptance
|
% bundle exec rspec spec/acceptance
|
||||||
```
|
```
|
||||||
|
|
||||||
This will now download a pre-fabricated image configured in the [default node-set](./spec/acceptance/nodesets/default.yml),
|
This will now download a pre-fabricated image configured in the [default node-set](./spec/acceptance/nodesets/default.yml),
|
||||||
|
|
23
Gemfile
23
Gemfile
|
@ -1,7 +1,7 @@
|
||||||
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
||||||
|
|
||||||
def location_for(place, fake_version = nil)
|
def location_for(place, fake_version = nil)
|
||||||
if place =~ /^(git:[^#]*)#(.*)/
|
if place =~ /^(git[:@][^#]*)#(.*)/
|
||||||
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
||||||
elsif place =~ /^file:\/\/(.*)/
|
elsif place =~ /^file:\/\/(.*)/
|
||||||
['>= 0', { :path => File.expand_path($1), :require => false }]
|
['>= 0', { :path => File.expand_path($1), :require => false }]
|
||||||
|
@ -11,15 +11,16 @@ def location_for(place, fake_version = nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development, :unit_tests do
|
group :development, :unit_tests do
|
||||||
gem 'rspec-puppet', '~> 2.1', :require => false
|
gem 'json', :require => false
|
||||||
gem 'rspec-core', '3.1.7', :require => false
|
gem 'metadata-json-lint', :require => false
|
||||||
gem 'puppetlabs_spec_helper', :require => false
|
gem 'puppet_facts', :require => false
|
||||||
gem 'simplecov', :require => false
|
gem 'puppet-blacksmith', :require => false
|
||||||
gem 'puppet_facts', :require => false
|
gem 'puppetlabs_spec_helper', :require => false
|
||||||
gem 'json', :require => false
|
gem 'rspec-puppet', '>= 2.3.2', :require => false
|
||||||
|
gem 'simplecov', :require => false
|
||||||
end
|
end
|
||||||
|
|
||||||
group :system_tests do
|
group :system_tests do
|
||||||
|
gem 'beaker-puppet_install_helper', :require => false
|
||||||
if beaker_version = ENV['BEAKER_VERSION']
|
if beaker_version = ENV['BEAKER_VERSION']
|
||||||
gem 'beaker', *location_for(beaker_version)
|
gem 'beaker', *location_for(beaker_version)
|
||||||
end
|
end
|
||||||
|
@ -28,12 +29,10 @@ group :system_tests do
|
||||||
else
|
else
|
||||||
gem 'beaker-rspec', :require => false
|
gem 'beaker-rspec', :require => false
|
||||||
end
|
end
|
||||||
gem 'serverspec', :require => false
|
gem 'master_manipulator', :require => false
|
||||||
gem 'beaker-puppet_install_helper', :require => false
|
gem 'serverspec', :require => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if facterversion = ENV['FACTER_GEM_VERSION']
|
if facterversion = ENV['FACTER_GEM_VERSION']
|
||||||
gem 'facter', facterversion, :require => false
|
gem 'facter', facterversion, :require => false
|
||||||
else
|
else
|
||||||
|
|
3
Rakefile
3
Rakefile
|
@ -1,5 +1,6 @@
|
||||||
require 'puppetlabs_spec_helper/rake_tasks'
|
require 'puppet_blacksmith/rake_tasks'
|
||||||
require 'puppet-lint/tasks/puppet-lint'
|
require 'puppet-lint/tasks/puppet-lint'
|
||||||
|
require 'puppetlabs_spec_helper/rake_tasks'
|
||||||
|
|
||||||
PuppetLint.configuration.fail_on_warnings = true
|
PuppetLint.configuration.fail_on_warnings = true
|
||||||
PuppetLint.configuration.send('relative')
|
PuppetLint.configuration.send('relative')
|
||||||
|
|
|
@ -1 +1,7 @@
|
||||||
require 'puppetlabs_spec_helper/module_spec_helper'
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
||||||
|
|
||||||
|
# put local configuration and setup into spec_helper_local
|
||||||
|
begin
|
||||||
|
require 'spec_helper_local'
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue