Skip to content

Commit 08cf9f2

Browse files
author
twelsh-aw
committed
Add back ImportStateVerifyIgnore
This is redis6.x specific. It has nothing to do with my DiffSuppressFunc changes or removing the lifecycle { ignore_changes } blocks. Still needed to pass tests :) ``` Step 2/2 error running import: ImportStateVerify attributes not equivalent. Difference is shown below. The - symbol indicates attributes missing after import. map[string]string{ - "engine_version": "6.x", + "engine_version": "6.2", } ```
1 parent 9a130ae commit 08cf9f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/service/elasticache/global_replication_group_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,9 +925,10 @@ func TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_NoChange_
925925
),
926926
},
927927
{
928-
ResourceName: resourceName,
929-
ImportState: true,
930-
ImportStateVerify: true,
928+
ResourceName: resourceName,
929+
ImportState: true,
930+
ImportStateVerify: true,
931+
ImportStateVerifyIgnore: []string{names.AttrEngineVersion},
931932
},
932933
},
933934
})

0 commit comments

Comments
 (0)