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:
parent
dcb84ee2c2
commit
3023ae2813
|
@ -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": "",
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue