Minor docs tweak on ImportStateVerify
ImportStateVerify does not respect DiffSuppressFunc or CustomizeDiff, which is worth documenting (and maybe, possibly, worth changing?). ImportStateVerifyIgnore is a list of prefixes, rather than a list of fields.
This commit is contained in:
parent
b95f74956a
commit
6c40b9520e
|
@ -357,11 +357,12 @@ type TestStep struct {
|
||||||
|
|
||||||
// ImportStateVerify, if true, will also check that the state values
|
// ImportStateVerify, if true, will also check that the state values
|
||||||
// that are finally put into the state after import match for all the
|
// that are finally put into the state after import match for all the
|
||||||
// IDs returned by the Import.
|
// IDs returned by the Import. Note that this checks for strict equality
|
||||||
|
// and does not respect DiffSuppressFunc or CustomizeDiff.
|
||||||
//
|
//
|
||||||
// ImportStateVerifyIgnore are fields that should not be verified to
|
// ImportStateVerifyIgnore is a list of prefixes of fields that should
|
||||||
// be equal. These can be set to ephemeral fields or fields that can't
|
// not be verified to be equal. These can be set to ephemeral fields or
|
||||||
// be refreshed and don't matter.
|
// fields that can't be refreshed and don't matter.
|
||||||
ImportStateVerify bool
|
ImportStateVerify bool
|
||||||
ImportStateVerifyIgnore []string
|
ImportStateVerifyIgnore []string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue