Skip to content

Commit

Permalink
test(bigquery): make policy tag setup use unique display names (#5846)
Browse files Browse the repository at this point in the history
Fixes: #5809
  • Loading branch information
shollyman committed Apr 4, 2022
1 parent 1393571 commit c7642bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bigquery/integration_test.go
Expand Up @@ -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,
Expand Down

0 comments on commit c7642bb

Please sign in to comment.