]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
AIX has no facter network support
authorHunter Haugen <hunter@puppetlabs.com>
Tue, 8 Jul 2014 20:45:36 +0000 (13:45 -0700)
committerHunter Haugen <hunter@puppetlabs.com>
Tue, 8 Jul 2014 20:45:36 +0000 (13:45 -0700)
These functions take advantage of IP fact information and AIX does not
appear to support dynamic interface detection in facter.

spec/acceptance/has_interface_with_spec.rb
spec/acceptance/has_ip_address_spec.rb
spec/acceptance/has_ip_network_spec.rb

index b09199a7d8fc7033f8d9a623a53f7c779e512340..95901930436f1717414c096be667ee64f62ab6ee 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
 
-describe 'has_interface_with function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows')) do
+describe 'has_interface_with function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
   describe 'success' do
     it 'has_interface_with existing ipaddress' do
       pp = <<-EOS
index 50eb8f5cf81aec988a18ab4cf0690bb3d182cb72..149a10dc979a1ab6611e306e1de6b612c98bed57 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
 
-describe 'has_ip_address function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows')) do
+describe 'has_ip_address function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
   describe 'success' do
     it 'has_ip_address existing ipaddress' do
       pp = <<-EOS
index 16287466507eaab6f15fa65bbba1ce104d416f77..7d2f34ed587c6810504c1c002579113e182ed84c 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
 
-describe 'has_ip_network function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows')) do
+describe 'has_ip_network function', :unless => ((UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))) or (fact('osfamily') == 'windows') or (fact('osfamily') == 'AIX')) do
   describe 'success' do
     it 'has_ip_network existing ipaddress' do
       pp = <<-EOS