Skip to content

Commit

Permalink
added check value and path in cas test
Browse files Browse the repository at this point in the history
  • Loading branch information
aahel committed Sep 26, 2023
1 parent 593f7d6 commit da5ab96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion consul/resource_consul_keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ func TestAccConsulKeys_Cas(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccConsulKeysConfig_Cas,
Check: resource.TestCheckResourceAttr("consul_keys.app", "key.2637474718.cas", "0"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("consul_keys.app", "key.2637474718.value", "testVal"),
resource.TestCheckResourceAttr("consul_keys.app", "key.2637474718.path", "test/testKey"),
resource.TestCheckResourceAttr("consul_keys.app", "key.2637474718.cas", "0"),
),
},
},
})
Expand Down

0 comments on commit da5ab96

Please sign in to comment.