Skip to content

Commit edf46a1

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 c843937 commit edf46a1

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
@@ -926,9 +926,10 @@ func TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_NoChange_
926926
),
927927
},
928928
{
929-
ResourceName: resourceName,
930-
ImportState: true,
931-
ImportStateVerify: true,
929+
ResourceName: resourceName,
930+
ImportState: true,
931+
ImportStateVerify: true,
932+
ImportStateVerifyIgnore: []string{names.AttrEngineVersion},
932933
},
933934
},
934935
})

0 commit comments

Comments
 (0)