Skip to content

Commit

Permalink
Merge pull request #39 from jhoblitt/feature/future_parser
Browse files Browse the repository at this point in the history
Feature/future parser
  • Loading branch information
Joshua Hoblitt committed Nov 18, 2014
2 parents adddbf5 + e80c3aa commit 8e003d1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
language: ruby
rvm:
# Workaround for travis-ci/travis-ci#2217, we support 1.8.7 MRI generally
- 1.8.7-p374
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.4
env:
- PUPPET_GEM_VERSION="2.7.14"
- PUPPET_GEM_VERSION="~> 2.7"
- PUPPET_GEM_VERSION="~> 3.3"
- PUPPET_GEM_VERSION="~> 3.7" FUTURE_PARSER="yes"
matrix:
allow_failures:
- rvm: ruby-head
exclude:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="2.7.14"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="2.7.14"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 2.7"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 2.7"
- rvm: 2.1.4
env: PUPPET_GEM_VERSION="~> 2.7"
fast_finish: true
notifications:
email: false
17 changes: 13 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ else
gem 'puppet', :require => false
end

gem 'rake', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false
gem 'puppet-syntax', :require => false
gem 'rake', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false
gem 'puppet-syntax', :require => false
# The verify_contents method invocations have been updated to work with
# rspec-puppet 1.0.1+ but are now incompatible with <= 1.0.1
# https://github.com/rodjek/rspec-puppet/issues/235
gem 'rspec-puppet',
:git => 'https://github.com/rodjek/rspec-puppet.git',
:ref => '6ac97993fa972a15851a73d55fe3d1c0a85172b5',
:require => false
# rspec 3 spews warnings with rspec-puppet 1.0.1
gem 'rspec-core', '~> 2.0', :require => false

# vim:ft=ruby
1 change: 1 addition & 0 deletions lib/facter/megaraid_virtual_drives.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
end
end

next nil if vds.empty?
vds.sort.join(',')
end
end
14 changes: 7 additions & 7 deletions spec/unit/classes/smartd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
})
end
it "should contain File[#{config_file}] with correct contents" do
verify_contents(subject, config_file, content)
verify_contents(catalogue, config_file, content)
end
end

Expand Down Expand Up @@ -229,7 +229,7 @@

it { should contain_file('/etc/smartd.conf').with_ensure('present') }
it 'should contain file /etc/smartd.conf with contents ...' do
verify_contents(subject, '/etc/smartd.conf', [
verify_contents(catalogue, '/etc/smartd.conf', [
'DEFAULT -m root -M daily',
'DEVICESCAN somevalue',
])
Expand All @@ -248,7 +248,7 @@

it { should contain_file('/etc/smartd.conf').with_ensure('present') }
it 'should contain file /etc/smartd.conf with contents ...' do
verify_contents(subject, '/etc/smartd.conf', [
verify_contents(catalogue, '/etc/smartd.conf', [
'DEFAULT -m root -M daily',
'/dev/sg1',
'/dev/sg2',
Expand All @@ -268,7 +268,7 @@

it { should contain_file('/etc/smartd.conf').with_ensure('present') }
it 'should contain file /etc/smartd.conf with contents ...' do
verify_contents(subject, '/etc/smartd.conf', [
verify_contents(catalogue, '/etc/smartd.conf', [
'DEFAULT -m root -M daily',
'/dev/sg1 -o on -S on -a',
'/dev/sg2 -o on -S on -a',
Expand All @@ -293,7 +293,7 @@

it { should contain_file('/etc/smartd.conf').with_ensure('present') }
it 'should contain file /etc/smartd.conf with contents ...' do
verify_contents(subject, '/etc/smartd.conf', [
verify_contents(catalogue, '/etc/smartd.conf', [
'DEFAULT -m root -M daily',
'/dev/cciss/c0d0 -d cciss,0 -a -o on -S on',
'/dev/cciss/c0d0 -d cciss,1 -a -o on -S on',
Expand All @@ -310,7 +310,7 @@

it { should contain_file('/etc/smartd.conf').with_ensure('present') }
it 'should contain file /etc/smartd.conf with contents ...' do
verify_contents(subject, '/etc/smartd.conf', [
verify_contents(catalogue, '/etc/smartd.conf', [
'DEFAULT -m someguy@localdomain -M daily',
])
end
Expand All @@ -321,7 +321,7 @@

it { should contain_file('/etc/smartd.conf').with_ensure('present') }
it 'should contain file /etc/smartd.conf with contents ...' do
verify_contents(subject, '/etc/smartd.conf', [
verify_contents(catalogue, '/etc/smartd.conf', [
'DEFAULT -m root -M diminishing',
])
end
Expand Down

0 comments on commit 8e003d1

Please sign in to comment.