diff --git a/Gemfile b/Gemfile index 6cd3fe881..df28b6c9d 100644 --- a/Gemfile +++ b/Gemfile @@ -13,6 +13,5 @@ group :development do gem 'passgen' gem 'pry-coolline' gem 'rake' - gem 'vcr' gem 'webmock' end diff --git a/test/integration/verify-mm/controls/google_compute_ssl_policies.rb b/test/integration/verify-mm/controls/google_compute_ssl_policies.rb index 9e326ae09..5ba022183 100644 --- a/test/integration/verify-mm/controls/google_compute_ssl_policies.rb +++ b/test/integration/verify-mm/controls/google_compute_ssl_policies.rb @@ -12,8 +12,6 @@ # # ---------------------------------------------------------------------------- -require_relative '../vcr_config' - title 'Test GCP google_compute_ssl_policies resource.' project_name = attribute('project_name', default: 'graphite-test-sam-chef') @@ -22,19 +20,17 @@ impact 1.0 title 'google_compute_ssl_policies resource test' - VCR.use_cassette('google_compute_ssl_policies') do - resource = google_compute_ssl_policies({project: project_name}) - describe resource do - it { should exist } - its('names') { should include ssl_policy['name'] } - its('profiles') { should include ssl_policy['profile'] } - its('count') { should eq 1 } - end + resource = google_compute_ssl_policies({project: project_name}) + describe resource do + it { should exist } + its('names') { should include ssl_policy['name'] } + its('profiles') { should include ssl_policy['profile'] } + its('count') { should eq 1 } + end - resource.names.each do |policy_name| - describe google_compute_ssl_policy({project: project_name, name: policy_name}) do - its('min_tls_version') { should cmp ssl_policy['min_tls_version'] } - end + resource.names.each do |policy_name| + describe google_compute_ssl_policy({project: project_name, name: policy_name}) do + its('min_tls_version') { should cmp ssl_policy['min_tls_version'] } end end end diff --git a/test/integration/verify-mm/controls/google_compute_ssl_policy.rb b/test/integration/verify-mm/controls/google_compute_ssl_policy.rb index 4a5bb3d54..d187042eb 100644 --- a/test/integration/verify-mm/controls/google_compute_ssl_policy.rb +++ b/test/integration/verify-mm/controls/google_compute_ssl_policy.rb @@ -12,8 +12,6 @@ # # ---------------------------------------------------------------------------- -require_relative '../vcr_config' - title 'Test GCP google_compute_ssl_policy resource.' project_name = attribute('project_name', default: 'graphite-test-sam-chef') @@ -22,13 +20,11 @@ impact 1.0 title 'google_compute_ssl_policy resource test' - VCR.use_cassette('google_compute_ssl_policy') do - describe google_compute_ssl_policy({project: project_name, name: ssl_policy['name']}) do - it { should exist } - its('min_tls_version') { should cmp ssl_policy['min_tls_version'] } - its('profile') { should cmp ssl_policy['profile'] } - its('custom_features') { should include ssl_policy['custom_feature'] } - its('custom_features') { should include ssl_policy['custom_feature2'] } - end + describe google_compute_ssl_policy({project: project_name, name: ssl_policy['name']}) do + it { should exist } + its('min_tls_version') { should cmp ssl_policy['min_tls_version'] } + its('profile') { should cmp ssl_policy['profile'] } + its('custom_features') { should include ssl_policy['custom_feature'] } + its('custom_features') { should include ssl_policy['custom_feature2'] } end end