Skip to content

Commit

Permalink
Specify ngrok config version (runatlantis#2610)
Browse files Browse the repository at this point in the history
Also prefix ngrok config temporary filename so that it is easy to
distinguish when listing the tmp directory.
  • Loading branch information
shouichi authored and krrrr38 committed Dec 16, 2022
1 parent c5e10cf commit 31a4ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testdrive/testdrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ Follow these instructions to create a token (we don't store any tokens):
// will just choose a random API port and we won't be able to get the right
// url.
ngrokConfig := fmt.Sprintf(`
version: 1
web_addr: %s
tunnels:
atlantis:
Expand All @@ -181,7 +182,7 @@ tunnels:
proto: http
`, ngrokAPIURL, atlantisPort)

ngrokConfigFile, err := os.CreateTemp("", "")
ngrokConfigFile, err := os.CreateTemp("", "atlantis-testdrive-ngrok-config")
if err != nil {
return errors.Wrap(err, "creating ngrok config file")
}
Expand Down

0 comments on commit 31a4ef2

Please sign in to comment.