spec/gentoo/commands_spec.rb in serverspec-0.4.7 vs spec/gentoo/commands_spec.rb in serverspec-0.4.8
- old
+ new
@@ -17,11 +17,11 @@
it { should eq "mount | grep -w -- on\\ /" }
end
describe 'check_routing_table' do
subject { commands.check_routing_table('192.168.100.0/24') }
- it { should eq "ip route | grep -E '^192.168.100.0/24 |^default '" }
+ it { should eq "/sbin/ip route | grep -E '^192.168.100.0/24 |^default '" }
end
describe 'check_reachable' do
context "connect with name from /etc/services to localhost" do
subject { commands.check_reachable('localhost', 'ssh', 'tcp', 1) }
@@ -205,15 +205,15 @@
end
describe 'check_ipatbles' do
context 'check a rule without a table and a chain' do
subject { commands.check_iptables_rule('-P INPUT ACCEPT') }
- it { should eq "iptables -S | grep -- -P\\ INPUT\\ ACCEPT" }
+ it { should eq "/sbin/iptables -S | grep -- -P\\ INPUT\\ ACCEPT" }
end
context 'chack a rule with a table and a chain' do
subject { commands.check_iptables_rule('-P INPUT ACCEPT', 'mangle', 'INPUT') }
- it { should eq "iptables -t mangle -S INPUT | grep -- -P\\ INPUT\\ ACCEPT" }
+ it { should eq "/sbin/iptables -t mangle -S INPUT | grep -- -P\\ INPUT\\ ACCEPT" }
end
end
describe 'check_selinux' do
context 'enforcing' do