fix tests

This commit is contained in:
Megan Marsh 2020-05-06 15:01:40 -07:00
parent fda55fe928
commit dae60799bc
1 changed files with 1 additions and 6 deletions

View File

@ -1,17 +1,12 @@
package googlecompute package googlecompute
import ( import (
"bytes"
"context" "context"
"fmt" "fmt"
"io"
"io/ioutil" "io/ioutil"
"os" "os"
"os/exec"
"runtime" "runtime"
"strings"
"testing" "testing"
"time"
"github.com/hashicorp/packer/helper/communicator" "github.com/hashicorp/packer/helper/communicator"
) )
@ -73,7 +68,7 @@ gcloud compute start-iap-tunnel fakeinstance-12345 1234 --local-host-port=localh
` `
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
expected = ` expected = `
call gcloud auth activate-service-account --key-file /path/to/account_file.json call gcloud auth activate-service-account --key-file "/path/to/account_file.json"
call gcloud config set project fake-project-123 call gcloud config set project fake-project-123
call gcloud compute start-iap-tunnel fakeinstance-12345 1234 --local-host-port=localhost:8774 --zone us-central-b call gcloud compute start-iap-tunnel fakeinstance-12345 1234 --local-host-port=localhost:8774 --zone us-central-b
` `