Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[resource] iis_app_pool fails with error when pool is absent (馃悰) #3418

Closed
TheLonelyGhost opened this issue Sep 20, 2018 · 0 comments
Closed
Labels
Aspect: Correctness Is it actually right? Does it match a specification? Component: Core Resources Resources shipped with InSpec. Type: Bug Feature not working as expected

Comments

@TheLonelyGhost
Copy link
Contributor

馃帥 Description

馃悰 Bug Report

When running a basic InSpec profile to check if an IIS app pool is absent, PowerShell fails out instead of passing back something that can be parsed as JSON.

馃實 InSpec and Platform Version

2.1.54 via ChefDK (MacOS 10.13.6)

馃 Replication Case

# Any non-existent app pool name will suffice:
describe iis_app_pool('FizzBuzz') do
  it { should_not exist }
end

馃拋 Possible Solutions

Add a Test-Path line before running Get-Item in PowerShell to keep all output to STDOUT just stuff the ruby JSON parser can handle.

馃捇 Stacktrace

N/a

@jquick jquick added Type: Bug Feature not working as expected Component: Core Resources Resources shipped with InSpec. Aspect: Correctness Is it actually right? Does it match a specification? labels Sep 24, 2018
jerryaldrichiii pushed a commit that referenced this issue Jan 21, 2019
Signed-off-by: David Alexander <opensource@thelonelyghost.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aspect: Correctness Is it actually right? Does it match a specification? Component: Core Resources Resources shipped with InSpec. Type: Bug Feature not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants