Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / validate_ipv6_address_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'validate_ipv6_address function' do
4   describe 'success' do
5     pp1 = <<-DOC
6       $one = '3ffe:0505:0002::'
7       validate_ipv6_address($one)
8     DOC
9     it 'validates a single argument' do
10       apply_manifest(pp1, :catch_failures => true)
11     end
12
13     pp2 = <<-DOC
14       $one = '3ffe:0505:0002::'
15       $two = '3ffe:0505:0001::'
16       validate_ipv6_address($one,$two)
17     DOC
18     it 'validates an multiple arguments' do
19       apply_manifest(pp2, :catch_failures => true)
20     end
21   end
22   describe 'failure' do
23     it 'handles improper number of arguments'
24     it 'handles ipv6 addresses'
25     it 'handles non-ipv6 strings'
26     it 'handles numbers'
27     it 'handles no arguments'
28   end
29 end