types

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 29

Documentation

Index

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

type TestFlags

type TestFlags map[string]bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL