cdpacctest

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourcePrefix = "tf-acc-test"
)

Variables

View Source
var (
	AwsExternalProvider = map[string]resource.ExternalProvider{
		"aws": {
			Source:            "hashicorp/aws",
			VersionConstraint: "~> 5.0",
		},
	}
	HttpExternalProvider = map[string]resource.ExternalProvider{
		"http": {
			Source:            "hashicorp/http",
			VersionConstraint: "~> 3.4",
		},
	}
	TimeExternalProvider = map[string]resource.ExternalProvider{
		"time": {
			Source: "hashicorp/time",
		},
	}
)
View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"cdp": providerserver.NewProtocol6WithError(provider.New("test")()),
}

Functions

func CheckCrn

func CheckCrn(value string) error

CheckCrn Checks whether the value is set and is a properly formatted CRN

func ConcatExternalProviders

func ConcatExternalProviders(providerMaps ...map[string]resource.ExternalProvider) map[string]resource.ExternalProvider

func CreateDefaultRoleAndPolicy added in v0.7.4

func CreateDefaultRoleAndPolicy(p *AwsAccountCredentials) string

func GetCdpClientForAccTest

func GetCdpClientForAccTest() *cdp.Client

func PreCheck

func PreCheck(t *testing.T)

func RandomShortWithPrefix added in v0.5.9

func RandomShortWithPrefix(name string) string

func TestAccAwsProviderConfig

func TestAccAwsProviderConfig(p *AwsProvider) string

func TestAccCdpProviderConfig

func TestAccCdpProviderConfig() string

Types

type AwsAccountCredentials added in v0.7.4

type AwsAccountCredentials struct {
	// contains filtered or unexported fields
}

func NewAwsAccountCredentials added in v0.7.4

func NewAwsAccountCredentials(name string) *AwsAccountCredentials

func (*AwsAccountCredentials) WithAccountID added in v0.7.4

func (a *AwsAccountCredentials) WithAccountID(t *testing.T) *AwsAccountCredentials

func (*AwsAccountCredentials) WithExternalID added in v0.7.4

func (a *AwsAccountCredentials) WithExternalID(t *testing.T) *AwsAccountCredentials

func (*AwsAccountCredentials) WithPolicy added in v0.7.4

type AwsProvider added in v0.7.4

type AwsProvider struct {
	// contains filtered or unexported fields
}

func NewAwsProvider added in v0.7.4

func NewAwsProvider(profile, region string) *AwsProvider

Jump to

Keyboard shortcuts

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