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:
Nathan McKinley 2018-06-18 11:30:29 -07:00 committed by GitHub
parent b95f74956a
commit 6c40b9520e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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
} }