2019-11-07 23:42:48 +00:00
|
|
|
require_relative "artifact_helper"
|
|
|
|
|
2019-11-09 21:36:15 +00:00
|
|
|
class TestInspecPlugin < ArtifactTest
|
2022-03-23 18:37:59 +00:00
|
|
|
def test_plugin_list
|
|
|
|
# This one is custom because it emits a special warning to stderr
|
|
|
|
inspec_command = "plugin list"
|
|
|
|
stdout, stderr, status = run_cmd "inspec #{inspec_command} #{TEST_CLI_OPTS}"
|
|
|
|
|
|
|
|
assert_empty stderr.sub(/#< CLIXML\n/, "").sub(/The table size exceeds the currently set width\.Defaulting to vertical orientation\.\n/, "")
|
|
|
|
assert stdout
|
|
|
|
assert status
|
2019-11-07 23:42:48 +00:00
|
|
|
end
|
|
|
|
end
|