Skip to content

Commit

Permalink
Fix spec tests for client filename
Browse files Browse the repository at this point in the history
  • Loading branch information
cruelsmith committed Aug 16, 2023
1 parent 45a958c commit 4c86f3c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/defines/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
end

it do
is_expected.to contain_file('/etc/raddb/clients.d/test_short.conf')
is_expected.to contain_file('/etc/raddb/clients.d/test.conf')
.with_content(%r{^client test_short {\n\s+ipaddr = 1.2.3.4\n\s+proto = \*\n\s+shortname = test_short\n\s+secret = "secret_value"\n\s+require_message_authenticator = no\n}\n})
.with_ensure('present')
.with_group('radiusd')
Expand Down Expand Up @@ -57,7 +57,7 @@
end

it do
is_expected.to contain_file('/etc/raddb/clients.d/test_short.conf')
is_expected.to contain_file('/etc/raddb/clients.d/test.conf')
.with_content(%r{^\s+password = "foo bar"$})
end
end
Expand All @@ -81,7 +81,7 @@
end

it do
is_expected.to contain_firewall('100 test_short 1234 v4')
is_expected.to contain_firewall('100 test 1234 v4')
.with_proto('udp')
.with_dport(1234)
.with_action('accept')
Expand All @@ -96,9 +96,9 @@
end

it do
is_expected.not_to contain_firewall('100 test_short 1234 v4')
is_expected.not_to contain_firewall('100 test 1234 v4')

is_expected.to contain_firewall('100 test_short 1234 v6')
is_expected.to contain_firewall('100 test 1234 v6')
.with_proto('udp')
.with_dport(1234)
.with_action('accept')
Expand All @@ -116,7 +116,7 @@
end

it do
is_expected.to contain_firewall('100 test_short 1234,4321 v4')
is_expected.to contain_firewall('100 test 1234,4321 v4')
.with_proto('udp')
.with_dport([1234, 4321])
.with_action('accept')
Expand All @@ -131,9 +131,9 @@
end

it do
is_expected.not_to contain_firewall('100 test_short 1234,4321 v4')
is_expected.not_to contain_firewall('100 test 1234,4321 v4')

is_expected.to contain_firewall('100 test_short 1234,4321 v6')
is_expected.to contain_firewall('100 test 1234,4321 v6')
.with_proto('udp')
.with_dport([1234, 4321])
.with_action('accept')
Expand Down

0 comments on commit 4c86f3c

Please sign in to comment.