Skip to content

Commit 47c274f

Browse files
committed
provider/consul: Fixing the ConsulNode_basic tests to have the correct references
1 parent c1d7ae8 commit 47c274f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

builtin/providers/consul/resource_consul_node_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ func TestAccConsulNode_basic(t *testing.T) {
1919
Config: testAccConsulNodeConfig,
2020
Check: resource.ComposeTestCheckFunc(
2121
testAccCheckConsulNodeExists(),
22-
testAccCheckConsulNodeValue("consul_catalog_entry.app", "address", "127.0.0.1"),
23-
testAccCheckConsulNodeValue("consul_catalog_entry.app", "name", "foo"),
22+
testAccCheckConsulNodeValue("consul_catalog_entry.foo", "address", "127.0.0.1"),
23+
testAccCheckConsulNodeValue("consul_catalog_entry.foo", "node", "foo"),
2424
),
2525
},
2626
},
@@ -82,6 +82,6 @@ func testAccCheckConsulNodeValue(n, attr, val string) resource.TestCheckFunc {
8282
const testAccConsulNodeConfig = `
8383
resource "consul_catalog_entry" "foo" {
8484
address = "127.0.0.1"
85-
name = "foo"
85+
node = "foo"
8686
}
8787
`

0 commit comments

Comments
 (0)