Documentation ¶
Index ¶
- func CloneSnapshot(t *testing.T, snap *deploy.Snapshot) *deploy.Snapshot
- type TestOp
- func (op TestOp) Plan(project workspace.Project, target deploy.Target, opts UpdateOptions, ...) (*deploy.Plan, result.Result)
- func (op TestOp) Run(project workspace.Project, target deploy.Target, opts UpdateOptions, ...) (*deploy.Snapshot, result.Result)
- func (op TestOp) RunWithContext(callerCtx context.Context, project workspace.Project, target deploy.Target, ...) (*deploy.Snapshot, result.Result)
- type TestPlan
- func (p *TestPlan) GetProject() workspace.Project
- func (p *TestPlan) GetTarget(t *testing.T, 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.T, snapshot *deploy.Snapshot) *deploy.Snapshot
- type TestStep
- 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, result.Result)
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 UpdateOptions 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)
Click to show internal directories.
Click to hide internal directories.