Skip to content

Commit

Permalink
test(bigtable): abbrviate instance and cluster names to avoid length …
Browse files Browse the repository at this point in the history
…overrun (#4973)
  • Loading branch information
crwilcox authored Oct 11, 2021
1 parent 26dff4f commit 3441e1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bigtable/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,7 @@ func TestIntegration_AdminBackup(t *testing.T) {
t.Fatalf("NewInstanceAdminClient: %v", err)
}
defer iAdminClient.Close()
uniqueID := make([]byte, 8)
uniqueID := make([]byte, 4)
_, err = rand.Read(uniqueID)
diffInstance := fmt.Sprintf("%s-d-%x", testEnv.Config().Instance, uniqueID)
diffCluster := sourceCluster + "-d"
Expand Down
8 changes: 4 additions & 4 deletions internal/kokoro/continuous.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export GCLOUD_TESTS_GOLANG_KEYRING=projects/dulcet-port-762/locations/us/keyRing
export GCLOUD_TESTS_GOLANG_PROFILER_ZONE="us-west1-b"

# Bigtable integration tests expect an existing instance and cluster
# ❯ cbt createinstance gcloud-bt-it-tests-instance gcloud-bt-it-tests-instance \
# gcloud-bt-it-tests-cluster us-west1-b 1 SSD
# ❯ cbt createinstance gc-bt-it-instance gc-bt-it-instance \
# gc-bt-it-cluster us-west1-b 1 SSD
export GCLOUD_TESTS_BIGTABLE_KEYRING=projects/dulcet-port-762/locations/us-central1/keyRings/go-integration-test
export GCLOUD_TESTS_BIGTABLE_CLUSTER="gcloud-bt-it-tests-cluster"
export GCLOUD_TESTS_BIGTABLE_INSTANCE="gcloud-bt-it-tests-instance"
export GCLOUD_TESTS_BIGTABLE_CLUSTER="gc-bt-it-cluster"
export GCLOUD_TESTS_BIGTABLE_INSTANCE="gc-bt-it-instance"

# Fail on any error
set -eo pipefail
Expand Down

0 comments on commit 3441e1f

Please sign in to comment.