From 6c40b9520ec0b025db9b63aa68122a2bb1ccb32f Mon Sep 17 00:00:00 2001 From: Nathan McKinley Date: Mon, 18 Jun 2018 11:30:29 -0700 Subject: [PATCH] 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. --- helper/resource/testing.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/helper/resource/testing.go b/helper/resource/testing.go index 27bfc9b5a..9ae04a209 100644 --- a/helper/resource/testing.go +++ b/helper/resource/testing.go @@ -357,11 +357,12 @@ type TestStep struct { // ImportStateVerify, if true, will also check that the state values // 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 - // be equal. These can be set to ephemeral fields or fields that can't - // be refreshed and don't matter. + // ImportStateVerifyIgnore is a list of prefixes of fields that should + // not be verified to be equal. These can be set to ephemeral fields or + // fields that can't be refreshed and don't matter. ImportStateVerify bool ImportStateVerifyIgnore []string }