]> gitweb.fluxo.info Git - puppet-ferm.git/commitdiff
add test for numeric value protocols
authorKilian Engelhardt <kilian.engelhardt@godaddy.com>
Wed, 3 Feb 2021 20:38:27 +0000 (21:38 +0100)
committerKilian Engelhardt <kilian.engelhardt@godaddy.com>
Tue, 16 Feb 2021 12:11:59 +0000 (13:11 +0100)
spec/type_aliases/protocols_spec.rb

index a067b6971044661687b4627f0098464e37ee0952..b13b7b20af966dcf864842df9a569a86732ee27a 100644 (file)
@@ -15,6 +15,8 @@ describe 'Ferm::Protocols' do
       'mh',
       'all',
       ['icmp', 'tcp', 'udp'],
+      0,
+      [0, 4],
     ].each do |value|
       describe value.inspect do
         it { is_expected.to allow_value(value) }
@@ -36,6 +38,8 @@ describe 'Ferm::Protocols' do
         [95_000, 67_000],
         {},
         { 'foo' => 'bar' },
+        256,
+        ['icmp', 256],
       ].each do |value|
         describe value.inspect do
           it { is_expected.not_to allow_value(value) }