Skip to content

Commit

Permalink
Test to verify that setting config and refresh state together is not …
Browse files Browse the repository at this point in the history
…valid (#1069)
  • Loading branch information
bendbennett committed Oct 12, 2022
1 parent 9ec2d62 commit 5be3380
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions helper/resource/teststep_validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ func TestTestStepValidate(t *testing.T) {
testStepValidateRequest: testStepValidateRequest{},
expectedError: fmt.Errorf("TestStep missing Config or ImportState or RefreshState"),
},
"config-and-refreshstate-both-set": {
testStep: TestStep{
Config: "# not empty",
RefreshState: true,
},
expectedError: fmt.Errorf("TestStep cannot have Config and RefreshState"),
},
"refreshstate-first-step": {
testStep: TestStep{
RefreshState: true,
Expand Down

0 comments on commit 5be3380

Please sign in to comment.