Skip to content

Commit 5375c57

Browse files
committed
Formatting
1 parent e547f46 commit 5375c57

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

internal/elasticsearch/index/template_data_source_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestAccIndexTemplateDataSource(t *testing.T) {
3030
},
3131
{
3232
SkipFunc: versionutils.CheckIfVersionIsUnsupported(index.MinSupportedIgnoreMissingComponentTemplateVersion),
33-
Config: testAccIndexTemplateDataSourceWithIgnoreComponentConfig(templateNameComponent),
33+
Config: testAccIndexTemplateDataSourceWithIgnoreComponentConfig(templateNameComponent),
3434
Check: resource.ComposeAggregateTestCheckFunc(
3535
resource.TestCheckResourceAttr("data.elasticstack_elasticsearch_index_template.test", "name", templateNameComponent),
3636
resource.TestCheckTypeSetElemAttr("data.elasticstack_elasticsearch_index_template.test", "index_patterns.*", fmt.Sprintf("tf-acc-component-%s-*", templateNameComponent)),
@@ -61,7 +61,6 @@ data "elasticstack_elasticsearch_index_template" "test" {
6161
`, templateName, templateName)
6262
}
6363

64-
6564
func testAccIndexTemplateDataSourceWithIgnoreComponentConfig(templateName string) string {
6665
return fmt.Sprintf(`
6766
provider "elasticstack" {

internal/elasticsearch/index/template_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestAccResourceIndexTemplate(t *testing.T) {
4646
},
4747
{
4848
SkipFunc: versionutils.CheckIfVersionIsUnsupported(index.MinSupportedIgnoreMissingComponentTemplateVersion),
49-
Config: testAccResourceIndexTemplateCreateWithIgnoreComponent(templateNameComponent),
49+
Config: testAccResourceIndexTemplateCreateWithIgnoreComponent(templateNameComponent),
5050
Check: resource.ComposeTestCheckFunc(
5151
resource.TestCheckResourceAttr("elasticstack_elasticsearch_index_template.test_component", "name", templateNameComponent),
5252
resource.TestCheckTypeSetElemAttr("elasticstack_elasticsearch_index_template.test_component", "index_patterns.*", fmt.Sprintf("%s-logscomponent-*", templateNameComponent)),
@@ -56,7 +56,7 @@ func TestAccResourceIndexTemplate(t *testing.T) {
5656
},
5757
{
5858
SkipFunc: versionutils.CheckIfVersionIsUnsupported(index.MinSupportedIgnoreMissingComponentTemplateVersion),
59-
Config: testAccResourceIndexTemplateUpdateWithIgnoreComponent(templateNameComponent),
59+
Config: testAccResourceIndexTemplateUpdateWithIgnoreComponent(templateNameComponent),
6060
Check: resource.ComposeTestCheckFunc(
6161
resource.TestCheckResourceAttr("elasticstack_elasticsearch_index_template.test_component", "name", templateNameComponent),
6262
resource.TestCheckTypeSetElemAttr("elasticstack_elasticsearch_index_template.test_component", "index_patterns.*", fmt.Sprintf("%s-logscomponent-*", templateNameComponent)),

0 commit comments

Comments
 (0)