Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Jan 17, 2024
1 parent 220ebfd commit a851564
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/plugintest/working_dir_json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ func TestJSONConfig(t *testing.T) {
ProviderFactories: providerFactories,
Steps: []resource.TestStep{{
Config: `{"resource":{"tst_t":{"r1":{"s":"x1"}}}}`,
Check: resource.TestCheckResourceAttr("tst_t.r1", "s", "x1"),
//nolint
Check: resource.TestCheckResourceAttr("tst_t.r1", "s", "x1"),
}, {
Config: `resource "tst_t" "r1" { s = "x2" }`,
Check: resource.TestCheckResourceAttr("tst_t.r1", "s", "x2"),
//nolint
Check: resource.TestCheckResourceAttr("tst_t.r1", "s", "x2"),
}, {
Config: `{"resource":{"tst_t":{"r1":{"s":"x3"}}}}`,
Check: resource.TestCheckResourceAttr("tst_t.r1", "s", "x3"),
//nolint
Check: resource.TestCheckResourceAttr("tst_t.r1", "s", "x3"),
}},
})
}
Expand Down

0 comments on commit a851564

Please sign in to comment.