mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
Fix for if conditions placement in exec test file
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
This commit is contained in:
parent
5617ed819c
commit
26a40c1bbb
1 changed files with 5 additions and 5 deletions
|
@ -1307,10 +1307,10 @@ EOT
|
|||
end
|
||||
|
||||
describe "when profiles are dependent on different versions of same profile - test in unix" do
|
||||
skip_windows!
|
||||
let(:profile) { "#{profile_path}/git-fetcher/inheritance/parent-profile" }
|
||||
let(:run_result) { run_inspec_process("exec #{profile}") }
|
||||
it "should evaluate all test controls of all versions correctly" do
|
||||
skip_windows!
|
||||
_(run_result.stderr).must_be_empty
|
||||
_(run_result.stdout).must_include "2.7.0"
|
||||
_(run_result.stdout).must_include "2.6.0"
|
||||
|
@ -1320,10 +1320,10 @@ EOT
|
|||
end
|
||||
|
||||
describe "when profiles are dependent on different versions of same profile - test in windows" do
|
||||
if is_windows?
|
||||
let(:profile) { "#{profile_path}/git-fetcher/inheritance-windows/parent-profile" }
|
||||
let(:run_result) { run_inspec_process("exec #{profile}") }
|
||||
it "should evaluate all test controls of all versions correctly" do
|
||||
let(:profile) { "#{profile_path}/git-fetcher/inheritance-windows/parent-profile" }
|
||||
let(:run_result) { run_inspec_process("exec #{profile}") }
|
||||
it "should evaluate all test controls of all versions correctly" do
|
||||
if is_windows?
|
||||
_(run_result.stderr).must_be_empty
|
||||
_(run_result.stdout).must_include "2.1.8"
|
||||
_(run_result.stdout).must_include "2.1.6"
|
||||
|
|
Loading…
Add table
Reference in a new issue