We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765be18 commit d9b69f1Copy full SHA for d9b69f1
main.tf
@@ -0,0 +1,4 @@
1
+resource "local_file" "test" {
2
+ filename = "${path.module}/test.txt"
3
+ content = "Hello world!"
4
+}
main1.tftest.hcl
@@ -0,0 +1,6 @@
+run "test" {
+ assert {
+ condition = file(local_file.test.filename) == "Hello world!"
+ error_message = "Incorrect content in ${local_file.test.filename}."
5
+ }
6
0 commit comments