Skip to content

Commit 6a06d60

Browse files
committed
(CAT-1244) Reinitialize and update acceptance tests - P2
Update acceptance testing to account for changes. Includes: - class_spec.rb - firewall_attributes_exceptions_spec.rb - firewall_attributes_happy_path_spec.rb - firewall_attributes_ipv6_exceptions_spec.rb - firewall_attributes_ipv6_happy_path_spec.rb
1 parent 72c4ada commit 6a06d60

File tree

5 files changed

+3014
-0
lines changed

5 files changed

+3014
-0
lines changed

spec/acceptance/class_spec.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper_acceptance'
4+
5+
describe 'firewall class' do
6+
before(:all) do
7+
update_profile_file if os[:family] == 'ubuntu' || os[:family] == 'debian'
8+
end
9+
10+
it 'runs successfully' do
11+
pp = "class { 'firewall': }"
12+
idempotent_apply(pp)
13+
end
14+
15+
it 'ensure => stopped:' do
16+
pp = "class { 'firewall': ensure => stopped }"
17+
idempotent_apply(pp)
18+
end
19+
20+
it 'ensure => running:' do
21+
pp = "class { 'firewall': ensure => running }"
22+
idempotent_apply(pp)
23+
end
24+
end

0 commit comments

Comments
 (0)