From e16c5430fbaab3f122744107c8d6c7b9a7230e0b Mon Sep 17 00:00:00 2001 From: Seth Hollyman Date: Mon, 4 Apr 2022 19:07:32 +0000 Subject: [PATCH] test(bigquery): make policy tag setup use unique display names Fixes: https://github.com/googleapis/google-cloud-go/issues/5809 --- bigquery/integration_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bigquery/integration_test.go b/bigquery/integration_test.go index 1c6f5c823e8..8ae6f8f8d83 100644 --- a/bigquery/integration_test.go +++ b/bigquery/integration_test.go @@ -1130,7 +1130,8 @@ func setupPolicyTag(ctx context.Context) (string, func(), error) { req := &datacatalogpb.CreateTaxonomyRequest{ Parent: fmt.Sprintf("projects/%s/locations/%s", testutil.ProjID(), location), Taxonomy: &datacatalogpb.Taxonomy{ - DisplayName: "google-cloud-go bigquery testing taxonomy", + // DisplayName must be unique across org. + DisplayName: fmt.Sprintf("google-cloud-go bigquery testing taxonomy %d", time.Now().UnixNano()), Description: "Taxonomy created for google-cloud-go integration tests", ActivatedPolicyTypes: []datacatalogpb.Taxonomy_PolicyType{ datacatalogpb.Taxonomy_FINE_GRAINED_ACCESS_CONTROL,