From cdd05cd894dd0f446972282abeaec5feb3eb6e41 Mon Sep 17 00:00:00 2001 From: zjhe Date: Fri, 10 Feb 2023 15:03:31 +0800 Subject: [PATCH] update test framework to use msi id when possible, update gitignore file --- .gitignore | 5 ++++- test/e2e/quickstart_test.go | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a80b8043..b794e4cb 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,7 @@ _repo.*/ *.tmp go.sum -TestRecord \ No newline at end of file +TestRecord +**/TestRecord.md.tmp +terraform.tfstate +terraform.tfstate.backup \ No newline at end of file diff --git a/test/e2e/quickstart_test.go b/test/e2e/quickstart_test.go index 183809fe..64eaaf0f 100644 --- a/test/e2e/quickstart_test.go +++ b/test/e2e/quickstart_test.go @@ -12,6 +12,10 @@ import ( ) func Test_Quickstarts(t *testing.T) { + msiId := os.Getenv("MSI_ID") + if msiId != "" { + _ = os.Setenv("TF_VAR_msi_id", msiId) + } input := os.Getenv("CHANGED_FOLDERS") folders := strings.Split(input, ",") if input == "" {