Documentation ¶
Index ¶
- func CloneSnapshot(t testing.TB, snap *deploy.Snapshot) *deploy.Snapshot
- type Result
- type TestOp
- func (op TestOp) Plan(project workspace.Project, target deploy.Target, opts TestUpdateOptions, ...) (*deploy.Plan, error)
- func (op TestOp) Run(project workspace.Project, target deploy.Target, opts TestUpdateOptions, ...) (*deploy.Snapshot, error)
- func (op TestOp) RunWithContext(callerCtx context.Context, project workspace.Project, target deploy.Target, ...) (*deploy.Snapshot, error)
- type TestPlan
- func (p *TestPlan) GetProject() workspace.Project
- func (p *TestPlan) GetTarget(t testing.TB, snapshot *deploy.Snapshot) deploy.Target
- func (p *TestPlan) NewProviderURN(pkg tokens.Package, name string, parent resource.URN) resource.URN
- func (p *TestPlan) NewURN(typ tokens.Type, name string, parent resource.URN) resource.URN
- func (p *TestPlan) Run(t testing.TB, snapshot *deploy.Snapshot) *deploy.Snapshot
- type TestStep
- type TestUpdateOptions
- type ValidateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestOp ¶
type TestOp func(UpdateInfo, *Context, UpdateOptions, bool) (*deploy.Plan, display.ResourceChanges, error)
func (TestOp) Plan ¶
func (op TestOp) Plan(project workspace.Project, target deploy.Target, opts TestUpdateOptions, backendClient deploy.BackendClient, validate ValidateFunc, ) (*deploy.Plan, error)
func (TestOp) Run ¶
func (op TestOp) Run(project workspace.Project, target deploy.Target, opts TestUpdateOptions, dryRun bool, backendClient deploy.BackendClient, validate ValidateFunc, ) (*deploy.Snapshot, error)
func (TestOp) RunWithContext ¶
func (op TestOp) RunWithContext( callerCtx context.Context, project workspace.Project, target deploy.Target, opts TestUpdateOptions, dryRun bool, backendClient deploy.BackendClient, validate ValidateFunc, ) (*deploy.Snapshot, error)
type TestPlan ¶
type TestPlan struct { Project string Stack string Runtime string RuntimeOptions map[string]interface{} Config config.Map Decrypter config.Decrypter BackendClient deploy.BackendClient Options TestUpdateOptions Steps []TestStep }
func (*TestPlan) GetProject ¶
func (*TestPlan) NewProviderURN ¶
type TestStep ¶
type TestStep struct { Op TestOp ExpectFailure bool SkipPreview bool Validate ValidateFunc }
func MakeBasicLifecycleSteps ¶
resCount is the expected number of resources registered during this test.
func (*TestStep) ValidateAnd ¶
func (t *TestStep) ValidateAnd(f ValidateFunc)
type TestUpdateOptions ¶ added in v3.87.0
type TestUpdateOptions struct { UpdateOptions // a factory to produce a plugin host for an update operation. HostF deploytest.PluginHostFactory }
TestUpdateOptions is UpdateOptions for a TestPlan.
func (TestUpdateOptions) Options ¶ added in v3.87.0
func (o TestUpdateOptions) Options() UpdateOptions
Options produces UpdateOptions for an update operation.
Click to show internal directories.
Click to hide internal directories.