Skip to content

Commit

Permalink
add argument to list of args to ignore on import
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Oct 29, 2020
1 parent cb6270a commit 7a6369d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions aws/resource_aws_ecs_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ func TestAccAWSEcsService_basicImport(t *testing.T) {
ImportStateId: importInput,
ImportState: true,
ImportStateVerify: true,
// wait_for_steady_state is not read from API
ImportStateVerifyIgnore: []string{"wait_for_steady_state"},
},
// Test non-existent resource import
{
Expand Down Expand Up @@ -452,7 +454,8 @@ func TestAccAWSEcsService_withDeploymentController_Type_CodeDeploy(t *testing.T)
ImportState: true,
ImportStateVerify: true,
// Resource currently defaults to importing task_definition as family:revision
ImportStateVerifyIgnore: []string{"task_definition"},
// and wait_for_steady_state is not read from API
ImportStateVerifyIgnore: []string{"task_definition", "wait_for_steady_state"},
},
},
})
Expand Down Expand Up @@ -481,6 +484,8 @@ func TestAccAWSEcsService_withDeploymentController_Type_External(t *testing.T) {
ImportStateId: fmt.Sprintf("%s/%s", rName, rName),
ImportState: true,
ImportStateVerify: true,
// wait_for_steady_state is not read from API
ImportStateVerifyIgnore: []string{"wait_for_steady_state"},
},
},
})
Expand Down Expand Up @@ -919,6 +924,9 @@ func TestAccAWSEcsService_withLaunchTypeFargateAndWaitForSteadyState(t *testing.
ImportStateId: fmt.Sprintf("%s/%s", rName, rName),
ImportState: true,
ImportStateVerify: true,
// Resource currently defaults to importing task_definition as family:revision
// and wait_for_steady_state is not read from API
ImportStateVerifyIgnore: []string{"task_definition", "wait_for_steady_state"},
},
},
})
Expand Down Expand Up @@ -1147,7 +1155,8 @@ func TestAccAWSEcsService_Tags(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
// Resource currently defaults to importing task_definition as family:revision
ImportStateVerifyIgnore: []string{"task_definition"},
// and wait_for_steady_state is not read from API
ImportStateVerifyIgnore: []string{"task_definition", "wait_for_steady_state"},
},
{
Config: testAccAWSEcsServiceConfigTags2(rName, "key1", "value1updated", "key2", "value2"),
Expand Down

0 comments on commit 7a6369d

Please sign in to comment.