inspec/test/artifact/inspec_detect_test.rb
Miah Johnson 71e72af079 Change flunk to skip. drop parallelize me until multiple tests
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-11-07 16:19:19 -08:00

12 lines
331 B
Ruby

require_relative "artifact_helper"
class TestInspecDetect < Minitest::Test
def test_detect
command = "/bin/inspec detect --no-color #{TEST_CLI_OPTS}"
stdout, stderr, status = Open3.capture3(command)
assert_empty stderr.sub(/#< CLIXML\n/, "")
assert_match(/Platform Details/, stdout)
assert status
end
end