Skip to content

Commit

Permalink
Merge pull request #7 from inspec/use-latest-inspec
Browse files Browse the repository at this point in the history
Updating Gemfile to use latest inspec release.  Fix for only_if test …
  • Loading branch information
chris-rock authored May 17, 2018
2 parents 98eb7cb + 0eea4f1 commit 836da01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ group :development do
end

group :inspec do
# Below are required until the next inspec release containing the train changes
gem 'train', :git => 'https://github.com/chef/train.git'
gem 'inspec', :git => 'https://github.com/chef/inspec.git'
gem 'inspec', '~> 2.1', '>= 2.1.78'
end
2 changes: 1 addition & 1 deletion test/integration/verify/controls/generic_iam_role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources,default:0,description:'Flag to enable privileged resources requiring elevated privileges in GCP.')

control 'gcp-generic-iam-role' do
only_if { gcp_enable_privileged_resources == 1 }
only_if { gcp_enable_privileged_resources.to_i == 1 }
impact 1.0
title 'Ensure that the IAM role is correctly set up'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

control 'gcp-generic-iam-service-account' do

only_if { gcp_enable_privileged_resources == 1 }
only_if { gcp_enable_privileged_resources.to_i == 1 }
impact 1.0
title 'Ensure that the Service Account is correctly set up'

Expand Down

0 comments on commit 836da01

Please sign in to comment.