Skip to content

Commit

Permalink
tests/resource/aws_ssm_maintenance_window_target: Fix TestAccAWSSSMMa…
Browse files Browse the repository at this point in the history
…intenanceWindowTarget_resourceGroup (#15134)

Output from acceptance testing:

```
--- PASS: TestAccAWSSSMMaintenanceWindowTarget_resourceGroup (23.82s)
```
  • Loading branch information
nikhil-goenka authored Sep 14, 2020
1 parent 57ea1a2 commit 69c8a5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions aws/resource_aws_ssm_maintenance_window_target_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,8 @@ func TestAccAWSSSMMaintenanceWindowTarget_resourceGroup(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckAWSSSMMaintenanceWindowTargetExists(resourceName, &maint),
resource.TestCheckResourceAttr(resourceName, "targets.0.key", "resource-groups:ResourceTypeFilters"),
resource.TestCheckResourceAttr(resourceName, "targets.0.values.#", "2"),
resource.TestCheckResourceAttr(resourceName, "targets.0.values.0", "AWS::EC2::INSTANCE"),
resource.TestCheckResourceAttr(resourceName, "targets.0.values.1", "AWS::EC2::VPC"),
resource.TestCheckResourceAttr(resourceName, "targets.0.values.#", "1"),
resource.TestCheckResourceAttr(resourceName, "targets.0.values.0", "AWS::EC2::Instance"),
resource.TestCheckResourceAttr(resourceName, "targets.1.key", "resource-groups:Name"),
resource.TestCheckResourceAttr(resourceName, "targets.1.values.#", "1"),
resource.TestCheckResourceAttr(resourceName, "targets.1.values.0", "resource-group-name"),
Expand Down Expand Up @@ -345,7 +344,7 @@ resource "aws_ssm_maintenance_window_target" "test" {
targets {
key = "resource-groups:ResourceTypeFilters"
values = ["AWS::EC2::INSTANCE", "AWS::EC2::VPC"]
values = ["AWS::EC2::Instance"]
}
targets {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/ssm_maintenance_window_target.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ resource "aws_ssm_maintenance_window_target" "target1" {
targets {
key = "resource-groups:ResourceTypeFilters"
values = ["AWS::EC2::INSTANCE", "AWS::EC2::VPC"]
values = ["AWS::EC2::Instance"]
}
}
```
Expand Down

0 comments on commit 69c8a5d

Please sign in to comment.