Skip to content

Commit

Permalink
whitespace, string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Sep 25, 2024
1 parent 01f9fd6 commit b1697cc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
20 changes: 10 additions & 10 deletions apstra/data_source_datacenter_configlet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ import (

const (
dataSourceDatacenterConfigletTemplateByNameHCL = `
data "apstra_datacenter_configlet" "test" {
blueprint_id = "%s"
name = "%s"
}
`
data "apstra_datacenter_configlet" "test" {
blueprint_id = "%s"
name = "%s"
}
`

dataSourceDatacenterConfigletTemplateByIdHCL = `
data "apstra_datacenter_configlet" "test" {
blueprint_id = "%s"
id = "%s"
}
`
data "apstra_datacenter_configlet" "test" {
blueprint_id = "%s"
id = "%s"
}
`
)

func TestAccDataSourceDatacenterConfiglet(t *testing.T) {
Expand Down
34 changes: 17 additions & 17 deletions apstra/resource_datacenter_configlet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ import (

const (
resourceDatacenterConfigletTemplateByIdHCL = `
resource "apstra_datacenter_configlet" "test" {
blueprint_id = "%s"
catalog_configlet_id = "%s"
condition = %q
}
`
resource "apstra_datacenter_configlet" "test" {
blueprint_id = "%s"
catalog_configlet_id = "%s"
condition = %q
}
`
resourceDatacenterConfigletTemplateByDataHCL = `
data "apstra_configlet" "cat_cfg" {
name = "CatalogConfigletA"
}
data "apstra_configlet" "cat_cfg" {
name = "CatalogConfigletA"
}
resource "apstra_datacenter_configlet" "test" {
blueprint_id = "%s"
condition = %q
name = data.apstra_configlet.cat_cfg.name
generators = data.apstra_configlet.cat_cfg.generators
}
`
resource "apstra_datacenter_configlet" "test" {
blueprint_id = "%s"
condition = %q
name = data.apstra_configlet.cat_cfg.name
generators = data.apstra_configlet.cat_cfg.generators
}
`

condition = "role in [\"spine\"]"
condition = `role in ["spine"]`
)

func TestAccResourceDatacenterConfiglet(t *testing.T) {
Expand Down

0 comments on commit b1697cc

Please sign in to comment.