@@ -1558,7 +1558,7 @@ func TestAccElastiCacheGlobalReplicationGroup_SetEngineOnCreate_ValkeyUpgrade(t
1558
1558
Check : resource .ComposeAggregateTestCheckFunc (
1559
1559
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngine , "valkey" ),
1560
1560
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngineVersion , "8.0" ),
1561
- resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1561
+ resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1562
1562
resource .TestCheckResourceAttrPair (primaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1563
1563
),
1564
1564
},
@@ -1606,7 +1606,7 @@ func TestAccElastiCacheGlobalReplicationGroup_SetEngineOnUpdate_ValkeyUpgrade(t
1606
1606
Check : resource .ComposeAggregateTestCheckFunc (
1607
1607
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngine , "redis" ),
1608
1608
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngineVersion , "7.1" ),
1609
- resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1609
+ resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1610
1610
resource .TestCheckResourceAttrPair (primaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1611
1611
),
1612
1612
},
@@ -1631,7 +1631,7 @@ func TestAccElastiCacheGlobalReplicationGroup_SetEngineOnUpdate_ValkeyUpgrade(t
1631
1631
Check : resource .ComposeAggregateTestCheckFunc (
1632
1632
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngine , "valkey" ),
1633
1633
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngineVersion , "7.2" ),
1634
- resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1634
+ resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1635
1635
resource .TestCheckResourceAttrPair (primaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1636
1636
),
1637
1637
},
@@ -1678,12 +1678,12 @@ func TestAccElastiCacheGlobalReplicationGroup_InheritValkeyEngine_SecondaryRepli
1678
1678
Check : resource .ComposeAggregateTestCheckFunc (
1679
1679
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngine , "valkey" ),
1680
1680
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngineVersion , "8.0" ),
1681
- resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1681
+ resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1682
1682
resource .TestCheckResourceAttrPair (primaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1683
1683
1684
1684
resource .TestCheckResourceAttr (secondaryReplicationGroupResourceName , names .AttrEngine , "valkey" ),
1685
1685
resource .TestCheckResourceAttr (secondaryReplicationGroupResourceName , names .AttrEngineVersion , "8.0" ),
1686
- resource .TestMatchResourceAttr (secondaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1686
+ resource .TestMatchResourceAttr (secondaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1687
1687
resource .TestCheckResourceAttrPair (secondaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1688
1688
),
1689
1689
},
0 commit comments