fix goimports

This commit is contained in:
Rafael da Fonseca 2023-02-14 15:10:38 +00:00
parent bc37c7408c
commit e9fce322ad
1 changed files with 29 additions and 29 deletions

View File

@ -331,34 +331,34 @@ terraform {
} }
`, `,
}, },
{ {
Resource: &AutoscalingGroup{ Resource: &AutoscalingGroup{
Name: fi.PtrTo("test1"), Name: fi.PtrTo("test1"),
LaunchTemplate: &LaunchTemplate{Name: fi.PtrTo("test_lt")}, LaunchTemplate: &LaunchTemplate{Name: fi.PtrTo("test_lt")},
MaxSize: fi.PtrTo(int64(10)), MaxSize: fi.PtrTo(int64(10)),
Metrics: []string{"test"}, Metrics: []string{"test"},
MinSize: fi.PtrTo(int64(5)), MinSize: fi.PtrTo(int64(5)),
MixedInstanceOverrides: []string{"t2.medium", "t2.large"}, MixedInstanceOverrides: []string{"t2.medium", "t2.large"},
MixedOnDemandBase: fi.PtrTo(int64(4)), MixedOnDemandBase: fi.PtrTo(int64(4)),
MixedOnDemandAboveBase: fi.PtrTo(int64(30)), MixedOnDemandAboveBase: fi.PtrTo(int64(30)),
MixedSpotAllocationStrategy: fi.PtrTo("capacity-optimized"), MixedSpotAllocationStrategy: fi.PtrTo("capacity-optimized"),
WarmPool: &WarmPool{ WarmPool: &WarmPool{
Enabled: fi.PtrTo(true), Enabled: fi.PtrTo(true),
MinSize: 3, MinSize: 3,
MaxSize: fi.PtrTo(int64(5)), MaxSize: fi.PtrTo(int64(5)),
}, },
Subnets: []*Subnet{ Subnets: []*Subnet{
{ {
Name: fi.PtrTo("test-sg"), Name: fi.PtrTo("test-sg"),
ID: fi.PtrTo("sg-1111"), ID: fi.PtrTo("sg-1111"),
}, },
}, },
Tags: map[string]string{ Tags: map[string]string{
"test": "tag", "test": "tag",
"cluster": "test", "cluster": "test",
}, },
}, },
Expected: `provider "aws" { Expected: `provider "aws" {
region = "eu-west-2" region = "eu-west-2"
} }
@ -413,7 +413,7 @@ terraform {
} }
} }
`, `,
}, },
} }
doRenderTests(t, "RenderTerraform", cases) doRenderTests(t, "RenderTerraform", cases)