Documentation ¶
Index ¶
- type AllowedTestFlags
- type GenericTFModuleConfig
- type SecurityGroupT
- type TestContext
- func (ctx *TestContext) AllowedTestFlags() AllowedTestFlags
- func (ctx *TestContext) CurrentTestName() string
- func (ctx *TestContext) EnabledOnlyForTests(t *testing.T, testName ...string)
- func (ctx *TestContext) IsCurrentTest(testName string) bool
- func (ctx *TestContext) SetCurrentTestName(testName string)
- func (ctx *TestContext) SetTerratestTerraformOptions(options *terraform.Options)
- func (ctx *TestContext) SetTestConfig(config any)
- func (ctx *TestContext) TerratestTerraformOptions() *terraform.Options
- func (ctx *TestContext) TestConfig() any
- func (ctx *TestContext) TestConfigFileName() string
- func (ctx *TestContext) TestConfigFolderName() string
- func (ctx *TestContext) TestSpecificFlags() map[string]TestFlags
- type TestContextBuilder
- func (b TestContextBuilder) Build() *TestContext
- func (b TestContextBuilder) SetCurrentTestName(testName string) *TestContextBuilder
- func (b TestContextBuilder) SetTerraformOptions(options *terraform.Options) *TestContextBuilder
- func (b TestContextBuilder) SetTestConfig(config interface{}) *TestContextBuilder
- func (b TestContextBuilder) SetTestConfigFileName(fileName string) *TestContextBuilder
- func (b TestContextBuilder) SetTestConfigFolderName(folderName string) *TestContextBuilder
- func (b TestContextBuilder) SetTestSpecificFlags(flags map[string]TestFlags) *TestContextBuilder
- type TestFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowedTestFlags ¶
type AllowedTestFlags []string
type GenericTFModuleConfig ¶
type GenericTFModuleConfig struct { //the framework standard subset of attributes Naming_prefix string `json:"naming_prefix"` Environment string `json:"environment"` Environment_number string `json:"environment_number"` Resource_number string `json:"resource_number"` Tags map[string]string `json:"tags"` }
type SecurityGroupT ¶
type SecurityGroupT struct { EgressWithCidrBlocks []struct { CidrBlocksCommaSeparated string `json:"cidr_blocks"` CidrBlocks []string FromPort int `json:"from_port"` Protocol string `json:"protocol"` ToPort int `json:"to_port"` } `json:"egress_with_cidr_blocks"` IngressCidrBlocks []string `json:"ingress_cidr_blocks"` IngressRules []string `json:"ingress_rules"` }
type TestContext ¶
type TestContext struct {
// contains filtered or unexported fields
}
func NewTestContext ¶
func NewTestContext() *TestContext
func (*TestContext) AllowedTestFlags ¶
func (ctx *TestContext) AllowedTestFlags() AllowedTestFlags
func (*TestContext) CurrentTestName ¶
func (ctx *TestContext) CurrentTestName() string
func (*TestContext) EnabledOnlyForTests ¶
func (ctx *TestContext) EnabledOnlyForTests(t *testing.T, testName ...string)
func (*TestContext) IsCurrentTest ¶
func (ctx *TestContext) IsCurrentTest(testName string) bool
func (*TestContext) SetCurrentTestName ¶
func (ctx *TestContext) SetCurrentTestName(testName string)
func (*TestContext) SetTerratestTerraformOptions ¶
func (ctx *TestContext) SetTerratestTerraformOptions(options *terraform.Options)
func (*TestContext) SetTestConfig ¶
func (ctx *TestContext) SetTestConfig(config any)
func (*TestContext) TerratestTerraformOptions ¶
func (ctx *TestContext) TerratestTerraformOptions() *terraform.Options
func (*TestContext) TestConfig ¶
func (ctx *TestContext) TestConfig() any
func (*TestContext) TestConfigFileName ¶
func (ctx *TestContext) TestConfigFileName() string
func (*TestContext) TestConfigFolderName ¶
func (ctx *TestContext) TestConfigFolderName() string
func (*TestContext) TestSpecificFlags ¶
func (ctx *TestContext) TestSpecificFlags() map[string]TestFlags
type TestContextBuilder ¶
type TestContextBuilder struct {
// contains filtered or unexported fields
}
func CreateTestContextBuilder ¶
func CreateTestContextBuilder() *TestContextBuilder
func (TestContextBuilder) Build ¶
func (b TestContextBuilder) Build() *TestContext
func (TestContextBuilder) SetCurrentTestName ¶
func (b TestContextBuilder) SetCurrentTestName(testName string) *TestContextBuilder
func (TestContextBuilder) SetTerraformOptions ¶
func (b TestContextBuilder) SetTerraformOptions(options *terraform.Options) *TestContextBuilder
func (TestContextBuilder) SetTestConfig ¶
func (b TestContextBuilder) SetTestConfig(config interface{}) *TestContextBuilder
func (TestContextBuilder) SetTestConfigFileName ¶
func (b TestContextBuilder) SetTestConfigFileName(fileName string) *TestContextBuilder
func (TestContextBuilder) SetTestConfigFolderName ¶
func (b TestContextBuilder) SetTestConfigFolderName(folderName string) *TestContextBuilder
func (TestContextBuilder) SetTestSpecificFlags ¶
func (b TestContextBuilder) SetTestSpecificFlags(flags map[string]TestFlags) *TestContextBuilder
Click to show internal directories.
Click to hide internal directories.