-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
describe package failing in newer version #1797
Comments
@sarahbakal can you please add the screenshot you referenced in your issue description? I'm not 100% clear how this is failing so it would be helpful to determine where the failure lies before I try to reproduce it. Thanks! |
@adamleff |
@sarahbakal sent me the image directly via Slack, I'll take this one and dig into it. |
Hi @sarahbakal. I tried to reproduce this issue today but was unable to. It worked with one of the packages I already had installed in my test Windows VM, so I then installed WinZip v21 like you have on your machine, and it worked for me via the inspec shell:
Is it possible the user you're running InSpec with doesn't have access to see installed packages? I don't think that's the case based on your screenshots, but I'm grasping at straws. This is the core Powershell command that's run under the covers, minus any filtering. What happens if you run this manually? Do you get any JSON output and is WinZip included in that output?
|
The manual command works and has the package i'm looking for. I'll test it a bit more through the compliance server to see if its just this single server. |
Localized issue |
Description
running
describe package('WinZip 21.0') do
it { should be_installed }
end
working in Inspec 1.7.1 but fails in newer 1.19.1
InSpec and Platform Version
1.19.1
Replication Case
verifying installed application in multiple versions. Some work but most dont.
Possible Solutions
If you have already ideas how to solve the issue, add them here.
Stacktrace
See screenshot
The text was updated successfully, but these errors were encountered: