Documentation
¶
Overview ¶
Package internal implements the uptest runtime for running automated tests using resource example manifests using chainsaw.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Preparer ¶ added in v1.3.0
type Preparer struct {
// contains filtered or unexported fields
}
Preparer represents a structure used to prepare testing environments or configurations.
func NewPreparer ¶ added in v1.3.0
func NewPreparer(testFilePaths []string, opts ...PreparerOption) *Preparer
NewPreparer creates a new Preparer instance with the provided test file paths and optional configurations. It applies any provided PreparerOption functions to customize the Preparer.
func (*Preparer) PrepareManifests ¶ added in v1.3.0
PrepareManifests prepares and processes manifests from test files. It performs the following steps: 1. Cleans and recreates the case directory. 2. Injects variables into test files. 3. Decodes, processes, and validates each manifest file, skipping any that require manual intervention. 4. Returns the processed manifests or an error if any step fails.
type PreparerOption ¶ added in v1.3.0
type PreparerOption func(*Preparer)
PreparerOption is a functional option type for configuring a Preparer.
func WithDataSource ¶ added in v1.3.0
func WithDataSource(path string) PreparerOption
WithDataSource is a functional option that sets the data source path for the Preparer.
func WithTestDirectory ¶ added in v1.3.0
func WithTestDirectory(path string) PreparerOption
WithTestDirectory is a functional option that sets the test directory for the Preparer.
type Tester ¶ added in v1.3.0
type Tester struct {
// contains filtered or unexported fields
}
Tester is responsible preparing and storing the test data&configurations, and executing the tests.
func NewTester ¶ added in v1.3.0
func NewTester(ms []config.Manifest, opts *config.AutomatedTest) *Tester
NewTester returns a Tester object.
func (*Tester) ExecuteTests ¶ added in v1.3.0
ExecuteTests execute tests via chainsaw.
Directories
¶
Path | Synopsis |
---|---|
Package config contains configuration options for configuring uptest runtime.
|
Package config contains configuration options for configuring uptest runtime. |
Package templates contains utilities for rendering chainsaw test cases using the templates contained in the package.
|
Package templates contains utilities for rendering chainsaw test cases using the templates contained in the package. |
Package version contains the version of provider-aws repo
|
Package version contains the version of provider-aws repo |