Update puppetlabs/stdlib module
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / support / shared_data.rb
1 module SharedData
2   IPV4_PATTERNS = [
3     '0.0.0.0',
4     '1.2.3.4',
5     '10.10.10.10',
6     '127.0.0.1',
7     '192.88.99.0',
8     '194.232.104.150',
9     '224.0.0.0',
10     '244.24.24.24',
11     '255.255.255.255',
12     '8.8.8.8',
13     '8.8.8.8/0',
14     '8.8.8.8/16',
15     '8.8.8.8/255.255.0.0',
16     '8.8.8.8/32',
17   ].freeze
18   IPV4_NEGATIVE_PATTERNS = [
19     '',
20     '0000',
21     '0.0.0.0.',
22     '0.0.0.0./0.0.0.0.',
23     '0.0.0.0./1',
24     '0.0.0.0.0',
25     '0.0.0.0/0.0.0.0.',
26     '0.0.0.256',
27     '0.0.0',
28     '1.2.3.4.5',
29     '1.2.3',
30     '10.010.10.10',
31     '2001:0db8:85a3:0000:0000:8a2e:0370:73342001:0db8:85a3:0000:0000:8a2e:0370:7334',
32     '4.4.4',
33     '77',
34     '9999.9999.9999.9999',
35     'affe::beef',
36     'nope',
37   ].freeze
38 end