-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to pass travs Signed-off-by: Alex Pop <[email protected]>
- Loading branch information
Showing
13 changed files
with
62 additions
and
63 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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
chef_gem 'inspec-core' do | ||
action :nothing | ||
end.run_action(:remove) | ||
compile_time true | ||
action :remove | ||
end | ||
|
||
chef_gem 'inspec-core-bin' do | ||
action :nothing | ||
end.run_action(:remove) | ||
compile_time true | ||
action :remove | ||
end | ||
|
||
chef_gem 'inspec' do | ||
action :nothing | ||
end.run_action(:remove) | ||
compile_time true | ||
action :remove | ||
end | ||
|
||
chef_gem 'inspec-core' do | ||
compile_time true | ||
version '4.3.2' | ||
action :nothing | ||
end.run_action(:install) | ||
action :install | ||
end |
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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
chef_gem 'inspec-core' do | ||
action :nothing | ||
end.run_action(:remove) | ||
compile_time true | ||
action :remove | ||
end | ||
|
||
chef_gem 'inspec-core-bin' do | ||
action :nothing | ||
end.run_action(:remove) | ||
compile_time true | ||
action :remove | ||
end | ||
|
||
chef_gem 'inspec' do | ||
action :nothing | ||
end.run_action(:remove) | ||
compile_time true | ||
action :remove | ||
end | ||
|
||
chef_gem 'inspec' do | ||
compile_time true | ||
version '1.19.1' | ||
action :nothing | ||
end.run_action(:install) | ||
action :install | ||
end |
15 changes: 4 additions & 11 deletions
15
test/cookbooks/test_helper/recipes/setup_waiver_fixture.rb
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 |
---|---|---|
@@ -1,19 +1,12 @@ | ||
|
||
[ | ||
"controls", | ||
"waivers", | ||
].each do |subdir| | ||
directory "#{node["audit"]["profiles"]["waiver-test-profile"]["path"]}/#{subdir}" do | ||
%w(controls waivers).each do |subdir| | ||
directory "#{node['audit']['profiles']['waiver-test-profile']['path']}/#{subdir}" do | ||
recursive true | ||
end | ||
end | ||
|
||
[ | ||
"inspec.yml", | ||
"controls/waiver-check.rb", | ||
"waivers/waivers.yaml", | ||
].each do |file| | ||
cookbook_file "#{node["audit"]["profiles"]["waiver-test-profile"]["path"]}/#{file}" do | ||
%w(inspec.yml controls/waiver-check.rb waivers/waivers.yaml).each do |file| | ||
cookbook_file "#{node['audit']['profiles']['waiver-test-profile']['path']}/#{file}" do | ||
source "waivers-fixture/#{file}" | ||
end | ||
end |
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
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
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