From 9a43aad667fe03379de568a9d176372617b06a2c Mon Sep 17 00:00:00 2001 From: Dirk Avery Date: Fri, 24 May 2024 10:59:06 -0400 Subject: [PATCH] generate: Fix constants in generator --- internal/generate/tagstests/test.go.gtpl | 224 +++++++++++------------ 1 file changed, 112 insertions(+), 112 deletions(-) diff --git a/internal/generate/tagstests/test.go.gtpl b/internal/generate/tagstests/test.go.gtpl index 34942039ed40..b689dd1ca6df 100644 --- a/internal/generate/tagstests/test.go.gtpl +++ b/internal/generate/tagstests/test.go.gtpl @@ -101,7 +101,7 @@ func {{ template "testname" . }}_tags(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -133,7 +133,7 @@ func {{ template "testname" . }}_tags(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -147,7 +147,7 @@ func {{ template "testname" . }}_tags(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1Updated), acctest.CtKey2: config.StringVariable(acctest.CtValue2), }), @@ -183,7 +183,7 @@ func {{ template "testname" . }}_tags(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1Updated), acctest.CtKey2: config.StringVariable(acctest.CtValue2), }), @@ -198,7 +198,7 @@ func {{ template "testname" . }}_tags(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey2: config.StringVariable(acctest.CtValue2), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -233,7 +233,7 @@ func {{ template "testname" . }}_tags(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey2: config.StringVariable(acctest.CtValue2), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -250,7 +250,7 @@ func {{ template "testname" . }}_tags(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -282,7 +282,7 @@ func {{ template "testname" . }}_tags(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -310,7 +310,7 @@ func {{ template "testname" . }}_tags_null(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: nil, }), {{ range $name, $value := .AdditionalTfVars -}} @@ -341,7 +341,7 @@ func {{ template "testname" . }}_tags_null(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: nil, }), {{ range $name, $value := .AdditionalTfVars -}} @@ -355,7 +355,7 @@ func {{ template "testname" . }}_tags_null(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -377,7 +377,7 @@ func {{ template "testname" . }}_tags_AddOnUpdate(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -405,7 +405,7 @@ func {{ template "testname" . }}_tags_AddOnUpdate(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -437,7 +437,7 @@ func {{ template "testname" . }}_tags_AddOnUpdate(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -464,7 +464,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnCreate(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(""), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -501,7 +501,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnCreate(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(""), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -515,7 +515,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnCreate(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -544,7 +544,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnCreate(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -569,7 +569,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnUpdate_Add(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -600,7 +600,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnUpdate_Add(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), acctest.CtKey2: config.StringVariable(""), }), @@ -641,7 +641,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnUpdate_Add(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), acctest.CtKey2: config.StringVariable(""), }), @@ -656,7 +656,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnUpdate_Add(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -688,7 +688,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnUpdate_Add(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -715,7 +715,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnUpdate_Replace(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -746,7 +746,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnUpdate_Replace(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(""), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -783,7 +783,7 @@ func {{ template "testname" . }}_tags_EmptyTag_OnUpdate_Replace(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(""), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -811,7 +811,7 @@ func {{ template "testname" . }}_tags_DefaultTags_providerOnly(t *testing.T) { acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -844,7 +844,7 @@ func {{ template "testname" . }}_tags_DefaultTags_providerOnly(t *testing.T) { acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -861,7 +861,7 @@ func {{ template "testname" . }}_tags_DefaultTags_providerOnly(t *testing.T) { acctest.CtKey1: config.StringVariable(acctest.CtValue1Updated), acctest.CtKey2: config.StringVariable(acctest.CtValue2), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -902,7 +902,7 @@ func {{ template "testname" . }}_tags_DefaultTags_providerOnly(t *testing.T) { acctest.CtKey1: config.StringVariable(acctest.CtValue1Updated), acctest.CtKey2: config.StringVariable(acctest.CtValue2), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -918,7 +918,7 @@ func {{ template "testname" . }}_tags_DefaultTags_providerOnly(t *testing.T) { acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey2: config.StringVariable(acctest.CtValue2), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -959,7 +959,7 @@ func {{ template "testname" . }}_tags_DefaultTags_providerOnly(t *testing.T) { acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey2: config.StringVariable(acctest.CtValue2), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -975,7 +975,7 @@ func {{ template "testname" . }}_tags_DefaultTags_providerOnly(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1009,7 +1009,7 @@ func {{ template "testname" . }}_tags_DefaultTags_providerOnly(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1036,10 +1036,10 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "providerkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtProviderKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "resourcekey1": config.StringVariable(acctest.CtResourceValue1), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtResourceKey1: config.StringVariable(acctest.CtResourceValue1), }), {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), @@ -1050,22 +1050,22 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { ), ConfigStateChecks: []statecheck.StateCheck{ statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "resourcekey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtResourceKey1: knownvalue.StringExact(acctest.CtResourceValue1), })), statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "providerkey1": knownvalue.StringExact(acctest.CtProviderValue1), - "resourcekey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtProviderKey1: knownvalue.StringExact(acctest.CtProviderValue1), + acctest.CtResourceKey1: knownvalue.StringExact(acctest.CtResourceValue1), })), }, ConfigPlanChecks: resource.ConfigPlanChecks{ PreApply: []plancheck.PlanCheck{ plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionCreate), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "resourcekey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtResourceKey1: knownvalue.StringExact(acctest.CtResourceValue1), })), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "providerkey1": knownvalue.StringExact(acctest.CtProviderValue1), - "resourcekey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtProviderKey1: knownvalue.StringExact(acctest.CtProviderValue1), + acctest.CtResourceKey1: knownvalue.StringExact(acctest.CtResourceValue1), })), }, }, @@ -1077,10 +1077,10 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "providerkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtProviderKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "resourcekey1": config.StringVariable(acctest.CtResourceValue1), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtResourceKey1: config.StringVariable(acctest.CtResourceValue1), }), {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), @@ -1095,10 +1095,10 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "providerkey1": config.StringVariable("providervalue1updated"), + acctest.CtProviderKey1: config.StringVariable("providervalue1updated"), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "resourcekey1": config.StringVariable("resourcevalue1updated"), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtResourceKey1: config.StringVariable("resourcevalue1updated"), "resourcekey2": config.StringVariable(acctest.CtResourceValue2), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1110,12 +1110,12 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { ), ConfigStateChecks: []statecheck.StateCheck{ statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "resourcekey1": knownvalue.StringExact("resourcevalue1updated"), + acctest.CtResourceKey1: knownvalue.StringExact("resourcevalue1updated"), "resourcekey2": knownvalue.StringExact(acctest.CtResourceValue2), })), statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "providerkey1": knownvalue.StringExact("providervalue1updated"), - "resourcekey1": knownvalue.StringExact("resourcevalue1updated"), + acctest.CtProviderKey1: knownvalue.StringExact("providervalue1updated"), + acctest.CtResourceKey1: knownvalue.StringExact("resourcevalue1updated"), "resourcekey2": knownvalue.StringExact(acctest.CtResourceValue2), })), }, @@ -1123,12 +1123,12 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { PreApply: []plancheck.PlanCheck{ plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionUpdate), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "resourcekey1": knownvalue.StringExact("resourcevalue1updated"), + acctest.CtResourceKey1: knownvalue.StringExact("resourcevalue1updated"), "resourcekey2": knownvalue.StringExact(acctest.CtResourceValue2), })), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "providerkey1": knownvalue.StringExact("providervalue1updated"), - "resourcekey1": knownvalue.StringExact("resourcevalue1updated"), + acctest.CtProviderKey1: knownvalue.StringExact("providervalue1updated"), + acctest.CtResourceKey1: knownvalue.StringExact("resourcevalue1updated"), "resourcekey2": knownvalue.StringExact(acctest.CtResourceValue2), })), }, @@ -1141,10 +1141,10 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "providerkey1": config.StringVariable("providervalue1updated"), + acctest.CtProviderKey1: config.StringVariable("providervalue1updated"), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "resourcekey1": config.StringVariable("resourcevalue1updated"), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtResourceKey1: config.StringVariable("resourcevalue1updated"), "resourcekey2": config.StringVariable(acctest.CtResourceValue2), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1159,7 +1159,7 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1193,7 +1193,7 @@ func {{ template "testname" . }}_tags_DefaultTags_nonOverlapping(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1220,10 +1220,10 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtOverlapKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtResourceValue1), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtOverlapKey1: config.StringVariable(acctest.CtResourceValue1), }), {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), @@ -1234,20 +1234,20 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ), ConfigStateChecks: []statecheck.StateCheck{ statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue1), })), statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue1), })), }, ConfigPlanChecks: resource.ConfigPlanChecks{ PreApply: []plancheck.PlanCheck{ plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionCreate), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue1), })), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue1), })), }, }, @@ -1259,10 +1259,10 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtOverlapKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtResourceValue1), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtOverlapKey1: config.StringVariable(acctest.CtResourceValue1), }), {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), @@ -1277,11 +1277,11 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtOverlapKey1: config.StringVariable(acctest.CtProviderValue1), "overlapkey2": config.StringVariable("providervalue2"), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtResourceValue1), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtOverlapKey1: config.StringVariable(acctest.CtResourceValue1), "overlapkey2": config.StringVariable(acctest.CtResourceValue2), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1293,11 +1293,11 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ), ConfigStateChecks: []statecheck.StateCheck{ statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue1), "overlapkey2": knownvalue.StringExact(acctest.CtResourceValue2), })), statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue1), "overlapkey2": knownvalue.StringExact(acctest.CtResourceValue2), })), }, @@ -1305,11 +1305,11 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { PreApply: []plancheck.PlanCheck{ plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionUpdate), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue1), "overlapkey2": knownvalue.StringExact(acctest.CtResourceValue2), })), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue1), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue1), "overlapkey2": knownvalue.StringExact(acctest.CtResourceValue2), })), }, @@ -1322,11 +1322,11 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtOverlapKey1: config.StringVariable(acctest.CtProviderValue1), "overlapkey2": config.StringVariable("providervalue2"), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtResourceValue1), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtOverlapKey1: config.StringVariable(acctest.CtResourceValue1), "overlapkey2": config.StringVariable(acctest.CtResourceValue2), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1342,10 +1342,10 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtOverlapKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtResourceValue2), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtOverlapKey1: config.StringVariable(acctest.CtResourceValue2), }), {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), @@ -1356,20 +1356,20 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ), ConfigStateChecks: []statecheck.StateCheck{ statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue2), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue2), })), statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue2), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue2), })), }, ConfigPlanChecks: resource.ConfigPlanChecks{ PreApply: []plancheck.PlanCheck{ plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionUpdate), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue2), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue2), })), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "overlapkey1": knownvalue.StringExact(acctest.CtResourceValue2), + acctest.CtOverlapKey1: knownvalue.StringExact(acctest.CtResourceValue2), })), }, }, @@ -1381,10 +1381,10 @@ func {{ template "testname" . }}_tags_DefaultTags_overlapping(t *testing.T) { ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtOverlapKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "overlapkey1": config.StringVariable(acctest.CtResourceValue2), + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtOverlapKey1: config.StringVariable(acctest.CtResourceValue2), }), {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), @@ -1408,7 +1408,7 @@ func {{ template "testname" . }}_tags_DefaultTags_updateToProviderOnly(t *testin ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1446,7 +1446,7 @@ func {{ template "testname" . }}_tags_DefaultTags_updateToProviderOnly(t *testin acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1484,7 +1484,7 @@ func {{ template "testname" . }}_tags_DefaultTags_updateToProviderOnly(t *testin acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1510,7 +1510,7 @@ func {{ template "testname" . }}_tags_DefaultTags_updateToResourceOnly(t *testin acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1539,7 +1539,7 @@ func {{ template "testname" . }}_tags_DefaultTags_updateToResourceOnly(t *testin ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1575,7 +1575,7 @@ func {{ template "testname" . }}_tags_DefaultTags_updateToResourceOnly(t *testin ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1606,7 +1606,7 @@ func {{ template "testname" . }}_tags_DefaultTags_emptyResourceTag(t *testing.T) acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(""), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1650,7 +1650,7 @@ func {{ template "testname" . }}_tags_DefaultTags_emptyResourceTag(t *testing.T) acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(""), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1681,7 +1681,7 @@ func {{ template "testname" . }}_tags_DefaultTags_emptyProviderOnlyTag(t *testin acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(""), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1719,7 +1719,7 @@ func {{ template "testname" . }}_tags_DefaultTags_emptyProviderOnlyTag(t *testin acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(""), }), - "resource_tags": nil, + acctest.CtResourceTags: nil, {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), {{ end }} @@ -1748,7 +1748,7 @@ func {{ template "testname" . }}_tags_DefaultTags_nullOverlappingResourceTag(t * acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: nil, }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1783,7 +1783,7 @@ func {{ template "testname" . }}_tags_DefaultTags_nullOverlappingResourceTag(t * acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: nil, }), {{ range $name, $value := .AdditionalTfVars -}} @@ -1812,10 +1812,10 @@ func {{ template "testname" . }}_tags_DefaultTags_nullNonOverlappingResourceTag( ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "providerkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtProviderKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "resourcekey1": nil, + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtResourceKey1: nil, }), {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), @@ -1827,7 +1827,7 @@ func {{ template "testname" . }}_tags_DefaultTags_nullNonOverlappingResourceTag( ConfigStateChecks: []statecheck.StateCheck{ statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.Null()), statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "providerkey1": knownvalue.StringExact(acctest.CtProviderValue1), + acctest.CtProviderKey1: knownvalue.StringExact(acctest.CtProviderValue1), })), }, ConfigPlanChecks: resource.ConfigPlanChecks{ @@ -1835,7 +1835,7 @@ func {{ template "testname" . }}_tags_DefaultTags_nullNonOverlappingResourceTag( plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionCreate), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.Null()), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{ - "providerkey1": knownvalue.StringExact(acctest.CtProviderValue1), + acctest.CtProviderKey1: knownvalue.StringExact(acctest.CtProviderValue1), })), }, }, @@ -1847,10 +1847,10 @@ func {{ template "testname" . }}_tags_DefaultTags_nullNonOverlappingResourceTag( ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} acctest.CtProviderTags: config.MapVariable(map[string]config.Variable{ - "providerkey1": config.StringVariable(acctest.CtProviderValue1), + acctest.CtProviderKey1: config.StringVariable(acctest.CtProviderValue1), }), - "resource_tags": config.MapVariable(map[string]config.Variable{ - "resourcekey1": nil, + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ + acctest.CtResourceKey1: nil, }), {{ range $name, $value := .AdditionalTfVars -}} "{{ $name }}": config.StringVariable({{ $value }}), @@ -1929,7 +1929,7 @@ func {{ template "testname" . }}_tags_ComputedTag_OnUpdate_Add(t *testing.T) { ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}} @@ -2023,7 +2023,7 @@ func {{ template "testname" . }}_tags_ComputedTag_OnUpdate_Replace(t *testing.T) ConfigDirectory: config.StaticDirectory("testdata/{{ .Name }}/tags/"), ConfigVariables: config.Variables{ {{ if .Generator }} acctest.CtRName: config.StringVariable(rName),{{ end }} - "resource_tags": config.MapVariable(map[string]config.Variable{ + acctest.CtResourceTags: config.MapVariable(map[string]config.Variable{ acctest.CtKey1: config.StringVariable(acctest.CtValue1), }), {{ range $name, $value := .AdditionalTfVars -}}