test(module): really test the generated access key
All checks were successful
main / test (push) Successful in 2m49s
All checks were successful
main / test (push) Successful in 2m49s
This commit is contained in:
parent
00ee290f29
commit
37534f83da
5 changed files with 63 additions and 6 deletions
|
@ -5,11 +5,10 @@ provider "aws" {
|
|||
|
||||
run "main" {
|
||||
assert {
|
||||
condition = output.access_key_id != null
|
||||
error_message = "invalid IAM access key ID"
|
||||
condition = data.external.main.result.Arn == local.expected_arn
|
||||
error_message = "user ARN mismatch"
|
||||
}
|
||||
module {
|
||||
source = "./test"
|
||||
}
|
||||
}
|
||||
|
||||
variables {
|
||||
name = "tftest-user"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue