@@ -1106,7 +1106,7 @@ func TestAccECSService_BlueGreenDeployment_sigintRollback(t *testing.T) {
1106
1106
Config : testAccServiceConfig_blueGreenDeployment_withHookBehavior (rName , false ),
1107
1107
PreConfig : func () {
1108
1108
go func () {
1109
- _ = exec .Command ("go" , "run" , "test-fixtures/sigint_helper.go" , "30" ).Start () //lintignore:XR007
1109
+ _ = exec .Command ("go" , "run" , "test-fixtures/sigint_helper.go" , "30" ).Start () // lintignore:XR007
1110
1110
}()
1111
1111
},
1112
1112
ExpectError : regexache .MustCompile ("execution halted|context canceled" ),
@@ -2656,7 +2656,7 @@ func TestAccECSService_AvailabilityZoneRebalancing(t *testing.T) {
2656
2656
CheckDestroy : testAccCheckServiceDestroy (ctx ),
2657
2657
Steps : []resource.TestStep {
2658
2658
{
2659
- Config : testAccServiceConfig_availabilityZoneRebalancing (rName , awstypes . AvailabilityZoneRebalancingEnabled ),
2659
+ Config : testAccServiceConfig_availabilityZoneRebalancing (rName , "null" ),
2660
2660
Check : resource .ComposeTestCheckFunc (
2661
2661
testAccCheckServiceExists (ctx , resourceName , & service ),
2662
2662
),
@@ -2670,7 +2670,7 @@ func TestAccECSService_AvailabilityZoneRebalancing(t *testing.T) {
2670
2670
},
2671
2671
},
2672
2672
{
2673
- Config : testAccServiceConfig_availabilityZoneRebalancing (rName , "null" ),
2673
+ Config : testAccServiceConfig_availabilityZoneRebalancing (rName , awstypes . AvailabilityZoneRebalancingEnabled ),
2674
2674
Check : resource .ComposeTestCheckFunc (
2675
2675
testAccCheckServiceExists (ctx , resourceName , & service ),
2676
2676
),
@@ -2729,112 +2729,6 @@ func TestAccECSService_AvailabilityZoneRebalancing(t *testing.T) {
2729
2729
})
2730
2730
}
2731
2731
2732
- func TestAccECSService_AvailabilityZoneRebalancing_UpgradeV6_8_0_configured (t * testing.T ) {
2733
- ctx := acctest .Context (t )
2734
- var service awstypes.Service
2735
- rName := sdkacctest .RandomWithPrefix (acctest .ResourcePrefix )
2736
- resourceName := "aws_ecs_service.test"
2737
-
2738
- resource .ParallelTest (t , resource.TestCase {
2739
- PreCheck : func () { acctest .PreCheck (ctx , t ) },
2740
- ErrorCheck : acctest .ErrorCheck (t , names .ECSServiceID ),
2741
- CheckDestroy : testAccCheckServiceDestroy (ctx ),
2742
- Steps : []resource.TestStep {
2743
- {
2744
- ExternalProviders : map [string ]resource.ExternalProvider {
2745
- "aws" : {
2746
- Source : "hashicorp/aws" ,
2747
- VersionConstraint : "6.8.0" ,
2748
- },
2749
- },
2750
- Config : testAccServiceConfig_availabilityZoneRebalancing (rName , awstypes .AvailabilityZoneRebalancingEnabled ),
2751
- Check : resource .ComposeTestCheckFunc (
2752
- testAccCheckServiceExists (ctx , resourceName , & service ),
2753
- ),
2754
- ConfigPlanChecks : resource.ConfigPlanChecks {
2755
- PreApply : []plancheck.PlanCheck {
2756
- plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionCreate ),
2757
- },
2758
- },
2759
- ConfigStateChecks : []statecheck.StateCheck {
2760
- statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("availability_zone_rebalancing" ), tfknownvalue .StringExact (awstypes .AvailabilityZoneRebalancingEnabled )),
2761
- },
2762
- },
2763
- {
2764
- ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
2765
- Config : testAccServiceConfig_availabilityZoneRebalancing (rName , awstypes .AvailabilityZoneRebalancingEnabled ),
2766
- Check : resource .ComposeTestCheckFunc (
2767
- testAccCheckServiceExists (ctx , resourceName , & service ),
2768
- ),
2769
- ConfigPlanChecks : resource.ConfigPlanChecks {
2770
- PreApply : []plancheck.PlanCheck {
2771
- plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionNoop ),
2772
- },
2773
- PostApplyPostRefresh : []plancheck.PlanCheck {
2774
- plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionNoop ),
2775
- },
2776
- },
2777
- ConfigStateChecks : []statecheck.StateCheck {
2778
- statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("availability_zone_rebalancing" ), tfknownvalue .StringExact (awstypes .AvailabilityZoneRebalancingEnabled )),
2779
- },
2780
- },
2781
- },
2782
- })
2783
- }
2784
-
2785
- func TestAccECSService_AvailabilityZoneRebalancing_UpgradeV6_8_0_unconfigured (t * testing.T ) {
2786
- ctx := acctest .Context (t )
2787
- var service awstypes.Service
2788
- rName := sdkacctest .RandomWithPrefix (acctest .ResourcePrefix )
2789
- resourceName := "aws_ecs_service.test"
2790
-
2791
- resource .ParallelTest (t , resource.TestCase {
2792
- PreCheck : func () { acctest .PreCheck (ctx , t ) },
2793
- ErrorCheck : acctest .ErrorCheck (t , names .ECSServiceID ),
2794
- CheckDestroy : testAccCheckServiceDestroy (ctx ),
2795
- Steps : []resource.TestStep {
2796
- {
2797
- ExternalProviders : map [string ]resource.ExternalProvider {
2798
- "aws" : {
2799
- Source : "hashicorp/aws" ,
2800
- VersionConstraint : "6.8.0" ,
2801
- },
2802
- },
2803
- Config : testAccServiceConfig_availabilityZoneRebalancing (rName , "null" ),
2804
- Check : resource .ComposeTestCheckFunc (
2805
- testAccCheckServiceExists (ctx , resourceName , & service ),
2806
- ),
2807
- ConfigPlanChecks : resource.ConfigPlanChecks {
2808
- PreApply : []plancheck.PlanCheck {
2809
- plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionCreate ),
2810
- },
2811
- },
2812
- ConfigStateChecks : []statecheck.StateCheck {
2813
- statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("availability_zone_rebalancing" ), tfknownvalue .StringExact (awstypes .AvailabilityZoneRebalancingDisabled )),
2814
- },
2815
- },
2816
- {
2817
- ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
2818
- Config : testAccServiceConfig_availabilityZoneRebalancing (rName , "null" ),
2819
- Check : resource .ComposeTestCheckFunc (
2820
- testAccCheckServiceExists (ctx , resourceName , & service ),
2821
- ),
2822
- ConfigPlanChecks : resource.ConfigPlanChecks {
2823
- PreApply : []plancheck.PlanCheck {
2824
- plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionNoop ),
2825
- },
2826
- PostApplyPostRefresh : []plancheck.PlanCheck {
2827
- plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionNoop ),
2828
- },
2829
- },
2830
- ConfigStateChecks : []statecheck.StateCheck {
2831
- statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("availability_zone_rebalancing" ), tfknownvalue .StringExact (awstypes .AvailabilityZoneRebalancingDisabled )),
2832
- },
2833
- },
2834
- },
2835
- })
2836
- }
2837
-
2838
2732
func testAccCheckServiceDestroy (ctx context.Context ) resource.TestCheckFunc {
2839
2733
return func (s * terraform.State ) error {
2840
2734
conn := acctest .Provider .Meta ().(* conns.AWSClient ).ECSClient (ctx )
0 commit comments