backend/remote-state/gcs: Include project ID in bucket names when testing.

Since bucket names must be *globally* unique. By including the project
ID in the bucket name we ensure that people don't step on each other's
feet when testing.
This commit is contained in:
Florian Forster 2017-10-04 14:19:32 +02:00 committed by James Bardin
parent dcb84ee2c2
commit 3023ae2813
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ package gcs
import (
"fmt"
"os"
"strings"
"testing"
"github.com/hashicorp/terraform/backend"
@ -118,7 +117,7 @@ func setupBackend(t *testing.T) backend.Backend {
config := map[string]interface{}{
"project": projectID,
"bucket": strings.ToLower(t.Name()),
"bucket": projectID + "-" + t.Name(),
"prefix": "",
}