Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(bigtable): refactor bigtable integration tests (#4148)
Refactors bigtable integration tests to operate correctly against production. Also made more flags optional to simplify execution.
- Loading branch information
Showing
3 changed files
with
114 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Bigtable client contribution guide | ||
|
||
For a complete guide to contributing to Google Cloud Go client libraries, view | ||
the [top-level contributing guide](../CONTRIBUTING.md). | ||
|
||
## Running Integration Tests | ||
The Bigtable integration tests will target the emulator by default. Some of the | ||
tests can only be run against production however. In order to do this you will | ||
need to specify a few command line flags. | ||
|
||
``` | ||
go test -test.run="TestIntegration_*" -v \ | ||
-it.use-prod \ | ||
-it.project="your-project-id" \ | ||
-it.cluster="your-test-cluster" \ | ||
-it.instance="your-test-instance" | ||
``` | ||
|
||
> **Note**: More flags exist and can be found in `export_test.go` | ||
If you do not have a cluster and instance to target, you can create one via `cbt`: | ||
|
||
``` | ||
# Creates a one node cluster in us-central1 with SSD storage | ||
cbt createinstance <instance-name> <display-name> <cluster-name> us-central1-b 1 SSD | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters