e2e

package
v0.3.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 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"
)

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 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() 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

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