Skip to content

Commit

Permalink
add tests for updating a user
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Gray committed Sep 13, 2015
1 parent 0ab12a5 commit 37e280f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions builtin/providers/aws/resource_aws_iam_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ func TestAccAWSUser_basic(t *testing.T) {
testAccCheckAWSUserAttributes(&conf),
),
},
resource.TestStep{
Config: testAccAWSUserConfig2,
Check: resource.ComposeTestCheckFunc(
testAccCheckAWSUserExists("aws_iam_user.user", &conf),
testAccCheckAWSUserAttributes(&conf),
),
},
},
})
}
Expand Down Expand Up @@ -105,3 +112,9 @@ resource "aws_iam_user" "user" {
path = "/"
}
`
const testAccAWSUserConfig2 = `
resource "aws_iam_user" "user" {
name = "test-user2"
path = "/balls/"
}
`

0 comments on commit 37e280f

Please sign in to comment.