configtesting

package
v2.0.0-beta.52 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LegacySSO

func LegacySSO(t *testing.T, driver TestDriver)

func SSO

func SSO(t *testing.T, driver TestDriver)

func SharedConfigFileParsing

func SharedConfigFileParsing(t *testing.T, driver TestDriver)

haredConfigFileParsing prevents regression in shared config file parsing * https://github.com/aws/aws-sdk-go-v2/issues/2349: indented keys

Types

type AwsConfigThing

type AwsConfigThing interface {
	GetAwsConfig() aws.Config
}

type ConfigFunc

type ConfigFunc func(c Configurer)

func WithProfile

func WithProfile(s string) ConfigFunc

func WithUseFIPSEndpoint

func WithUseFIPSEndpoint(b bool) ConfigFunc

type Configurer

type Configurer interface {
	SetAccessKey(s string)
	SetSecretKey(s string)
	SetProfile(s string)
	SetUseFIPSEndpoint(b bool)
	AddEndpoint(k, v string)
	AddSharedConfigFile(f string)
}

type TestCaseDriver

type TestCaseDriver interface {
	Configuration(f []ConfigFunc) Configurer
	Setup(t *testing.T)
	Apply(ctx context.Context, t *testing.T) (context.Context, Thing)
}

type TestDriver

type TestDriver interface {
	Init(mode TestMode)
	TestCase() TestCaseDriver
}

type TestMode

type TestMode int
const (
	TestModeInvalid        TestMode = 0
	TestModeLocal          TestMode = 1
	TestModeAcceptanceTest TestMode = 2
)

type Thing

type Thing interface {
	GetCredentials() aws.CredentialsProvider
	GetRegion() string
}

Jump to

Keyboard shortcuts

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