Add ability to perform assertions against the plan
before and after TestStep Config is executed
#64
Labels
enhancement
New feature or request
SDK version
Use-cases
There are some situations where
ExpectNonEmptyPlan
does not permit enough flexibility/granularity in testing, and it could be beneficial to check that a proposed plan meets the requirements of the testing scenario. For example:Attempted Solutions
I haven't attempted anything yet, but have spent time looking into how TestStep functions and can see how this could easily be included.
Happy to work on this issue though 😄
Proposal
step.PreConfig
add a new property toTestStep
namedstep.PrePlanValidate
which will take afunc
definition.step.Check
add a new onestep.PlanValidate
which would take afunc
similar toTestCheckFunc
and allow us to write specific tests on the plan output.TestCheckFunc
could be extended to provide the plan that was generated as part of the refresh step as a parameter. This would allow easy testing of state and the finalplan
for any inconsistencies.References
N/A
The text was updated successfully, but these errors were encountered: