Skip to content

Commit

Permalink
removing indentation for test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avnerenv0 committed Jan 3, 2022
1 parent 3113328 commit 7024fea
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions env0/resource_configuration_variable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ func TestUnitConfigurationVariableResource(t *testing.T) {
t.Run("Create "+string(format)+" Variable", func(t *testing.T) {

expectedVariable := `{
A = "A"
B = "B"
C = "C"
}
`
A = "A"
B = "B"
C = "C"
}
`

schema := client.ConfigurationVariableSchema{
Type: "string",
Expand All @@ -136,26 +136,26 @@ func TestUnitConfigurationVariableResource(t *testing.T) {
Schema: &schema,
}
terraformDirective := `<<EOT
{
%{ for key, value in var.map ~}
${key} = "${value}"
%{ endfor ~}
}
EOT`
{
%{ for key, value in var.map ~}
${key} = "${value}"
%{ endfor ~}
}
EOT`
stepConfig := fmt.Sprintf(`
variable "map" {
description = "a mapped variable"
type = map(string)
default = %s
}
resource "%s" "test" {
name = "%s"
description = "%s"
value = %s
format = "%s"
}`, expectedVariable, resourceType, configVar.Name, configVar.Description, terraformDirective, string(format))
variable "map" {
description = "a mapped variable"
type = map(string)
default = %s
}
resource "%s" "test" {
name = "%s"
description = "%s"
value = %s
format = "%s"
}`, expectedVariable, resourceType, configVar.Name, configVar.Description, terraformDirective, string(format))

createTestCase := resource.TestCase{
Steps: []resource.TestStep{
Expand Down

0 comments on commit 7024fea

Please sign in to comment.