You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a security group with an ingress that references another security group in the plan, Terraform Compliance fails with AttributeError
To Reproduce
Feature File:
Feature: SSH or RDP Port OpenScenario Outline: SSH or RDP Port OpenGiven I have aws_security_group defined
When it has ingress
Then it must contain ingress
Then it must not have <proto> protocol and port <portRange> for "([0-9]{1,3}\.){3}[0-9]{1,3}\/*"Examples:
|proto|portRange| |tcp|22| |tcp|3389|
Feature: SSH or RDP Port Open # /Users/XXXXXX/WSSHRDPPortOpen.feature
Scenario Outline: SSH or RDP Port Open
Given I have aws_security_group defined
When it has ingress
Then it must contain ingress
Then it must not have <proto> protocol and port <portRange> for "([0-9]{1,3}\.){3}[0-9]{1,3}\/*"
Examples:
| proto | portRange |
| tcp | 22 |
AttributeError: 'str' object has no attribute 'get'
| tcp | 3389 |
AttributeError: 'str' object has no attribute 'get'
or with -S
ERROR: Hook 'silent_formatter_after_each_feature' from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/terraform_compliance/extensions/silent_formatter.py:23 raised: 'AttributeError: 'Context' object has no attribute 'failure_msg''
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/radish/hookregistry.py", line 132, in call
func(model, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/terraform_compliance/extensions/silent_formatter.py", line 36, in silent_formatter_after_each_feature
self.silent_formatter_after_each_scenario(scenario)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/terraform_compliance/extensions/silent_formatter.py", line 57, in silent_formatter_after_each_scenario
if len(step.context.failure_msg) == 2:
AttributeError: 'Context' object has no attribute 'failure_msg'
Expected Behavior:
The test should pass
Tested Versions:
terraform-compliance version: v1.3.32
terraform version: v1.1.9
python version: Python 3.8.1
The text was updated successfully, but these errors were encountered:
Description
When creating a security group with an ingress that references another security group in the plan, Terraform Compliance fails with AttributeError
To Reproduce
Feature File:
Plan File:
Sample Terraform Code:
Used
terraform-compliance
Parameters:N/A
Error Output:
or with -S
Expected Behavior:
The test should pass
Tested Versions:
v1.3.32
v1.1.9
Python 3.8.1
The text was updated successfully, but these errors were encountered: