From 40b9637273b7df8f21f641851b4d1df870cd5a9b Mon Sep 17 00:00:00 2001 From: Justin Stoller Date: Sun, 9 Feb 2014 18:49:31 -0800 Subject: [PATCH] remove vagrant specific test assumption --- spec/acceptance/firewall_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/acceptance/firewall_spec.rb b/spec/acceptance/firewall_spec.rb index f4af72b..b413bd8 100644 --- a/spec/acceptance/firewall_spec.rb +++ b/spec/acceptance/firewall_spec.rb @@ -1003,7 +1003,7 @@ describe 'firewall type' do end describe 'uid' do - context 'vagrant' do + context 'nobody' do it 'applies' do pp = <<-EOS class { '::firewall': } @@ -1013,7 +1013,7 @@ describe 'firewall type' do chain => 'OUTPUT', port => '574', action => accept, - uid => 'vagrant', + uid => 'nobody', } EOS @@ -1022,14 +1022,14 @@ describe 'firewall type' do it 'should contain the rule' do shell('iptables -S') do |r| - expect(r.stdout).to match(/-A OUTPUT -p tcp -m owner --uid-owner vagrant -m multiport --ports 574 -m comment --comment "574 - test" -j ACCEPT/) + expect(r.stdout).to match(/-A OUTPUT -p tcp -m owner --uid-owner nobody -m multiport --ports 574 -m comment --comment "574 - test" -j ACCEPT/) end end end end describe 'gid' do - context 'vagrant' do + context 'nobody' do it 'applies' do pp = <<-EOS class { '::firewall': } @@ -1039,7 +1039,7 @@ describe 'firewall type' do chain => 'OUTPUT', port => '575', action => accept, - gid => 'vagrant', + gid => 'nobody', } EOS @@ -1048,7 +1048,7 @@ describe 'firewall type' do it 'should contain the rule' do shell('iptables -S') do |r| - expect(r.stdout).to match(/-A OUTPUT -p tcp -m owner --gid-owner vagrant -m multiport --ports 575 -m comment --comment "575 - test" -j ACCEPT/) + expect(r.stdout).to match(/-A OUTPUT -p tcp -m owner --gid-owner nobody -m multiport --ports 575 -m comment --comment "575 - test" -j ACCEPT/) end end end -- 2.45.2