Skip to content

Commit

Permalink
Comments to clarify TestCheckResourceAttrSet()
Browse files Browse the repository at this point in the history
  • Loading branch information
justinTM committed Feb 9, 2022
1 parent 36ee3aa commit f6ddaab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/resource/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,10 @@ func ComposeAggregateTestCheckFunc(fs ...TestCheckFunc) TestCheckFunc {
}
}

// TestCheckResourceAttrSet is a TestCheckFunc which ensures a value
// TestCheckResourceAttrSet is a TestCheckFunc which ensures a string value
// exists in state for the given name/key combination. It is useful when
// testing that computed values were set, when it is not possible to
// know ahead of time what the values will be.
// know ahead of time what the values will be. List or map values will fail.
func TestCheckResourceAttrSet(name, key string) TestCheckFunc {
return checkIfIndexesIntoTypeSet(key, func(s *terraform.State) error {
is, err := primaryInstanceState(s, name)
Expand Down

0 comments on commit f6ddaab

Please sign in to comment.