Skip to content

Commit

Permalink
new ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
stjmt committed Jul 31, 2024
1 parent f6abf49 commit 8f4e1ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/defines/simplerule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,15 @@
describe 'with an IPV6 array address as saddr' do
let(:params) do
{
saddr: ['2001:1458:0000:0000:0000:0000:0000:0003', '2001:1458:0000:0000:0000:0000:0000:0006'],
saddr: ['2001:1458:0000:0000:0000:0000:0000:0003', '8896:d5d9:e6f4:dd8f:af69:f5c0:0131:264f'],
}
end

it { is_expected.to compile }

it {
expect(subject).to contain_nftables__rule('default_in-my_default_rule_name').with(
content: 'ip saddr {2001:1458:0000:0000:0000:0000:0000:0003, 2001:1458:0000:0000:0000:0000:0000:0006} accept'
content: 'ip saddr {2001:1458:0000:0000:0000:0000:0000:0003, 8896:d5d9:e6f4:dd8f:af69:f5c0:0131:264f} accept'
)
}
end
Expand Down Expand Up @@ -373,15 +373,15 @@
describe 'with an IPV6 array address as daddr' do
let(:params) do
{
daddr: ['2001:1458:0000:0000:0000:0000:0000:0003', '2001:1458:0000:0000:0000:0000:0000:0006'],
daddr: ['2001:1458:0000:0000:0000:0000:0000:0003', '8896:d5d9:e6f4:dd8f:af69:f5c0:0131:264f'],
}
end

it { is_expected.to compile }

it {
expect(subject).to contain_nftables__rule('default_in-my_default_rule_name').with(
content: 'ip daddr {2001:1458:0000:0000:0000:0000:0000:0003, 2001:1458:0000:0000:0000:0000:0000:0006} accept'
content: 'ip daddr {2001:1458:0000:0000:0000:0000:0000:0003, 8896:d5d9:e6f4:dd8f:af69:f5c0:0131:264f} accept'
)
}
end
Expand Down

0 comments on commit 8f4e1ae

Please sign in to comment.