Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
remove to_i in tests, whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Levenick <slevenick@google.com>
  • Loading branch information
slevenick authored and Stuart Paterson committed Apr 6, 2020
1 parent a1b6bc7 commit 991afc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/google_kms_key_ring_iam_bindings.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require 'gcp_backend'
require 'time'
require 'time'
require 'google/apis/cloudkms_v1'

module Inspec::Resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
its('firewall_names') { should include "default-allow-internal" }
its('firewall_names') { should include "default-allow-icmp" }
# Only make the call if the configuration flag is specified and the test will run
gcp_firewall_id = `gcloud compute firewall-rules list --filter="name=default-allow-ssh" --format=json | grep id | grep -o '[0-9]\\+'`.chomp.to_i
gcp_firewall_id = `gcloud compute firewall-rules list --filter="name=default-allow-ssh" --format=json | grep id | grep -o '[0-9]\\+'`.chomp
its('firewall_ids') { should include gcp_firewall_id }
end

Expand Down
2 changes: 1 addition & 1 deletion test/integration/verify/controls/google_compute_vms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
its('instance_ids.count') { should be > 0 }
its('instance_names') { should include gcp_ext_vm_data_disk_name }
# Only make the call if the configuration flag is specified and the test will run
gcp_instance_id = `gcloud compute instances list --filter="name=gcp-inspec-ext-linux-vm" --format=json | grep id | grep -o '[0-9]\\+'`.chomp.to_i
gcp_instance_id = `gcloud compute instances list --filter="name=gcp-inspec-ext-linux-vm" --format=json | grep id | grep -o '[0-9]\\+'`.chomp
its('instance_ids') { should include gcp_instance_id }
end

Expand Down

0 comments on commit 991afc6

Please sign in to comment.