try to fix 201-vmss-packer-jumpbox

This commit is contained in:
hezijie
2024-09-14 12:23:05 +08:00
parent 39dcf38e31
commit 1b66215af1
2 changed files with 21 additions and 5 deletions

View File

@ -127,6 +127,12 @@ func test201VmssPackerJumpbox(t *testing.T) {
if tenantId := os.Getenv("ARM_TENANT_ID"); tenantId != "" {
packerVars["tenant_id"] = tenantId
}
if oidcRequestToken := os.Getenv("ACTIONS_ID_TOKEN_REQUEST_TOKEN"); oidcRequestToken != "" {
packerVars["oidc_request_token"] = oidcRequestToken
}
if oidcRequestUrl := os.Getenv("ACTIONS_ID_TOKEN_REQUEST_URL"); oidcRequestUrl != "" {
packerVars["oidc_request_url"] = oidcRequestUrl
}
patches := gomonkey.ApplyFunc(shell.RunCommandAndGetOutputE, func(t terratest.TestingT, command shell.Command) (string, error) {
output, err := shell.RunCommandAndGetStdOutE(t, command)
if err != nil {