Documentation
¶
Index ¶
- func GetAtmosOptions(t *testing.T, config *c.Config, componentName string, stackName string, ...) *atmos.Options
- func Run(t *testing.T, s TestingSuite)
- type LocalStackConfiguration
- type SetupConfiguration
- type TestSuite
- func (s *TestSuite) AddComponentDependency(t *testing.T, componentName string, stackName string, ...)
- func (s *TestSuite) AddComponentDependencyTargets(t *testing.T, componentName string, stackName string, ...)
- func (s *TestSuite) AddDependency(t *testing.T, d *dependency.Dependency)
- func (s *TestSuite) AddFunctionDependency(t *testing.T, fn func() error)
- func (s *TestSuite) AddVendorOnlyDependency(t *testing.T, componentName string)
- func (s *TestSuite) AddWorkflowDependency(t *testing.T, workflowName string, workflowFile string)
- func (s *TestSuite) AssumeRootAccount()
- func (s *TestSuite) AssumeSuperUser()
- func (s *TestSuite) BootstrapTempDir(t *testing.T, config *c.Config)
- func (s *TestSuite) CopyComponentToTempDir(t *testing.T, config *c.Config)
- func (s *TestSuite) CopyExampleToTempDir(t *testing.T, config *c.Config)
- func (s *TestSuite) CreateSuperUser(t *testing.T) error
- func (s *TestSuite) CreateTempContents(t *testing.T, config *c.Config)
- func (s *TestSuite) DeployAtmosComponent(t *testing.T, componentName string, stackName string, ...) (*atmos.Options, string)
- func (s *TestSuite) DeployAtmosComponentWithOptions(t *testing.T, options *atmos.Options, componentName string, stackName string, ...) (*atmos.Options, string)
- func (s *TestSuite) DeployDependencies(t *testing.T, config *c.Config)
- func (s *TestSuite) DestroyAtmosComponent(t *testing.T, componentName string, stackName string, ...)
- func (s *TestSuite) DestroyConfigFile(t *testing.T, config *c.Config)
- func (s *TestSuite) DestroyDependencies(t *testing.T, config *c.Config)
- func (s *TestSuite) DestroyLocalStackContainer(t *testing.T, config *c.Config)
- func (s *TestSuite) DestroyTempDir(t *testing.T, config *c.Config)
- func (s *TestSuite) DriftTest(componentName, stackName string, additionalVars *map[string]interface{})
- func (s *TestSuite) GetAtmosOptions(componentName string, stackName string, additionalVars *map[string]interface{}) *atmos.Options
- func (s *TestSuite) GetConfig(t *testing.T) *c.Config
- func (s *TestSuite) InitConfig()
- func (s *TestSuite) InitTerraformState(t *testing.T, stack string)
- func (s *TestSuite) NewLocalstackS3Client() *s3.Client
- func (s *TestSuite) PullDependencies(t *testing.T, config *c.Config)
- func (s *TestSuite) RunAtmosWorkflow(t *testing.T, WorkflowName string, WorkflowFile string)
- func (s *TestSuite) SetupLocalStackContainer(t *testing.T, config *c.Config)
- func (s *TestSuite) SetupSuite()
- func (s *TestSuite) ShutDownExistingLocalStackContainer(t *testing.T)
- func (s *TestSuite) TearDownSuite()
- func (s *TestSuite) UpdateAwsEnvVarsToLocalStack(t *testing.T)
- func (s *TestSuite) VendorAllComponents(t *testing.T, config *c.Config)
- func (s *TestSuite) VendorDependencies(t *testing.T, config *c.Config)
- func (s *TestSuite) VerifyEnabledFlag(componentName, stackName string, additionalVars *map[string]interface{})
- type TestingSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAtmosOptions ¶
func Run ¶
func Run(t *testing.T, s TestingSuite)
Types ¶
type LocalStackConfiguration ¶
type LocalStackConfiguration struct {
Services []string
Image string
HostPort string // Set by the localstack container run
LocalStackContainer testcontainers.Container
UseDockerComposeInstance bool // Set to true if using docker compose instance
// contains filtered or unexported fields
}
func NewLocalStackConfiguration ¶
func NewLocalStackConfiguration() *LocalStackConfiguration
type SetupConfiguration ¶
type SetupConfiguration struct {
TempContentsCmd *exec.Cmd
AtmosBaseDir string // Base directory for atmos relative to the temp dir
LocalStackConfiguration *LocalStackConfiguration
VendorAllComponents bool
PullBeforeDeploy bool
DeployTfStateBackendStack string // Deploy the tfstate backend, stackName or empty string to skip
}
func NewSetupConfiguration ¶
func NewSetupConfiguration() *SetupConfiguration
type TestSuite ¶
type TestSuite struct {
Config *c.Config
Dependencies []*dependency.Dependency
Deployments []*atmos.Options
suite.Suite
SetupConfiguration *SetupConfiguration
SuperUserAccessKey string
SuperUserSecretKey string
}
func NewTestSuite ¶
func NewTestSuite() *TestSuite
func (*TestSuite) AddComponentDependency ¶
func (*TestSuite) AddComponentDependencyTargets ¶
func (*TestSuite) AddDependency ¶
func (s *TestSuite) AddDependency(t *testing.T, d *dependency.Dependency)
func (*TestSuite) AddFunctionDependency ¶
func (*TestSuite) AddVendorOnlyDependency ¶
func (*TestSuite) AddWorkflowDependency ¶
func (*TestSuite) AssumeRootAccount ¶
func (s *TestSuite) AssumeRootAccount()
func (*TestSuite) AssumeSuperUser ¶
func (s *TestSuite) AssumeSuperUser()
func (*TestSuite) BootstrapTempDir ¶
func (*TestSuite) CopyComponentToTempDir ¶
func (*TestSuite) CopyExampleToTempDir ¶
func (*TestSuite) CreateTempContents ¶
func (*TestSuite) DeployAtmosComponent ¶
func (*TestSuite) DeployAtmosComponentWithOptions ¶
func (*TestSuite) DeployDependencies ¶
func (*TestSuite) DestroyAtmosComponent ¶
func (*TestSuite) DestroyConfigFile ¶
func (*TestSuite) DestroyDependencies ¶
func (*TestSuite) DestroyLocalStackContainer ¶
func (*TestSuite) DestroyTempDir ¶
func (*TestSuite) GetAtmosOptions ¶
func (*TestSuite) InitConfig ¶
func (s *TestSuite) InitConfig()
func (*TestSuite) InitTerraformState ¶
func (*TestSuite) NewLocalstackS3Client ¶
func (*TestSuite) PullDependencies ¶
func (*TestSuite) RunAtmosWorkflow ¶
func (*TestSuite) SetupLocalStackContainer ¶
func (*TestSuite) SetupSuite ¶
func (s *TestSuite) SetupSuite()
Setup runs the setup phase of the test suite.
func (*TestSuite) ShutDownExistingLocalStackContainer ¶
func (*TestSuite) TearDownSuite ¶
func (s *TestSuite) TearDownSuite()
func (*TestSuite) UpdateAwsEnvVarsToLocalStack ¶
func (*TestSuite) VendorAllComponents ¶
func (*TestSuite) VendorDependencies ¶
func (*TestSuite) VerifyEnabledFlag ¶
type TestingSuite ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.