fixtures

package
v0.0.0-...-14908c1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(t *testing.T, d *FixtureData) (*aws.Ec2Keypair, error)

func GenerateOptions

func GenerateOptions(t *testing.T, d *FixtureData) *terraform.Options

func GenerateSshAgent

func GenerateSshAgent(t *testing.T, d *FixtureData) *ssh.SshAgent

func GetCombinations

func GetCombinations(t *testing.T) (map[string]map[string]string, error)

func GetReleases

func GetReleases(t *testing.T) ([]string, error)

func GetRke2Releases

func GetRke2Releases(t *testing.T) (string, string, string, error)

func Teardown

func Teardown(t *testing.T, f *FixtureData)

Types

type FixtureData

type FixtureData struct {
	Id                string
	Name              string
	DataDirectory     string
	Release           string
	OperatingSystem   string
	Cni               string
	InstallType       string
	IpFamily          string
	IngressController string
	Region            string
	Owner             string
	ExampleDirectory  string // This is actually the test_relay directory
	Zone              string
	AcmeServer        string
	SshAgent          *ssh.SshAgent
	SshKeyPair        *aws.Ec2Keypair
	TfOptions         *terraform.Options
	TfVars            map[string]interface{}
}

The user's environment is expected to have ZONE set with the Route53 domain zone to create the domain name in.

func CreateFixture

func CreateFixture(t *testing.T, combo map[string]string) (string, FixtureData, error)

Jump to

Keyboard shortcuts

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