From 4bc766d97d560bfe8e322e4f4f008c652a3d7e6f Mon Sep 17 00:00:00 2001 From: Shouichi Kamiya Date: Thu, 27 Oct 2022 14:27:09 +0900 Subject: [PATCH] Specify ngrok config version (#2610) Also prefix ngrok config temporary filename so that it is easy to distinguish when listing the tmp directory. --- testdrive/testdrive.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testdrive/testdrive.go b/testdrive/testdrive.go index 225dfcc52..14816e5a9 100644 --- a/testdrive/testdrive.go +++ b/testdrive/testdrive.go @@ -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: @@ -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") }