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 condition on resource which has its own type property fails
Since azuread_application_permission_scope doesn't have a name property I want to exlude it from the scenario that I use to ensure all resource names are lower case. I have done the same for azuread_application which works.
It doesn't work for azuread_application_permission_scope and the test fails.
I suspect that it has something to do with the fact that azuread_application_permission_scope itself has a property called type.
To Reproduce
Feature File:
@case-sensitiveScenario: Ensure all azure ad resource names are all lowercaseGiven I have resource that supports name defined
When its provider_name is registry.terraform.io/hashicorp/azuread
When its type is not azuread_application
When its type is not azuread_application_permission_scope
Then it must have name
And its value must match the "^[a-z-0-9]+$" regex
When condition on resource which has its own type property fails
Since azuread_application_permission_scope doesn't have a name property I want to exlude it from the scenario that I use to ensure all resource names are lower case. I have done the same for azuread_application which works.
It doesn't work for azuread_application_permission_scope and the test fails.
I suspect that it has something to do with the fact that azuread_application_permission_scope itself has a property called type.
To Reproduce
Feature File:
Plan File:
Sample Terraform Code:
Used
terraform-compliance
Parameters:podman run --rm -v ./:/target -i eerkunt/terraform-compliance -f features -p main.tfplan.json
Running via Docker:
Yes
Running container with podman v4.9.2
Error Output:
Test scenario fails
Expected Behavior:
Test scenario is skipped for resource of type azuread_application_permission_scope
Tested Versions:
v1.3.47
v1.7.3
your python runtime version, if running as a python package
Additional Context:
Using provider registry.terraform.io/hashicorp/azuread v2.47.0
The text was updated successfully, but these errors were encountered: