From b669d8c636138a1fcc77c365c700d871247c1eb9 Mon Sep 17 00:00:00 2001 From: stephwang Date: Tue, 5 Apr 2022 11:40:57 -0400 Subject: [PATCH] chore: make policy tag setup use unique display names In accordance with https://github.com/googleapis/google-cloud-go/pull/5846 --- .../test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 9f877cf23..c8f7ce4fa 100644 --- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -943,7 +943,8 @@ public void testCreateAndUpdateTableWithPolicyTags() throws IOException { .setParent(String.format("projects/%s/locations/%s", PROJECT_ID, "us")) .setTaxonomy( Taxonomy.newBuilder() - .setDisplayName("testing taxonomy") + // DisplayName must be unique across org + .setDisplayName(String.format("testing taxonomy %s", Instant.now().getNano())) .setDescription("taxonomy created for integration tests") .addActivatedPolicyTypes(PolicyType.FINE_GRAINED_ACCESS_CONTROL) .build())