serverspec 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/serverspec/commands/base.rb +3 -0
- data/lib/serverspec/commands/solaris.rb +5 -0
- data/lib/serverspec/matchers.rb +1 -0
- data/lib/serverspec/matchers/have_ipfilter_rule.rb +5 -0
- data/lib/serverspec/version.rb +1 -1
- data/spec/solaris/commands_spec.rb +5 -0
- data/spec/solaris/matchers_spec.rb +2 -0
- data/spec/support/shared_matcher_examples.rb +13 -0
- metadata +4 -3
data/lib/serverspec/matchers.rb
CHANGED
data/lib/serverspec/version.rb
CHANGED
@@ -114,3 +114,8 @@ end
|
|
114
114
|
describe commands.get_mode('/dev') do
|
115
115
|
it { should eq 'stat -c %a /dev' }
|
116
116
|
end
|
117
|
+
|
118
|
+
describe commands.check_ipfilter_rule('pass in quick on lo0 all') do
|
119
|
+
it { should eq "/sbin/ipfstat -io 2> /dev/null | grep 'pass in quick on lo0 all'" }
|
120
|
+
end
|
121
|
+
|
@@ -51,4 +51,6 @@ describe 'Serverspec matchers of Solaris family', :os => :solaris do
|
|
51
51
|
it_behaves_like 'support be_executable_by_owner matcher', '/dev'
|
52
52
|
it_behaves_like 'support be_executable_by_group matcher', '/dev'
|
53
53
|
it_behaves_like 'support be_executable_by_others matcher', '/dev'
|
54
|
+
|
55
|
+
it_behaves_like 'support have_ipfilter_rule matcher', 'pass in quick on lo0 all'
|
54
56
|
end
|
@@ -631,3 +631,16 @@ shared_examples_for 'support be_executable_by_others matcher' do |file|
|
|
631
631
|
end
|
632
632
|
end
|
633
633
|
end
|
634
|
+
|
635
|
+
shared_examples_for 'support have_ipfilter_rule matcher' do |rule|
|
636
|
+
describe 'have_ipfilter_rule' do
|
637
|
+
describe 'ipfilter' do
|
638
|
+
it { should have_ipfilter_rule rule }
|
639
|
+
end
|
640
|
+
|
641
|
+
describe 'ipfilter' do
|
642
|
+
it { should_not have_ipfilter_rule 'invalid-rule' }
|
643
|
+
end
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-ssh
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- lib/serverspec/matchers/contain.rb
|
133
133
|
- lib/serverspec/matchers/get_stdout.rb
|
134
134
|
- lib/serverspec/matchers/have_cron_entry.rb
|
135
|
+
- lib/serverspec/matchers/have_ipfilter_rule.rb
|
135
136
|
- lib/serverspec/matchers/have_iptables_rule.rb
|
136
137
|
- lib/serverspec/setup.rb
|
137
138
|
- lib/serverspec/version.rb
|
@@ -167,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
168
|
version: '0'
|
168
169
|
requirements: []
|
169
170
|
rubyforge_project:
|
170
|
-
rubygems_version: 1.8.
|
171
|
+
rubygems_version: 1.8.23
|
171
172
|
signing_key:
|
172
173
|
specification_version: 3
|
173
174
|
summary: RSpec tests for your servers provisioned by Puppet, Chef or anything else
|