Issue #4980 has been updated by Josh Cooper.
Status changed from Ready For Testing to Tests Insufficient
Hi Michael,
I'm getting test failures when running the complete suite of rspec tests. It
appears virtual_spec should be stubbing Facter.value(:hardwaremodel)
<pre>
$ rake rspec
...
1) Virtual fact on Solaris should be vmware with VMWare vendor name from
prtdiag
Failure/Error: Facter.fact(:virtual).value.should == "vmware"
Mocha::ExpectationError:
unexpected invocation: Facter::Util::Resolution.exec('uname -m',
'/bin/sh')
satisfied expectations:
- allowed any number of times, not yet invoked:
Facter::Util::Virtual.zlinux?(any_parameters)
- allowed any number of times, not yet invoked:
Facter::Util::Virtual.hpvm?(any_parameters)
- allowed any number of times, not yet invoked:
Facter::Util::Virtual.kvm?(any_parameters)
- allowed any number of times, not yet invoked:
Facter::Util::Virtual.xen?(any_parameters)
- allowed any number of times, not yet invoked:
Facter::Util::Virtual.vserver?(any_parameters)
- allowed any number of times, not yet invoked:
Facter::Util::Virtual.openvz?(any_parameters)
- allowed any number of times, invoked once:
Facter::Util::Virtual.zone?(any_parameters)
- allowed any number of times, invoked 4 times:
#<Facter::Util::Fact:0x1029848f8>.value(any_parameters)
- allowed any number of times, not yet invoked:
Facter::Util::Resolution.exec('prtdiag', '/bin/sh')
- allowed any number of times, not yet invoked:
Facter::Util::Resolution.exec('dmidecode')
- allowed any number of times, not yet invoked:
Facter::Util::Resolution.exec('lspci')
</pre>
----------------------------------------
Bug #4980: Darwin doesn't show architecture fact
https://projects.puppetlabs.com/issues/4980
Author: Nathan Rich
Status: Tests Insufficient
Priority: Low
Assignee: James Turnbull
Category: library
Target version: 1.6.0
Keywords:
Branch: https://github.com/mkincaid/facter/tree/ticket/next/4980
Affected Facter version:
lib/facter/architecture.rb:
Facter.add(:architecture) do
confine :kernel => :openbsd
setcode do
architecture = Facter.value(:hardwaremodel)
end
end
change to
Facter.add(:architecture) do
confine :kernel => [:openbsd, :darwin]
setcode do
architecture = Facter.value(:hardwaremodel)
end
end
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.