From b53e61e2c3277e0c758b5ae0807631c14a73520d Mon Sep 17 00:00:00 2001 From: Sneha Prasad <32434989+snpd25@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:50:57 +0530 Subject: [PATCH] Remove securityposture deployment basic test (#11019) Co-authored-by: Sneha Prasad --- .../securityposture/PostureDeployment.yaml | 11 +------ ...ityposture_posture_deployment_basic.tf.erb | 32 ------------------- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 mmv1/templates/terraform/examples/securityposture_posture_deployment_basic.tf.erb diff --git a/mmv1/products/securityposture/PostureDeployment.yaml b/mmv1/products/securityposture/PostureDeployment.yaml index 0df1f718a997..327d55cf5cc0 100644 --- a/mmv1/products/securityposture/PostureDeployment.yaml +++ b/mmv1/products/securityposture/PostureDeployment.yaml @@ -32,16 +32,7 @@ autogen_async: true async: !ruby/object:Api::OpAsync operation: !ruby/object:Api::OpAsync::Operation base_url: '{{op_id}}' -examples: - - !ruby/object:Provider::Terraform::Examples - name: 'securityposture_posture_deployment_basic' - primary_resource_id: 'postureDeployment' - vars: - posture_id: "posture_1" - deployment_id: "posture_deployment_1" - test_env_vars: - org_id: :ORG_ID - project_number: :PROJECT_NUMBER + parameters: - !ruby/object:Api::Type::String name: parent diff --git a/mmv1/templates/terraform/examples/securityposture_posture_deployment_basic.tf.erb b/mmv1/templates/terraform/examples/securityposture_posture_deployment_basic.tf.erb deleted file mode 100644 index af6d2ea842cf..000000000000 --- a/mmv1/templates/terraform/examples/securityposture_posture_deployment_basic.tf.erb +++ /dev/null @@ -1,32 +0,0 @@ -resource "google_securityposture_posture" "posture_1" { - posture_id = "<%= ctx[:vars]['posture_id'] %>" - parent = "organizations/<%= ctx[:test_env_vars]['org_id'] %>" - location = "global" - state = "ACTIVE" - description = "a new posture" - policy_sets { - policy_set_id = "org_policy_set" - description = "set of org policies" - policies { - policy_id = "policy_1" - constraint { - org_policy_constraint { - canned_constraint_id = "storage.uniformBucketLevelAccess" - policy_rules { - enforce = true - } - } - } - } - } -} - -resource "google_securityposture_posture_deployment" "<%= ctx[:primary_resource_id] %>" { - posture_deployment_id = "<%= ctx[:vars]['deployment_id'] %>" - parent = "organizations/<%= ctx[:test_env_vars]['org_id'] %>" - location = "global" - description = "a new posture deployment" - target_resource = "projects/<%= ctx[:test_env_vars]['project_number'] %>" - posture_id = google_securityposture_posture.posture_1.name - posture_revision_id = google_securityposture_posture.posture_1.revision_id -}