mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/consul: Fixing the ConsulNode_basic tests to have the correct references
This commit is contained in:
parent
c1d7ae867f
commit
47c274f699
@ -19,8 +19,8 @@ func TestAccConsulNode_basic(t *testing.T) {
|
|||||||
Config: testAccConsulNodeConfig,
|
Config: testAccConsulNodeConfig,
|
||||||
Check: resource.ComposeTestCheckFunc(
|
Check: resource.ComposeTestCheckFunc(
|
||||||
testAccCheckConsulNodeExists(),
|
testAccCheckConsulNodeExists(),
|
||||||
testAccCheckConsulNodeValue("consul_catalog_entry.app", "address", "127.0.0.1"),
|
testAccCheckConsulNodeValue("consul_catalog_entry.foo", "address", "127.0.0.1"),
|
||||||
testAccCheckConsulNodeValue("consul_catalog_entry.app", "name", "foo"),
|
testAccCheckConsulNodeValue("consul_catalog_entry.foo", "node", "foo"),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -82,6 +82,6 @@ func testAccCheckConsulNodeValue(n, attr, val string) resource.TestCheckFunc {
|
|||||||
const testAccConsulNodeConfig = `
|
const testAccConsulNodeConfig = `
|
||||||
resource "consul_catalog_entry" "foo" {
|
resource "consul_catalog_entry" "foo" {
|
||||||
address = "127.0.0.1"
|
address = "127.0.0.1"
|
||||||
name = "foo"
|
node = "foo"
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
Loading…
Reference in New Issue
Block a user