Last change
on this file since 30903 was 30903, checked in by davidb, 8 years ago |
Vagrant provisioning files for a 4-node Hadoop cluster. See README.txt for more details
|
-
Property svn:executable
set to
*
|
File size:
835 bytes
|
Line | |
---|
1 | #! /usr/bin/env ruby -S rspec
|
---|
2 | require 'spec_helper_acceptance'
|
---|
3 |
|
---|
4 | describe 'validate_ipv6_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
---|
5 | describe 'success' do
|
---|
6 | it 'validates a single argument' do
|
---|
7 | pp = <<-EOS
|
---|
8 | $one = '3ffe:0505:0002::'
|
---|
9 | validate_ipv6_address($one)
|
---|
10 | EOS
|
---|
11 |
|
---|
12 | apply_manifest(pp, :catch_failures => true)
|
---|
13 | end
|
---|
14 | it 'validates an multiple arguments' do
|
---|
15 | pp = <<-EOS
|
---|
16 | $one = '3ffe:0505:0002::'
|
---|
17 | $two = '3ffe:0505:0001::'
|
---|
18 | validate_ipv6_address($one,$two)
|
---|
19 | EOS
|
---|
20 |
|
---|
21 | apply_manifest(pp, :catch_failures => true)
|
---|
22 | end
|
---|
23 | end
|
---|
24 | describe 'failure' do
|
---|
25 | it 'handles improper number of arguments'
|
---|
26 | it 'handles ipv6 addresses'
|
---|
27 | it 'handles non-ipv6 strings'
|
---|
28 | it 'handles numbers'
|
---|
29 | it 'handles no arguments'
|
---|
30 | end
|
---|
31 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.