@@ -1567,7 +1567,7 @@ func TestAccElastiCacheGlobalReplicationGroup_SetEngineOnCreate_ValkeyUpgrade(t
1567
1567
Check : resource .ComposeAggregateTestCheckFunc (
1568
1568
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngine , "valkey" ),
1569
1569
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngineVersion , "8.0" ),
1570
- resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1570
+ resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1571
1571
resource .TestCheckResourceAttrPair (primaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1572
1572
),
1573
1573
},
@@ -1615,7 +1615,7 @@ func TestAccElastiCacheGlobalReplicationGroup_SetEngineOnUpdate_ValkeyUpgrade(t
1615
1615
Check : resource .ComposeAggregateTestCheckFunc (
1616
1616
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngine , "redis" ),
1617
1617
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngineVersion , "7.1" ),
1618
- resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1618
+ resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1619
1619
resource .TestCheckResourceAttrPair (primaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1620
1620
),
1621
1621
},
@@ -1640,7 +1640,7 @@ func TestAccElastiCacheGlobalReplicationGroup_SetEngineOnUpdate_ValkeyUpgrade(t
1640
1640
Check : resource .ComposeAggregateTestCheckFunc (
1641
1641
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngine , "valkey" ),
1642
1642
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngineVersion , "7.2" ),
1643
- resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1643
+ resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1644
1644
resource .TestCheckResourceAttrPair (primaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1645
1645
),
1646
1646
},
@@ -1687,12 +1687,12 @@ func TestAccElastiCacheGlobalReplicationGroup_InheritValkeyEngine_SecondaryRepli
1687
1687
Check : resource .ComposeAggregateTestCheckFunc (
1688
1688
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngine , "valkey" ),
1689
1689
resource .TestCheckResourceAttr (primaryReplicationGroupResourceName , names .AttrEngineVersion , "8.0" ),
1690
- resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1690
+ resource .TestMatchResourceAttr (primaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1691
1691
resource .TestCheckResourceAttrPair (primaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1692
1692
1693
1693
resource .TestCheckResourceAttr (secondaryReplicationGroupResourceName , names .AttrEngine , "valkey" ),
1694
1694
resource .TestCheckResourceAttr (secondaryReplicationGroupResourceName , names .AttrEngineVersion , "8.0" ),
1695
- resource .TestMatchResourceAttr (secondaryReplicationGroupResourceName , "parameter_group_name" , regexache .MustCompile (`^global-datastore-.+$` )),
1695
+ resource .TestMatchResourceAttr (secondaryReplicationGroupResourceName , names . AttrParameterGroupName , regexache .MustCompile (`^global-datastore-.+$` )),
1696
1696
resource .TestCheckResourceAttrPair (secondaryReplicationGroupResourceName , "global_replication_group_id" , resourceName , "global_replication_group_id" ),
1697
1697
),
1698
1698
},
0 commit comments