github.com/opentofu/opentofu@v1.7.1/internal/command/testdata/test/refresh_only/main.tftest.hcl (about) 1 run "first" { 2 variables { 3 input = "first" 4 } 5 6 assert { 7 condition = test_resource.foo.value == "first" 8 error_message = "invalid value" 9 } 10 } 11 12 run "second" { 13 command=plan 14 plan_options { 15 mode=refresh-only 16 } 17 18 variables { 19 input = "second" 20 } 21 22 assert { 23 condition = test_resource.foo.value == "first" 24 error_message = "invalid value" 25 } 26 } 27 28 run "third" { 29 command=plan 30 plan_options { 31 mode=normal 32 } 33 34 variables { 35 input = "second" 36 } 37 38 assert { 39 condition = test_resource.foo.value == "second" 40 error_message = "invalid value" 41 } 42 }