update test framework to use msi id when possible, update gitignore file
This commit is contained in:
parent
82a1bc5993
commit
cdd05cd894
5
.gitignore
vendored
5
.gitignore
vendored
@ -16,4 +16,7 @@ _repo.*/
|
|||||||
*.tmp
|
*.tmp
|
||||||
go.sum
|
go.sum
|
||||||
|
|
||||||
TestRecord
|
TestRecord
|
||||||
|
**/TestRecord.md.tmp
|
||||||
|
terraform.tfstate
|
||||||
|
terraform.tfstate.backup
|
@ -12,6 +12,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func Test_Quickstarts(t *testing.T) {
|
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")
|
input := os.Getenv("CHANGED_FOLDERS")
|
||||||
folders := strings.Split(input, ",")
|
folders := strings.Split(input, ",")
|
||||||
if input == "" {
|
if input == "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user