Skip to content

Commit 2b99c2a

Browse files
Fix deprecation warnings in 3.09 networking (#68)
1 parent 60702e0 commit 2b99c2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

controls/3.09-networking.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
describe "[#{gcp_project_id}] HTTPS Proxy: #{proxy}" do
4545
subject { google_compute_target_https_proxy(project: gcp_project_id, name: proxy) }
4646
it 'should have a custom SSL policy configured' do
47-
subject.ssl_policy.should_not cmp(nil)
47+
expect(subject.ssl_policy).to_not cmp(nil)
4848
end
4949
end
5050
end
@@ -56,7 +56,7 @@
5656
describe "[#{gcp_project_id}] SSL Policy: #{policy}" do
5757
subject { google_compute_ssl_policy(project: gcp_project_id, name: policy) }
5858
it 'should minimally require TLS 1.2' do
59-
subject.min_tls_version.should cmp 'TLS_1_2'
59+
expect(subject.min_tls_version).to cmp('TLS_1_2')
6060
end
6161
end
6262

inspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ copyright: "(c) 2020, Google, Inc."
1919
copyright_email: "copyright@google.com"
2020
license: "Apache-2.0"
2121
summary: "Inspec Google Cloud Platform Center for Internet Security Benchmark v1.1 Profile"
22-
version: 1.1.0-20
22+
version: 1.1.0-21
2323

2424
supports:
2525
- platform: gcp

0 commit comments

Comments
 (0)