Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: checking bigqueryconnection IT test #9539

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test: check-env build
mvn --quiet --batch-mode --fail-at-end clean verify \
-Dfile.encoding="UTF-8" \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-Dmaven.test.redirectTestOutputToFile=true \
-Dmaven.test.redirectTestOutputToFile=false \
-Dbigtable.projectID="${GOOGLE_CLOUD_PROJECT}" \
-Dbigtable.instanceID=instance

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.junit.BeforeClass;
import org.junit.Test;

/* Test for creating BigQuery connection */
public class CreateConnectionIT {

private static final Logger LOG = Logger.getLogger(CreateConnectionIT.class.getName());
Expand Down Expand Up @@ -88,6 +89,7 @@ public void tearDown() throws IOException {
@Test
public void testCreateConnection() throws IOException {
String instanceId = String.format("%s:%s:%s", PROJECT_ID, REGION, MY_SQL_INSTANCE);
System.out.println("CreateConnectionIT instanceId: " + instanceId);
CloudSqlCredential cloudSqlCredential =
CloudSqlCredential.newBuilder().setUsername(DB_USER).setPassword(DB_PWD).build();
CloudSqlProperties cloudSqlProperties =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public void setUp() throws IOException {
// create a temporary connection
connectionId = "GET_CONNECTION_TEST_" + UUID.randomUUID().toString().substring(0, 8);
String instanceId = String.format("%s:%s:%s", PROJECT_ID, REGION, MY_SQL_INSTANCE);
System.out.println("GetConnectionIT instanceId: " + instanceId);
CloudSqlCredential cloudSqlCredential =
CloudSqlCredential.newBuilder().setUsername(DB_USER).setPassword(DB_PWD).build();
CloudSqlProperties cloudSqlProperties =
Expand Down