Skip to content

Commit

Permalink
share the data path from a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvalle committed Nov 14, 2024
1 parent 926ba3a commit 42f1a45
Show file tree
Hide file tree
Showing 4 changed files with 754 additions and 750 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ func TestEphemeralLifecycleResource_SkipWithUnknown(t *testing.T) {
// we can remove the ExpectError and uncomment the state checks.
ExpectError: regexp.MustCompile(`Unknown value encountered in Open lifecycle handler`),
// ConfigStateChecks: []statecheck.StateCheck{
// statecheck.ExpectKnownValue("echo.lifecycle_test", tfjsonpath.New("data").AtMapKey("name"), knownvalue.StringRegexp(regexp.MustCompile(`^John\s.{12}$`))),
// statecheck.ExpectKnownValue("echo.lifecycle_test", tfjsonpath.New("data").AtMapKey("token"), knownvalue.StringExact("fake-token-12345")),
// statecheck.ExpectKnownValue("echo.lifecycle_test", echoDataPath.AtMapKey("name"), knownvalue.StringRegexp(regexp.MustCompile(`^John\s.{12}$`))),
// statecheck.ExpectKnownValue("echo.lifecycle_test", echoDataPath.AtMapKey("token"), knownvalue.StringExact("fake-token-12345")),
// },
},
},
Expand Down
Loading

0 comments on commit 42f1a45

Please sign in to comment.