Standalone tests that can be conducted on their own
A Google Cloud account with a configured BigQuery instance is required with a dataset created.
Google BigQuery component authentication is targeted for use with the GCP Service Accounts. For more information please refer to https://cloud.google.com/docs/authentication[Google Cloud Platform Auth Guide]
Google security credentials for the tests can be set in the
src/test/resources/simple.properties file by setting either one of the following in order of preference:
Or implicitly, where the connection factory falls back on https://developers.google.com/identity/protocols/application-default-credentials#howtheywork[Application Default Credentials].
OBS! The location of the default credentials file is configurable - via GOOGLE_APPLICATION_CREDENTIALS environment variable.
Service Account Email and Service Account Key can be found in the GCP JSON credentials file as client_email and private_key respectively.
For the tests the
bigquery.datasetId needs to be configured. By default the current google user will be used to connect but credentials can be provided either by account/key (via
service.key) or a credentials file (
Running tests against BigQuery instance:
mvn -Pgoogle-bigquery-test verify