From 7c5dddde2a0cdc902ae5140bda63d608c54ec278 Mon Sep 17 00:00:00 2001 From: Samir Anand Date: Thu, 14 Dec 2023 14:27:30 +0530 Subject: [PATCH] Removed the wrong dir from inspec-gcp. Signed-off-by: Samir Anand --- inspec/Gemfile | 20 ------------ ...google_compute_public_advertised_prefix.rb | 31 ------------------ ...ogle_compute_public_advertised_prefixes.rb | 28 ---------------- ...le_compute_region_notification_endpoint.rb | 32 ------------------- ...e_compute_region_notification_endpoints.rb | 32 ------------------- ...google_compute_region_security_policies.rb | 31 ------------------ .../google_compute_region_security_policy.rb | 31 ------------------ 7 files changed, 205 deletions(-) delete mode 100644 inspec/Gemfile delete mode 100644 inspec/test/integration/verify/controls/google_compute_public_advertised_prefix.rb delete mode 100644 inspec/test/integration/verify/controls/google_compute_public_advertised_prefixes.rb delete mode 100644 inspec/test/integration/verify/controls/google_compute_region_notification_endpoint.rb delete mode 100644 inspec/test/integration/verify/controls/google_compute_region_notification_endpoints.rb delete mode 100644 inspec/test/integration/verify/controls/google_compute_region_security_policies.rb delete mode 100644 inspec/test/integration/verify/controls/google_compute_region_security_policy.rb diff --git a/inspec/Gemfile b/inspec/Gemfile deleted file mode 100644 index 1af5bd5d6..000000000 --- a/inspec/Gemfile +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -source 'https://rubygems.org' - -gem 'bundle' -gem 'faraday', '>= 0.16.2' -gem 'google-api-client' -gem 'googleauth' -gem 'google-cloud' -gem 'inifile' -gem 'inspec-bin', '4.16.0' -gem 'rubocop', '>= 0.77.0' - -group :development do - gem 'github_changelog_generator' - gem 'pry-coolline' - gem 'rake' - gem 'vcr' - gem 'webmock' -end diff --git a/inspec/test/integration/verify/controls/google_compute_public_advertised_prefix.rb b/inspec/test/integration/verify/controls/google_compute_public_advertised_prefix.rb deleted file mode 100644 index 17c404f6f..000000000 --- a/inspec/test/integration/verify/controls/google_compute_public_advertised_prefix.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- - -title 'Test GCP google_compute_public_advertised_prefix resource.' - -gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - -public_advertised_prefix = input('security_policy', value: { - "publicadvertisedprefix": 'value_publicadvertisedprefix', - }, description: 'public_advertised_prefix description') -control 'google_compute_public_advertised_prefix-1.0' do - impact 1.0 - title 'google_compute_public_advertised_prefix resource test' - - describe google_compute_public_advertised_prefix(project: gcp_project_id, name: public_advertised_prefix['name']) do - it { should exist } - end -end diff --git a/inspec/test/integration/verify/controls/google_compute_public_advertised_prefixes.rb b/inspec/test/integration/verify/controls/google_compute_public_advertised_prefixes.rb deleted file mode 100644 index 05531a7c3..000000000 --- a/inspec/test/integration/verify/controls/google_compute_public_advertised_prefixes.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- - -title 'Test GCP google_compute_public_advertised_prefixes resource.' - -gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - -control 'google_compute_public_advertised_prefixes-1.0' do - impact 1.0 - title 'google_compute_public_advertised_prefixes resource test' - - describe google_compute_public_advertised_prefixes(project: gcp_project_id) do - it { should exist } - end -end diff --git a/inspec/test/integration/verify/controls/google_compute_region_notification_endpoint.rb b/inspec/test/integration/verify/controls/google_compute_region_notification_endpoint.rb deleted file mode 100644 index 591397d30..000000000 --- a/inspec/test/integration/verify/controls/google_compute_region_notification_endpoint.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- - -title 'Test GCP google_compute_region_notification_endpoint resource.' - -gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - -region_notification_endpoint = input('security_policy', value: { - "region": 'value_region', -"notificationendpoint": 'value_notificationendpoint', - }, description: 'region_notification_endpoint description') -control 'google_compute_region_notification_endpoint-1.0' do - impact 1.0 - title 'google_compute_region_notification_endpoint resource test' - - describe google_compute_region_notification_endpoint(project: gcp_project_id, region: region_notification_endpoint['region'], name: region_notification_endpoint['name']) do - it { should exist } - end -end diff --git a/inspec/test/integration/verify/controls/google_compute_region_notification_endpoints.rb b/inspec/test/integration/verify/controls/google_compute_region_notification_endpoints.rb deleted file mode 100644 index ce5c076ce..000000000 --- a/inspec/test/integration/verify/controls/google_compute_region_notification_endpoints.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- - -title 'Test GCP google_compute_region_notification_endpoints resource.' - -gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - -region_notification_endpoint = input('security_policy', value: { - "region": 'value_region', -"notificationendpoint": 'value_notificationendpoint', - }, description: 'region_notification_endpoint description') -control 'google_compute_region_notification_endpoints-1.0' do - impact 1.0 - title 'google_compute_region_notification_endpoints resource test' - - describe google_compute_region_notification_endpoints(project: gcp_project_id, region: region_notification_endpoint['region']) do - it { should exist } - end -end diff --git a/inspec/test/integration/verify/controls/google_compute_region_security_policies.rb b/inspec/test/integration/verify/controls/google_compute_region_security_policies.rb deleted file mode 100644 index 4ba2eab84..000000000 --- a/inspec/test/integration/verify/controls/google_compute_region_security_policies.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- - -title 'Test GCP google_compute_region_security_policies resource.' - -gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - -region_security_policy = input('security_policy', value: { - "securitypolicy": 'value_securitypolicy', - }, description: 'region_security_policy description') -control 'google_compute_region_security_policies-1.0' do - impact 1.0 - title 'google_compute_region_security_policies resource test' - - describe google_compute_region_security_policies(project: gcp_project_id, region: region_security_policy['region']) do - it { should exist } - end -end diff --git a/inspec/test/integration/verify/controls/google_compute_region_security_policy.rb b/inspec/test/integration/verify/controls/google_compute_region_security_policy.rb deleted file mode 100644 index e807ca71b..000000000 --- a/inspec/test/integration/verify/controls/google_compute_region_security_policy.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- - -title 'Test GCP google_compute_region_security_policy resource.' - -gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - -region_security_policy = input('security_policy', value: { - "securitypolicy": 'value_securitypolicy', - }, description: 'region_security_policy description') -control 'google_compute_region_security_policy-1.0' do - impact 1.0 - title 'google_compute_region_security_policy resource test' - - describe google_compute_region_security_policy(project: gcp_project_id, region: region_security_policy['region'], name: region_security_policy['name']) do - it { should exist } - end -end