From 8f965dad2e50441aaaacc1c4431a7e4a5546dd91 Mon Sep 17 00:00:00 2001 From: sumeetgajjar Date: Fri, 23 Jun 2023 08:56:44 -0700 Subject: [PATCH] Remove unwanted test(s) --- .../cloud/bigquery/BigQueryImplTest.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java index 734932062..cdcadc88c 100644 --- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java +++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java @@ -43,7 +43,6 @@ import com.google.api.services.bigquery.model.TableDataInsertAllResponse; import com.google.api.services.bigquery.model.TableDataList; import com.google.api.services.bigquery.model.TableRow; -import com.google.auth.oauth2.ServiceAccountCredentials; import com.google.cloud.Policy; import com.google.cloud.ServiceOptions; import com.google.cloud.Tuple; @@ -2865,27 +2864,4 @@ public void testTestIamPermissionsWhenNoPermissionsGranted() { assertEquals(perms, ImmutableList.of()); verify(bigqueryRpcMock).testIamPermissions(resourceId, checkedPermissions, EMPTY_RPC_OPTIONS); } - - @Test - public void testSumeet() throws Exception { - String projectId = "scio-apps"; - String datasetId = "staging"; - String tableName = "processed_visits"; - FileInputStream stream = new FileInputStream("/Users/sumeet/revefi/creds/bigquery-glean.json"); - getBqTable(stream, projectId, datasetId, tableName); - } - - private static void getBqTable( - FileInputStream stream, String projectId, String datasetId, String tableName) - throws Exception { - BigQuery bigquery = - BigQueryOptions.newBuilder() - .setCredentials(ServiceAccountCredentials.fromStream(stream)) - .build() - .getService(); - - Table table = bigquery.getTable(TableId.of(projectId, datasetId, tableName)); - // var json = WRITER.writeValueAsString(table); - System.out.println(table.getNumTotalLogicalBytes()); - } }