testing framework: change test file extension to .tftest.hcl (#33553)

This commit is contained in:
Liam Cervante
2023-07-20 16:57:05 +02:00
committed by GitHub
parent ca85d3bf85
commit c91f91cc9e
51 changed files with 177 additions and 176 deletions

View File

@@ -151,7 +151,7 @@ func (c *ProvidersCommand) populateTreeNode(tree treeprint.Tree, node *configs.M
tree.AddNode(fmt.Sprintf("provider[%s]%s", fqn.String(), versionsStr))
}
for name, testNode := range node.Tests {
name = strings.TrimSuffix(name, ".tftest")
name = strings.TrimSuffix(name, ".tftest.hcl")
name = strings.ReplaceAll(name, "/", ".")
branch := tree.AddBranch(fmt.Sprintf("test.%s", name))