Documentation ¶
Overview ¶
Package integration is a test library for validating in-memory providers behave correctly.
It sits just above the gRPC level. For full unit testing, see github.com/pulumi/pulumi/pkg/v3/testing/integration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LifeCycleTest ¶
LifeCycleTest describing the lifecycle of a resource test.
type Operation ¶
type Operation struct { // The inputs for the operation Inputs presource.PropertyMap // The expected output for the operation. If ExpectedOutput is nil, no check will be made. ExpectedOutput presource.PropertyMap // A function called on the output of this operation. Hook func(inputs, output presource.PropertyMap) // If the test should expect the operation to signal an error. ExpectFailure bool // If CheckFailures is non-nil, expect the check step to fail with the provided output. CheckFailures []p.CheckFailure }
Operation describes a step in a LifeCycleTest.
TODO: Add support for diff verification.
type Server ¶
type Server interface { GetSchema(p.GetSchemaRequest) (p.GetSchemaResponse, error) Cancel() error CheckConfig(p.CheckRequest) (p.CheckResponse, error) DiffConfig(p.DiffRequest) (p.DiffResponse, error) Configure(p.ConfigureRequest) error Invoke(p.InvokeRequest) (p.InvokeResponse, error) Check(p.CheckRequest) (p.CheckResponse, error) Diff(p.DiffRequest) (p.DiffResponse, error) Create(p.CreateRequest) (p.CreateResponse, error) Read(p.ReadRequest) (p.ReadResponse, error) Update(p.UpdateRequest) (p.UpdateResponse, error) Delete(p.DeleteRequest) error Construct(p.ConstructRequest) (p.ConstructResponse, error) }
Click to show internal directories.
Click to hide internal directories.