Skip to content

Commit 3f8f4a7

Browse files
committed
Spec for icmp with IPv4 address range
1 parent f305692 commit 3f8f4a7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

spec/unit/messages/validators/security_group_rule_validator_spec.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,23 @@ def self.name
12511251
end
12521252
end
12531253

1254+
context 'icmp protocol contains an IPv4 destination range' do
1255+
let(:rules) do
1256+
[
1257+
{
1258+
protocol: 'icmp',
1259+
destination: '1.0.0.1-1.0.0.200',
1260+
type: -1,
1261+
code: 255
1262+
}
1263+
]
1264+
end
1265+
1266+
it 'is valid' do
1267+
expect(subject).to be_valid
1268+
end
1269+
end
1270+
12541271
context 'the icmp rules are not provided when the protocol is icmp' do
12551272
let(:rules) do
12561273
[

0 commit comments

Comments
 (0)