add tests for updating a user

This commit is contained in:
Patrick Gray 2015-09-13 03:52:40 -04:00
parent 0ab12a54f1
commit 37e280f6be
1 changed files with 13 additions and 0 deletions

View File

@ -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),
),
},
},
})
}
@ -105,3 +112,9 @@ resource "aws_iam_user" "user" {
path = "/"
}
`
const testAccAWSUserConfig2 = `
resource "aws_iam_user" "user" {
name = "test-user2"
path = "/balls/"
}
`