summaryrefslogtreecommitdiff
path: root/spec/acceptance/validate_ipv6_address_spec.rb
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2014-05-01 18:56:29 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2014-05-01 18:56:29 -0400
commit143a0078b01fdde118b19e89486b96644f1d5d7e (patch)
tree6bc2e63858bbbd2ce77c0d32bc35013c8b157888 /spec/acceptance/validate_ipv6_address_spec.rb
parentf8bfe46bbfa4a4737cef9a20cfe1bed04aee4bdc (diff)
parent80590a9bfe2a8c0d288125d17cfb9f01c8563a7a (diff)
downloadpuppet-stdlib-143a0078b01fdde118b19e89486b96644f1d5d7e.tar.gz
puppet-stdlib-143a0078b01fdde118b19e89486b96644f1d5d7e.tar.bz2
Merge pull request #244 from hunner/add_tests
Add more specs
Diffstat (limited to 'spec/acceptance/validate_ipv6_address_spec.rb')
-rw-r--r--spec/acceptance/validate_ipv6_address_spec.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/acceptance/validate_ipv6_address_spec.rb b/spec/acceptance/validate_ipv6_address_spec.rb
new file mode 100644
index 0000000..3e73a82
--- /dev/null
+++ b/spec/acceptance/validate_ipv6_address_spec.rb
@@ -0,0 +1,30 @@
+require 'spec_helper_acceptance'
+
+describe 'validate_ipv6_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+ describe 'success' do
+ it 'validates a single argument' do
+ pp = <<-EOS
+ $one = '3ffe:0505:0002::'
+ validate_ipv6_address($one)
+ EOS
+
+ apply_manifest(pp, :catch_failures => true)
+ end
+ it 'validates an multiple arguments' do
+ pp = <<-EOS
+ $one = '3ffe:0505:0002::'
+ $two = '3ffe:0505:0001::'
+ validate_ipv6_address($one,$two)
+ EOS
+
+ apply_manifest(pp, :catch_failures => true)
+ end
+ end
+ describe 'failure' do
+ it 'handles improper number of arguments'
+ it 'handles ipv6 addresses'
+ it 'handles non-ipv6 strings'
+ it 'handles numbers'
+ it 'handles no arguments'
+ end
+end