You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 'package' resource is broken in OSX (with brew as package manager)
InSpec and Platform Version
➜ ~ inspec version
1.7.1
➜ ~ uname -a
Darwin MacBook-Pro.local 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro12,1 Darwin
➜ ~
Replication Case
On OSX, install a package with brew, and use InSpec to verify that it is installed:
➜ inspec-bug brew install python
....
➜ inspec-bug cat test.rb
describe package('python') do
it { should be_installed }
end
➜ inspec-bug inspec exec ./test.rb
Target: local://
System Package
∅ undefined method `name' for #<Hash:0x007f9891971018>
Test Summary: 0 successful, 1 failures, 0 skipped
➜ inspec-bug
See #1387 for a unit test that demonstrates that currently this is broken.
The text was updated successfully, but these errors were encountered:
Description
The 'package' resource is broken in OSX (with brew as package manager)
InSpec and Platform Version
Replication Case
On OSX, install a package with
brew
, and useInSpec
to verify that it is installed:See #1387 for a unit test that demonstrates that currently this is broken.
The text was updated successfully, but these errors were encountered: