-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add integration test for filtering duplicate test locations
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
- Loading branch information
1 parent
a30217f
commit c065aee
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# encoding: utf-8 | ||
|
||
# This is an InSpec test, that will be successful the first run. If it is | ||
# executed the second time, the test will fail | ||
path = '/tmp/file' | ||
describe file(path) do | ||
it { should_not exist } | ||
end | ||
|
||
# HACK: create a second file to fail tests if they run twice | ||
describe command("mkdir -p #{path}") do | ||
its('exit_status') { should eq 0 } | ||
end |