mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Test: Refresh-only and refresh:false should fail validation
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
This commit is contained in:
parent
08536a74a2
commit
650caafafb
@ -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) {
|
||||
|
3
internal/command/testdata/test/refresh_conflicting_config/main.tf
vendored
Normal file
3
internal/command/testdata/test/refresh_conflicting_config/main.tf
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
resource "test_resource" "foo" {
|
||||
value = "bar"
|
||||
}
|
6
internal/command/testdata/test/refresh_conflicting_config/main.tftest.hcl
vendored
Normal file
6
internal/command/testdata/test/refresh_conflicting_config/main.tftest.hcl
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
run "apply" {
|
||||
plan_options {
|
||||
mode=refresh-only
|
||||
refresh=false
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user