Skip to content

Commit 5fe1356

Browse files
authored
chore(bigquery-jdbc): fix Nightly tests within proxy docker (#13841)
1 parent 05ce6ce commit 5fe1356

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

java-bigquery-jdbc/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ run-it-standalone:
8585
-v "$(GOOGLE_APPLICATION_CREDENTIALS).p12":/auth/application_creds.p12 \
8686
-e "GOOGLE_APPLICATION_CREDENTIALS=/auth/application_creds.json" \
8787
-v $(SRC):/src \
88-
-e "SA_EMAIL=test_email" \
88+
-e "SA_EMAIL=$(SA_EMAIL)" \
89+
-e "KMS_RESOURCE_PATH=$(KMS_RESOURCE_PATH)" \
8990
-e "SA_SECRET=/auth/application_creds.json" \
9091
-e "SA_SECRET_P12=/auth/application_creds.p12" \
9192
-e "BIGQUERY_BASE_URL=$(BIGQUERY_BASE_URL)" \

java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import static org.junit.jupiter.api.Assertions.assertTrue;
2727

2828
import com.google.cloud.ServiceOptions;
29-
import com.google.cloud.bigquery.BigQuery;
30-
import com.google.cloud.bigquery.BigQueryOptions;
3129
import com.google.cloud.bigquery.Job;
3230
import com.google.cloud.bigquery.JobInfo;
3331
import com.google.cloud.bigquery.QueryJobConfiguration;
@@ -60,7 +58,6 @@ public class ITNightlyBigQueryTest extends ITBase {
6058
static final String PROJECT_ID = ServiceOptions.getDefaultProjectId();
6159
static Connection bigQueryConnection;
6260
static Statement bigQueryStatement;
63-
static BigQuery bigQuery;
6461
private static final Random random = new Random();
6562
private static final int randomNumber = random.nextInt(9999);
6663
private static final String BASE_QUERY =
@@ -91,7 +88,6 @@ public static void beforeClass() throws SQLException {
9188
DATASET2 = ITBase.getSharedDataset2();
9289
bigQueryConnection = DriverManager.getConnection(connection_uri, new Properties());
9390
bigQueryStatement = bigQueryConnection.createStatement();
94-
bigQuery = BigQueryOptions.newBuilder().build().getService();
9591
}
9692

9793
@AfterAll

0 commit comments

Comments
 (0)