-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from chef/chris-rock/integration-test
Split integration test preparation from executing
- Loading branch information
Showing
2 changed files
with
42 additions
and
33 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,40 @@ | ||
# encoding: utf-8 | ||
# author: Dominik Richter | ||
# author: Christoph Hartmann | ||
# | ||
# Helper recipe to create create a few files in the operating | ||
# systems, which the runner will test against. | ||
|
||
gid = 'root' | ||
gid = 'wheel' if node['platform_family'] == 'freebsd' | ||
gid = 'system' if node['platform_family'] == 'aix' | ||
|
||
file '/tmp/file' do | ||
mode '0765' | ||
owner 'root' | ||
group gid | ||
content 'hello world' | ||
end | ||
|
||
directory '/tmp/folder' do | ||
mode '0567' | ||
owner 'root' | ||
group gid | ||
end | ||
|
||
link '/tmp/symlink'do | ||
to '/tmp/file' | ||
owner 'root' | ||
group gid | ||
mode '0777' | ||
end | ||
|
||
execute 'create pipe/fifo' do | ||
command 'mkfifo /tmp/pipe' | ||
not_if 'test -e /tmp/pipe' | ||
end | ||
|
||
execute 'create block_device' do | ||
command "mknod /tmp/block_device b 7 7 && chmod 0666 /tmp/block_device && chown root:#{gid} /tmp/block_device" | ||
not_if 'test -e /tmp/block_device' | ||
end |