From 2b99c2a644ca470e195bde19b208ed5f4d99bb1d Mon Sep 17 00:00:00 2001 From: Konrad Schieban Date: Mon, 2 Nov 2020 17:41:48 -0500 Subject: [PATCH] Fix deprecation warnings in 3.09 networking (#68) --- controls/3.09-networking.rb | 4 ++-- inspec.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controls/3.09-networking.rb b/controls/3.09-networking.rb index 583f2e6..6e74400 100644 --- a/controls/3.09-networking.rb +++ b/controls/3.09-networking.rb @@ -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 @@ -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 diff --git a/inspec.yml b/inspec.yml index 508b242..260e578 100644 --- a/inspec.yml +++ b/inspec.yml @@ -19,7 +19,7 @@ copyright: "(c) 2020, Google, Inc." copyright_email: "copyright@google.com" 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