Skip to content

Commit bd7031a

Browse files
committed
make changes in test_file.go.tmpl to generate identity test on abcd products
1 parent 2acb0ef commit bd7031a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mmv1/templates/terraform/examples/base_configs/test_file.go.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ func TestAcc{{ $e.TestSlug $.Res.ProductMetadata.Name $.Res.Name }}(t *testing.T
102102
},
103103
{{- end }}
104104
{{- if eq $i 0 }}
105-
{{- if lt (index $.Res.ProductMetadata.ApiName 0) 'a' }}
106-
105+
{{- $firstChar := index $.Res.ProductMetadata.ApiName 0 -}}
106+
{{- if or (and (ge $firstChar 'a') (le $firstChar 'b')) (eq $firstChar 'c') (eq $firstChar 'd') }}
107107
{
108108
ResourceName: "{{ $.Res.TerraformName }}.{{ $e.PrimaryResourceId }}",
109109
RefreshState: true,

0 commit comments

Comments
 (0)