mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-26 08:01:03 -05:00
Simplify test
This commit is contained in:
parent
6327cc5205
commit
dcc97ab0b9
2 changed files with 19 additions and 4 deletions
|
@ -4,6 +4,6 @@ resource "aws_instance" "bad" {
|
||||||
associate_public_ip_address = true
|
associate_public_ip_address = true
|
||||||
|
|
||||||
ebs_block_device {
|
ebs_block_device {
|
||||||
encrypted = false
|
encrypted = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,22 @@
|
||||||
TAP version 13
|
TAP version 13
|
||||||
1..2
|
1..2
|
||||||
not ok 1 - terraform_bad_1.tf
|
not ok 1 - terraform_bad_1.tf
|
||||||
---
|
terrascan version 0.2.3
|
||||||
message: Failed to load configurations. 1 error(s) occurred \n\nError Invalid expression\n\n on /tmp/lint/.automation/test/terraform/bad/terraform_bad_1.tf line 3, in resource "aws_instance" "bad" \n 3 instance_type = # invalid type!\n 4 }\n\nExpected the start of an expression, but found an invalid expression token.\n
|
Logging level set to error.
|
||||||
...
|
........................................................................
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Ran 72 tests in 0.008s
|
||||||
|
|
||||||
|
OK
|
||||||
|
|
||||||
|
Processed 1 files in /tmp/lint/.terrascan
|
||||||
|
|
||||||
|
|
||||||
|
Processed on 07/24/2020 at 03:22
|
||||||
|
Results (took 0.42 seconds):
|
||||||
|
|
||||||
|
Failures: (1)
|
||||||
|
[high] [aws_instance.bad.associate_public_ip_address] should not be 'True'. Is: 'True' in module .terrascan, file /tmp/lint/.terrascan/terraform_bad_1.tf
|
||||||
|
|
||||||
|
Errors: (0)
|
||||||
ok 2 - terraform_good_1.tf
|
ok 2 - terraform_good_1.tf
|
||||||
|
|
Loading…
Reference in a new issue