add tests for updating a user
This commit is contained in:
parent
0ab12a54f1
commit
37e280f6be
|
@ -26,6 +26,13 @@ func TestAccAWSUser_basic(t *testing.T) {
|
||||||
testAccCheckAWSUserAttributes(&conf),
|
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 = "/"
|
path = "/"
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
const testAccAWSUserConfig2 = `
|
||||||
|
resource "aws_iam_user" "user" {
|
||||||
|
name = "test-user2"
|
||||||
|
path = "/balls/"
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
Loading…
Reference in New Issue