chore: Update generation configuration at Tue Apr 15 02:30:13 UTC 202… · googleapis/java-bigquerystorage@f5c01da
@@ -96,6 +96,7 @@ public void batchCreateMetastorePartitionsTest() throws Exception {
9696 .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
9797 .addAllRequests(new ArrayList<CreateMetastorePartitionRequest>())
9898 .setSkipExistingPartitions(true)
99+ .setTraceId("traceId-1067401920")
99100 .build();
100101101102BatchCreateMetastorePartitionsResponse actualResponse =
@@ -111,6 +112,7 @@ public void batchCreateMetastorePartitionsTest() throws Exception {
111112Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList());
112113Assert.assertEquals(
113114request.getSkipExistingPartitions(), actualRequest.getSkipExistingPartitions());
115+Assert.assertEquals(request.getTraceId(), actualRequest.getTraceId());
114116Assert.assertTrue(
115117channelProvider.isHeaderSent(
116118ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -128,6 +130,7 @@ public void batchCreateMetastorePartitionsExceptionTest() throws Exception {
128130 .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
129131 .addAllRequests(new ArrayList<CreateMetastorePartitionRequest>())
130132 .setSkipExistingPartitions(true)
133+ .setTraceId("traceId-1067401920")
131134 .build();
132135client.batchCreateMetastorePartitions(request);
133136Assert.fail("No exception raised");
@@ -145,6 +148,7 @@ public void batchDeleteMetastorePartitionsTest() throws Exception {
145148BatchDeleteMetastorePartitionsRequest.newBuilder()
146149 .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
147150 .addAllPartitionValues(new ArrayList<MetastorePartitionValues>())
151+ .setTraceId("traceId-1067401920")
148152 .build();
149153150154client.batchDeleteMetastorePartitions(request);
@@ -156,6 +160,7 @@ public void batchDeleteMetastorePartitionsTest() throws Exception {
156160157161Assert.assertEquals(request.getParent(), actualRequest.getParent());
158162Assert.assertEquals(request.getPartitionValuesList(), actualRequest.getPartitionValuesList());
163+Assert.assertEquals(request.getTraceId(), actualRequest.getTraceId());
159164Assert.assertTrue(
160165channelProvider.isHeaderSent(
161166ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -172,6 +177,7 @@ public void batchDeleteMetastorePartitionsExceptionTest() throws Exception {
172177BatchDeleteMetastorePartitionsRequest.newBuilder()
173178 .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
174179 .addAllPartitionValues(new ArrayList<MetastorePartitionValues>())
180+ .setTraceId("traceId-1067401920")
175181 .build();
176182client.batchDeleteMetastorePartitions(request);
177183Assert.fail("No exception raised");
@@ -192,6 +198,7 @@ public void batchUpdateMetastorePartitionsTest() throws Exception {
192198BatchUpdateMetastorePartitionsRequest.newBuilder()
193199 .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
194200 .addAllRequests(new ArrayList<UpdateMetastorePartitionRequest>())
201+ .setTraceId("traceId-1067401920")
195202 .build();
196203197204BatchUpdateMetastorePartitionsResponse actualResponse =
@@ -205,6 +212,7 @@ public void batchUpdateMetastorePartitionsTest() throws Exception {
205212206213Assert.assertEquals(request.getParent(), actualRequest.getParent());
207214Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList());
215+Assert.assertEquals(request.getTraceId(), actualRequest.getTraceId());
208216Assert.assertTrue(
209217channelProvider.isHeaderSent(
210218ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -221,6 +229,7 @@ public void batchUpdateMetastorePartitionsExceptionTest() throws Exception {
221229BatchUpdateMetastorePartitionsRequest.newBuilder()
222230 .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
223231 .addAllRequests(new ArrayList<UpdateMetastorePartitionRequest>())
232+ .setTraceId("traceId-1067401920")
224233 .build();
225234client.batchUpdateMetastorePartitions(request);
226235Assert.fail("No exception raised");