From 568d5764cad77c10988eebf3afe1fe43a617d2b2 Mon Sep 17 00:00:00 2001 From: Graham Davison Date: Thu, 2 May 2024 10:35:43 -0700 Subject: [PATCH] Renames resource templates for syntax colouring --- internal/generate/tagstests/main.go | 2 +- .../testdata/tmpl/{analyzer_tags.tmpl => analyzer_tags.gtpl} | 0 ...cate_authority_tags.tmpl => certificate_authority_tags.gtpl} | 0 ...pute_environment_tags.tmpl => compute_environment_tags.gtpl} | 0 .../tmpl/{job_definition_tags.tmpl => job_definition_tags.gtpl} | 0 .../testdata/tmpl/{job_queue_tags.tmpl => job_queue_tags.gtpl} | 0 ...{scheduling_policy_tags.tmpl => scheduling_policy_tags.gtpl} | 0 .../{instance_profile_tags.tmpl => instance_profile_tags.gtpl} | 0 ...ect_provider_tags.tmpl => openid_connect_provider_tags.gtpl} | 0 .../iam/testdata/tmpl/{policy_tags.tmpl => policy_tags.gtpl} | 0 .../iam/testdata/tmpl/{role_tags.tmpl => role_tags.gtpl} | 0 ...vice_linked_role_tags.tmpl => service_linked_role_tags.gtpl} | 0 .../iam/testdata/tmpl/{user_tags.tmpl => user_tags.gtpl} | 0 ...irtual_mfa_device_tags.tmpl => virtual_mfa_device_tags.gtpl} | 0 .../testdata/tmpl/{portfolio_tags.tmpl => portfolio_tags.gtpl} | 0 .../testdata/tmpl/{product_tags.tmpl => product_tags.gtpl} | 0 ...visioned_product_tags.tmpl => provisioned_product_tags.gtpl} | 0 .../xray/testdata/tmpl/{group_tags.tmpl => group_tags.gtpl} | 0 .../tmpl/{sampling_rule_tags.tmpl => sampling_rule_tags.gtpl} | 0 19 files changed, 1 insertion(+), 1 deletion(-) rename internal/service/accessanalyzer/testdata/tmpl/{analyzer_tags.tmpl => analyzer_tags.gtpl} (100%) rename internal/service/acmpca/testdata/tmpl/{certificate_authority_tags.tmpl => certificate_authority_tags.gtpl} (100%) rename internal/service/batch/testdata/tmpl/{compute_environment_tags.tmpl => compute_environment_tags.gtpl} (100%) rename internal/service/batch/testdata/tmpl/{job_definition_tags.tmpl => job_definition_tags.gtpl} (100%) rename internal/service/batch/testdata/tmpl/{job_queue_tags.tmpl => job_queue_tags.gtpl} (100%) rename internal/service/batch/testdata/tmpl/{scheduling_policy_tags.tmpl => scheduling_policy_tags.gtpl} (100%) rename internal/service/iam/testdata/tmpl/{instance_profile_tags.tmpl => instance_profile_tags.gtpl} (100%) rename internal/service/iam/testdata/tmpl/{openid_connect_provider_tags.tmpl => openid_connect_provider_tags.gtpl} (100%) rename internal/service/iam/testdata/tmpl/{policy_tags.tmpl => policy_tags.gtpl} (100%) rename internal/service/iam/testdata/tmpl/{role_tags.tmpl => role_tags.gtpl} (100%) rename internal/service/iam/testdata/tmpl/{service_linked_role_tags.tmpl => service_linked_role_tags.gtpl} (100%) rename internal/service/iam/testdata/tmpl/{user_tags.tmpl => user_tags.gtpl} (100%) rename internal/service/iam/testdata/tmpl/{virtual_mfa_device_tags.tmpl => virtual_mfa_device_tags.gtpl} (100%) rename internal/service/servicecatalog/testdata/tmpl/{portfolio_tags.tmpl => portfolio_tags.gtpl} (100%) rename internal/service/servicecatalog/testdata/tmpl/{product_tags.tmpl => product_tags.gtpl} (100%) rename internal/service/servicecatalog/testdata/tmpl/{provisioned_product_tags.tmpl => provisioned_product_tags.gtpl} (100%) rename internal/service/xray/testdata/tmpl/{group_tags.tmpl => group_tags.gtpl} (100%) rename internal/service/xray/testdata/tmpl/{sampling_rule_tags.tmpl => sampling_rule_tags.gtpl} (100%) diff --git a/internal/generate/tagstests/main.go b/internal/generate/tagstests/main.go index 06a920bc3c7..4eb2052e5b8 100644 --- a/internal/generate/tagstests/main.go +++ b/internal/generate/tagstests/main.go @@ -100,7 +100,7 @@ func main() { } } - configTmplFile := path.Join("testdata", "tmpl", fmt.Sprintf("%s_tags.tmpl", sourceName)) + configTmplFile := path.Join("testdata", "tmpl", fmt.Sprintf("%s_tags.gtpl", sourceName)) var configTmpl string if _, err := os.Stat(configTmplFile); err == nil { b, err := os.ReadFile(configTmplFile) diff --git a/internal/service/accessanalyzer/testdata/tmpl/analyzer_tags.tmpl b/internal/service/accessanalyzer/testdata/tmpl/analyzer_tags.gtpl similarity index 100% rename from internal/service/accessanalyzer/testdata/tmpl/analyzer_tags.tmpl rename to internal/service/accessanalyzer/testdata/tmpl/analyzer_tags.gtpl diff --git a/internal/service/acmpca/testdata/tmpl/certificate_authority_tags.tmpl b/internal/service/acmpca/testdata/tmpl/certificate_authority_tags.gtpl similarity index 100% rename from internal/service/acmpca/testdata/tmpl/certificate_authority_tags.tmpl rename to internal/service/acmpca/testdata/tmpl/certificate_authority_tags.gtpl diff --git a/internal/service/batch/testdata/tmpl/compute_environment_tags.tmpl b/internal/service/batch/testdata/tmpl/compute_environment_tags.gtpl similarity index 100% rename from internal/service/batch/testdata/tmpl/compute_environment_tags.tmpl rename to internal/service/batch/testdata/tmpl/compute_environment_tags.gtpl diff --git a/internal/service/batch/testdata/tmpl/job_definition_tags.tmpl b/internal/service/batch/testdata/tmpl/job_definition_tags.gtpl similarity index 100% rename from internal/service/batch/testdata/tmpl/job_definition_tags.tmpl rename to internal/service/batch/testdata/tmpl/job_definition_tags.gtpl diff --git a/internal/service/batch/testdata/tmpl/job_queue_tags.tmpl b/internal/service/batch/testdata/tmpl/job_queue_tags.gtpl similarity index 100% rename from internal/service/batch/testdata/tmpl/job_queue_tags.tmpl rename to internal/service/batch/testdata/tmpl/job_queue_tags.gtpl diff --git a/internal/service/batch/testdata/tmpl/scheduling_policy_tags.tmpl b/internal/service/batch/testdata/tmpl/scheduling_policy_tags.gtpl similarity index 100% rename from internal/service/batch/testdata/tmpl/scheduling_policy_tags.tmpl rename to internal/service/batch/testdata/tmpl/scheduling_policy_tags.gtpl diff --git a/internal/service/iam/testdata/tmpl/instance_profile_tags.tmpl b/internal/service/iam/testdata/tmpl/instance_profile_tags.gtpl similarity index 100% rename from internal/service/iam/testdata/tmpl/instance_profile_tags.tmpl rename to internal/service/iam/testdata/tmpl/instance_profile_tags.gtpl diff --git a/internal/service/iam/testdata/tmpl/openid_connect_provider_tags.tmpl b/internal/service/iam/testdata/tmpl/openid_connect_provider_tags.gtpl similarity index 100% rename from internal/service/iam/testdata/tmpl/openid_connect_provider_tags.tmpl rename to internal/service/iam/testdata/tmpl/openid_connect_provider_tags.gtpl diff --git a/internal/service/iam/testdata/tmpl/policy_tags.tmpl b/internal/service/iam/testdata/tmpl/policy_tags.gtpl similarity index 100% rename from internal/service/iam/testdata/tmpl/policy_tags.tmpl rename to internal/service/iam/testdata/tmpl/policy_tags.gtpl diff --git a/internal/service/iam/testdata/tmpl/role_tags.tmpl b/internal/service/iam/testdata/tmpl/role_tags.gtpl similarity index 100% rename from internal/service/iam/testdata/tmpl/role_tags.tmpl rename to internal/service/iam/testdata/tmpl/role_tags.gtpl diff --git a/internal/service/iam/testdata/tmpl/service_linked_role_tags.tmpl b/internal/service/iam/testdata/tmpl/service_linked_role_tags.gtpl similarity index 100% rename from internal/service/iam/testdata/tmpl/service_linked_role_tags.tmpl rename to internal/service/iam/testdata/tmpl/service_linked_role_tags.gtpl diff --git a/internal/service/iam/testdata/tmpl/user_tags.tmpl b/internal/service/iam/testdata/tmpl/user_tags.gtpl similarity index 100% rename from internal/service/iam/testdata/tmpl/user_tags.tmpl rename to internal/service/iam/testdata/tmpl/user_tags.gtpl diff --git a/internal/service/iam/testdata/tmpl/virtual_mfa_device_tags.tmpl b/internal/service/iam/testdata/tmpl/virtual_mfa_device_tags.gtpl similarity index 100% rename from internal/service/iam/testdata/tmpl/virtual_mfa_device_tags.tmpl rename to internal/service/iam/testdata/tmpl/virtual_mfa_device_tags.gtpl diff --git a/internal/service/servicecatalog/testdata/tmpl/portfolio_tags.tmpl b/internal/service/servicecatalog/testdata/tmpl/portfolio_tags.gtpl similarity index 100% rename from internal/service/servicecatalog/testdata/tmpl/portfolio_tags.tmpl rename to internal/service/servicecatalog/testdata/tmpl/portfolio_tags.gtpl diff --git a/internal/service/servicecatalog/testdata/tmpl/product_tags.tmpl b/internal/service/servicecatalog/testdata/tmpl/product_tags.gtpl similarity index 100% rename from internal/service/servicecatalog/testdata/tmpl/product_tags.tmpl rename to internal/service/servicecatalog/testdata/tmpl/product_tags.gtpl diff --git a/internal/service/servicecatalog/testdata/tmpl/provisioned_product_tags.tmpl b/internal/service/servicecatalog/testdata/tmpl/provisioned_product_tags.gtpl similarity index 100% rename from internal/service/servicecatalog/testdata/tmpl/provisioned_product_tags.tmpl rename to internal/service/servicecatalog/testdata/tmpl/provisioned_product_tags.gtpl diff --git a/internal/service/xray/testdata/tmpl/group_tags.tmpl b/internal/service/xray/testdata/tmpl/group_tags.gtpl similarity index 100% rename from internal/service/xray/testdata/tmpl/group_tags.tmpl rename to internal/service/xray/testdata/tmpl/group_tags.gtpl diff --git a/internal/service/xray/testdata/tmpl/sampling_rule_tags.tmpl b/internal/service/xray/testdata/tmpl/sampling_rule_tags.gtpl similarity index 100% rename from internal/service/xray/testdata/tmpl/sampling_rule_tags.tmpl rename to internal/service/xray/testdata/tmpl/sampling_rule_tags.gtpl