Skip to content

Commit

Permalink
Add 'ImportStateVerifyIgnore: []string{"vpc_subnets"}'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Mar 14, 2022
1 parent 97ef7e7 commit 3095ac2
Showing 1 changed file with 56 additions and 42 deletions.
98 changes: 56 additions & 42 deletions internal/service/gamelift/game_server_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ func TestAccGameliftGameServerGroup_basic(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
},
})
Expand Down Expand Up @@ -74,9 +75,10 @@ func TestAccGameliftGameServerGroup_AutoScalingPolicy(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
},
})
Expand Down Expand Up @@ -105,9 +107,10 @@ func TestAccGameliftGameServerGroup_AutoScalingPolicy_EstimatedInstanceWarmup(t
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
},
})
Expand Down Expand Up @@ -135,9 +138,10 @@ func TestAccGameliftGameServerGroup_BalancingStrategy(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
},
})
Expand Down Expand Up @@ -165,9 +169,10 @@ func TestAccGameliftGameServerGroup_GameServerGroupName(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
{
Config: testAccGameliftGameServerGroupConfigGameServerGroupName(rName, rName+"-new"),
Expand Down Expand Up @@ -202,9 +207,10 @@ func TestAccGameliftGameServerGroup_InstanceDefinition(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
{
Config: testAccGameliftGameServerGroupConfigInstanceDefinition(rName, 3),
Expand Down Expand Up @@ -241,9 +247,10 @@ func TestAccGameliftGameServerGroup_InstanceDefinition_WeightedCapacity(t *testi
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
{
Config: testAccGameliftGameServerGroupConfigInstanceDefinitionWeightedCapacity(rName, "2"),
Expand Down Expand Up @@ -282,9 +289,10 @@ func TestAccGameliftGameServerGroup_LaunchTemplate_Id(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
},
})
Expand Down Expand Up @@ -314,9 +322,10 @@ func TestAccGameliftGameServerGroup_LaunchTemplate_Name(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
},
})
Expand Down Expand Up @@ -346,9 +355,10 @@ func TestAccGameliftGameServerGroup_LaunchTemplate_Version(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
},
})
Expand Down Expand Up @@ -376,9 +386,10 @@ func TestAccGameliftGameServerGroup_GameServerProtectionPolicy(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
},
})
Expand Down Expand Up @@ -406,9 +417,10 @@ func TestAccGameliftGameServerGroup_MaxSize(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
{
Config: testAccGameliftGameServerGroupConfigMaxSize(rName, "2"),
Expand Down Expand Up @@ -443,9 +455,10 @@ func TestAccGameliftGameServerGroup_MinSize(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
{
Config: testAccGameliftGameServerGroupConfigMinSize(rName, "2"),
Expand Down Expand Up @@ -481,9 +494,10 @@ func TestAccGameliftGameServerGroup_RoleArn(t *testing.T) {
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"vpc_subnets"},
},
{
Config: testAccGameliftGameServerGroupConfigRoleArn(rName, "test2"),
Expand Down

0 comments on commit 3095ac2

Please sign in to comment.