Skip to content

Commit

Permalink
Fix deprecation warnings in 3.09 networking (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradSchieban authored Nov 2, 2020
1 parent 60702e0 commit 2b99c2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controls/3.09-networking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
describe "[#{gcp_project_id}] HTTPS Proxy: #{proxy}" do
subject { google_compute_target_https_proxy(project: gcp_project_id, name: proxy) }
it 'should have a custom SSL policy configured' do
subject.ssl_policy.should_not cmp(nil)
expect(subject.ssl_policy).to_not cmp(nil)
end
end
end
Expand All @@ -56,7 +56,7 @@
describe "[#{gcp_project_id}] SSL Policy: #{policy}" do
subject { google_compute_ssl_policy(project: gcp_project_id, name: policy) }
it 'should minimally require TLS 1.2' do
subject.min_tls_version.should cmp 'TLS_1_2'
expect(subject.min_tls_version).to cmp('TLS_1_2')
end
end

Expand Down
2 changes: 1 addition & 1 deletion inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ copyright: "(c) 2020, Google, Inc."
copyright_email: "[email protected]"
license: "Apache-2.0"
summary: "Inspec Google Cloud Platform Center for Internet Security Benchmark v1.1 Profile"
version: 1.1.0-20
version: 1.1.0-21

supports:
- platform: gcp
Expand Down

0 comments on commit 2b99c2a

Please sign in to comment.