File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed
mmv1/templates/terraform/examples/base_configs Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -62,24 +62,12 @@ func TestAcc{{ $e.TestSlug $.Res.ProductMetadata.Name $.Res.Name }}(t *testing.T
6262 })
6363 {{- end }}
6464
65- randomSuffix := acctest.RandString(t, 10)
66- context := make(map[string]interface{})
67- context["random_suffix"] = randomSuffix
68-
69- envVars := map[string]interface{}{
70- {{- template "EnvVarContext" dict "TestEnvVars" $e.TestEnvVars "HasNewLine" false}}
71- }
72- for k, v := range envVars {
73- context[k] = v
74- }
75-
76- overrides := map[string]interface{}{
77- {{- range $varKey, $varVal := $e.TestVarsOverrides }}
65+ context := map[string]interface{}{
66+ {{- template "EnvVarContext" dict "TestEnvVars" $e.TestEnvVars "HasNewLine" false}}
67+ {{- range $varKey, $varVal := $e.TestVarsOverrides }}
7868 "{{$varKey}}": {{$varVal}},
79- {{- end }}
80- }
81- for k, v := range overrides {
82- context[k] = v
69+ {{- end }}
70+ "random_suffix": acctest.RandString(t, 10),
8371 }
8472
8573 acctest.VcrTest(t, resource.TestCase{
You can’t perform that action at this time.
0 commit comments