Skip to content

Commit

Permalink
Fix dataproc tests to use sweepable names (GoogleCloudPlatform#9469)
Browse files Browse the repository at this point in the history
  • Loading branch information
roaks3 authored and davcen committed Nov 17, 2023
1 parent 7ade9bb commit eae2206
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions mmv1/products/metastore/Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,23 @@ examples:
skip_docs: true
primary_resource_id: 'telemetry'
vars:
metastore_service_name: 'telemetry'
metastore_service_name: 'ms-telemetry'
- !ruby/object:Provider::Terraform::Examples
name: 'dataproc_metastore_service_dpms2'
primary_resource_id: 'dpms2'
vars:
metastore_service_name: 'dpms2'
metastore_service_name: 'ms-dpms2'
- !ruby/object:Provider::Terraform::Examples
name: 'dataproc_metastore_service_dpms2_scaling_factor'
primary_resource_id: 'dpms2_scaling_factor'
vars:
metastore_service_name: 'dpms2sf'
metastore_service_name: 'ms-dpms2sf'
- !ruby/object:Provider::Terraform::Examples
name: 'dataproc_metastore_service_dpms2_scaling_factor_lt1'
skip_docs: true
primary_resource_id: 'dpms2_scaling_factor_lt1'
vars:
metastore_service_name: 'dpms2sflt1'
metastore_service_name: 'ms-dpms2sflt1'
parameters:
- !ruby/object:Api::Type::String
name: 'serviceId'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
func TestAccDataprocClusterIamBinding(t *testing.T) {
t.Parallel()

cluster := "tf-dataproc-iam-" + acctest.RandString(t, 10)
account := "tf-dataproc-iam-" + acctest.RandString(t, 10)
cluster := "tf-test-iam-" + acctest.RandString(t, 10)
account := "tf-test-dpiam-" + acctest.RandString(t, 10)
role := "roles/editor"

networkName := acctest.BootstrapSharedTestNetwork(t, "dataproc-cluster")
Expand Down Expand Up @@ -58,8 +58,8 @@ func TestAccDataprocClusterIamBinding(t *testing.T) {
func TestAccDataprocClusterIamMember(t *testing.T) {
t.Parallel()

cluster := "tf-dataproc-iam-" + acctest.RandString(t, 10)
account := "tf-dataproc-iam-" + acctest.RandString(t, 10)
cluster := "tf-test-iam-" + acctest.RandString(t, 10)
account := "tf-test-dpiam-" + acctest.RandString(t, 10)
role := "roles/editor"

networkName := acctest.BootstrapSharedTestNetwork(t, "dataproc-cluster")
Expand Down Expand Up @@ -100,8 +100,8 @@ func TestAccDataprocClusterIamMember(t *testing.T) {
func TestAccDataprocClusterIamPolicy(t *testing.T) {
t.Parallel()

cluster := "tf-dataproc-iam-" + acctest.RandString(t, 10)
account := "tf-dataproc-iam-" + acctest.RandString(t, 10)
cluster := "tf-test-iam-" + acctest.RandString(t, 10)
account := "tf-test-dpiam-" + acctest.RandString(t, 10)
role := "roles/editor"

networkName := acctest.BootstrapSharedTestNetwork(t, "dataproc-cluster")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
func TestAccDataprocJobIamBinding(t *testing.T) {
t.Parallel()

cluster := "tf-dataproc-iam-cluster" + acctest.RandString(t, 10)
job := "tf-dataproc-iam-job-" + acctest.RandString(t, 10)
account := "tf-dataproc-iam-" + acctest.RandString(t, 10)
cluster := "tf-test-iam-" + acctest.RandString(t, 10)
job := "tf-test-iam-" + acctest.RandString(t, 10)
account := "tf-test-dpiam-" + acctest.RandString(t, 10)
role := "roles/editor"

networkName := acctest.BootstrapSharedTestNetwork(t, "dataproc-cluster")
Expand Down Expand Up @@ -55,9 +55,9 @@ func TestAccDataprocJobIamBinding(t *testing.T) {
func TestAccDataprocJobIamMember(t *testing.T) {
t.Parallel()

cluster := "tf-dataproc-iam-cluster" + acctest.RandString(t, 10)
job := "tf-dataproc-iam-jobid-" + acctest.RandString(t, 10)
account := "tf-dataproc-iam-" + acctest.RandString(t, 10)
cluster := "tf-test-iam-" + acctest.RandString(t, 10)
job := "tf-test-iam-" + acctest.RandString(t, 10)
account := "tf-test-dpiam-" + acctest.RandString(t, 10)
role := "roles/editor"

networkName := acctest.BootstrapSharedTestNetwork(t, "dataproc-cluster")
Expand Down Expand Up @@ -92,9 +92,9 @@ func TestAccDataprocJobIamMember(t *testing.T) {
func TestAccDataprocJobIamPolicy(t *testing.T) {
t.Parallel()

cluster := "tf-dataproc-iam-cluster" + acctest.RandString(t, 10)
job := "tf-dataproc-iam-jobid-" + acctest.RandString(t, 10)
account := "tf-dataproc-iam-" + acctest.RandString(t, 10)
cluster := "tf-test-iam-" + acctest.RandString(t, 10)
job := "tf-test-iam-" + acctest.RandString(t, 10)
account := "tf-test-dpiam-" + acctest.RandString(t, 10)
role := "roles/editor"

networkName := acctest.BootstrapSharedTestNetwork(t, "dataproc-cluster")
Expand Down

0 comments on commit eae2206

Please sign in to comment.