e2e

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Pods            = "Pods"
	NodeConformance = `\[NodeConformance\]`
	Conformance     = `\[Conformance\]`
)
View Source
const (
	AWS          = "aws"
	DigitalOcean = "digitalocean"
)

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(filepath, content string) error

CreateFile create file with given content

func IsCommandAvailable

func IsCommandAvailable(name string) bool

IsCommandAvailable checks if command is available OS

func ValidateCommon

func ValidateCommon() error

ValidateCommon validates variables necessary to start process

Types

type AWSProvisioner

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

AWSProvisioner describes AWS provisioner

func NewAWSProvisioner

func NewAWSProvisioner(testPath, identifier string) (*AWSProvisioner, error)

NewAWSProvisioner creates and initialize AWSProvisioner structure

func (*AWSProvisioner) Cleanup

func (p *AWSProvisioner) Cleanup() error

Cleanup destroys infrastructure created by terraform

func (*AWSProvisioner) Provision

func (p *AWSProvisioner) Provision() (string, error)

Provision starts provisioning on AWS

type DOProvisioner added in v0.3.0

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

DOProvisioner describes DigitalOcean provisioner

func NewDOProvisioner added in v0.3.0

func NewDOProvisioner(testPath, identifier string) (*DOProvisioner, error)

NewDOProvisioner creates and initialize DOProvisioner structure

func (*DOProvisioner) Cleanup added in v0.3.0

func (p *DOProvisioner) Cleanup() error

Cleanup destroys infrastructure created by terraform

func (*DOProvisioner) Provision added in v0.3.0

func (p *DOProvisioner) Provision() (string, error)

Provision starts provisioning on DigitalOcean

type Kubeone

type Kubeone struct {
	// KubeoneDir temporary directory for test purpose
	KubeoneDir string
	// ConfigurationFile for Kubeone
	ConfigurationFile string
}

Kubeone structure

func NewKubeone

func NewKubeone(kubeoneDir, configurationFile string) Kubeone

func (*Kubeone) CreateKubeconfig

func (p *Kubeone) CreateKubeconfig() ([]byte, error)

CreateKubeconfig creates and store kubeconfig

func (*Kubeone) Install

func (p *Kubeone) Install(tfJSON string) error

Install starts k8s cluster deployment

func (*Kubeone) Reset

func (p *Kubeone) Reset() error

DestroyWorkers cleanup method

func (*Kubeone) Upgrade added in v0.3.0

func (p *Kubeone) Upgrade() error

type Kubetest

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

Kubetest struct

func NewKubetest

func NewKubetest(k8sVersion, kubetestDir string, envVars map[string]string) Kubetest

func (*Kubetest) Verify

func (p *Kubetest) Verify(scenario string) error

RunTests starts e2e tests

type Provisioner

type Provisioner interface {
	Provision() (string, error)
	Cleanup() error
}

func CreateProvisioner

func CreateProvisioner(testPath string, identifier string, provider string) (Provisioner, error)

CreateProvisioner returns interface for specific provisioner

Jump to

Keyboard shortcuts

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