[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 3a39dd8353b6308cf49522990104cc63e55d7cda

Paul Nasrat pnasrat at googlemail.com
Fri Jan 29 17:22:42 UTC 2010


The following commit has been merged in the upstream branch:
commit eb3a8a768119005931003161299a5fb218357b08
Author: Paul Nasrat <pnasrat at googlemail.com>
Date:   Wed Sep 9 15:01:10 2009 +0100

    Issue #2414 - add unit test
    
    This adds a unit test on top of Kurt's patch

diff --git a/spec/unit/util/ip.rb b/spec/unit/util/ip.rb
index e97b5df..222ce9a 100644
--- a/spec/unit/util/ip.rb
+++ b/spec/unit/util/ip.rb
@@ -130,6 +130,12 @@ describe Facter::Util::IP do
 
         Facter::Util::IP.get_interface_value("en1", "netmask").should == "255.255.255.0"
     end
+    
+    it "should not get bonding master on interface aliases" do
+        Facter.stubs(:value).with(:kernel).returns("Linux")
+        
+        Facter::Util::IP.get_bonding_master("eth0:1").should be_nil
+    end
 
     [:freebsd, :netbsd, :openbsd, :sunos, :darwin].each do |platform|
         it "should require conversion from hex on #{platform}" do

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list