mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Fixed test file for syntax issues
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
e1e10732ae
commit
89e994c4b3
1 changed files with 10 additions and 1 deletions
|
@ -180,8 +180,17 @@ Test Summary: 0 successful, 0 failures, 0 skipped
|
|||
|
||||
it "executes only specified controls when selecting the controls by literal names" do
|
||||
inspec("exec " + File.join(profile_path, "filter_table") + " --no-create-lockfile --controls foo")
|
||||
_(stdout).must_equal "
|
||||
Profile: InSpec Profile (filter_table)
|
||||
Version: 0.1.0
|
||||
Target: local://
|
||||
|
||||
_(stdout).must_include "\nProfile Summary: 1 successful controls, 0 control failures, 0 controls skipped\n"
|
||||
✔ foo: a thing
|
||||
✔ a thing is expected to cmp == \"a thing\"
|
||||
|
||||
|
||||
Profile Summary: 1 successful control, 0 control failures, 0 controls skipped
|
||||
Test Summary: 1 successful, 0 failures, 0 skipped"
|
||||
_(stderr).must_equal ""
|
||||
|
||||
assert_exit_code 0, out
|
||||
|
|
Loading…
Reference in a new issue