Test: Refresh-only and refresh:false should fail validation

Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
This commit is contained in:
RLRabinowitz 2023-08-31 16:40:42 +03:00
parent 08536a74a2
commit 650caafafb
3 changed files with 13 additions and 0 deletions

View File

@ -227,6 +227,10 @@ func TestTest_Broken_Full_Output(t *testing.T) {
expected: "Blocks of type \"check\" are not expected here.",
code: 1,
},
"refresh_conflicting_config": {
expected: "Incompatible plan options",
code: 1,
},
}
for name, tc := range tcs {
t.Run(name, func(t *testing.T) {

View File

@ -0,0 +1,3 @@
resource "test_resource" "foo" {
value = "bar"
}

View File

@ -0,0 +1,6 @@
run "apply" {
plan_options {
mode=refresh-only
refresh=false
}
}