[Pkg-puppet-devel] [facter] 38/61: (#16668) added windows network spec helper
Stig Sandbeck Mathisen
ssm at debian.org
Mon Nov 4 15:02:00 UTC 2013
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit 8fc6bd57c836de3c6c11d338019fabf6b4122c40
Author: Rob Reynolds <ferventcoder at gmail.com>
Date: Sat Jul 27 06:31:58 2013 -0500
(#16668) added windows network spec helper
---
spec/lib/facter_spec/windows_network.rb | 64 +++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
diff --git a/spec/lib/facter_spec/windows_network.rb b/spec/lib/facter_spec/windows_network.rb
new file mode 100644
index 0000000..21d9f1a
--- /dev/null
+++ b/spec/lib/facter_spec/windows_network.rb
@@ -0,0 +1,64 @@
+require 'spec_helper'
+
+module FacterSpec::WindowsNetwork
+
+ def settingId0
+ '{4AE6B55C-6DD6-427D-A5BB-13535D4BE926}'
+ end
+
+ def settingId1
+ '{38762816-7957-42AC-8DAA-3B08D0C857C7}'
+ end
+
+ def nic_bindings
+ ["\\Device\\#{settingId0}", "\\Device\\#{settingId1}" ]
+ end
+
+ def macAddress0
+ '23:24:df:12:12:00'
+ end
+
+ def macAddress1
+ '00:0C:29:0C:9E:9F'
+ end
+
+ def ipAddress0
+ '12.123.12.12'
+ end
+
+ def ipAddress1
+ '12.123.12.13'
+ end
+
+ def subnet0
+ '255.255.255.0'
+ end
+
+ def subnet1
+ '255.255.0.0'
+ end
+
+ def ipv6Address0
+ '2011:0:4137:9e76:2087:77a:53ef:7527'
+ end
+
+ def ipv6Address1
+ '2013:0:4137:9e76:2087:77a:53ef:7527'
+ end
+
+ def ipv6LinkLocal
+ 'fe80::2db2:5b42:4e30:b508'
+ end
+
+ def given_a_valid_windows_nic_with_ipv4_and_ipv6
+ stub('network0', :IPAddress => [ipAddress0, ipv6Address0], :SettingID => settingId0, :IPConnectionMetric => 10,:MACAddress => macAddress0,:IPSubnet => [subnet0, '48','2'])
+ end
+
+ def given_two_valid_windows_nics_with_ipv4_and_ipv6
+ {
+ :nic0 => given_a_valid_windows_nic_with_ipv4_and_ipv6,
+ :nic1 => stub('network1', :IPAddress => [ipAddress1, ipv6Address1], :SettingID => settingId1, :IPConnectionMetric => 10,:MACAddress => macAddress1,:IPSubnet => [subnet1, '48','2'])
+ }
+ end
+
+end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list