e2e

package
v0.0.0-...-211e212 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: GPL-3.0 Imports: 26 Imported by: 0

README

The e2e test suite runs on OpenStack. To run the tests, your OpenStack cloud must have the following optional services running:

  • Heat
  • Swift
  • EC2 API

A file in this directory named parameters.yaml should be created with the following contents:

image: "your image name"
flavor: "your flavor"
public_net: "your public network"
dns_nameserver:  "your dns server"

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HeatTemplate embed.FS

Functions

func CleanupE2EInfra

func CleanupE2EInfra(ctx context.Context, infra *TestInfra) error

func CreateStack

func CreateStack(
	ctx context.Context,
	provider *gophercloud.ProviderClient,
	stackName string,
	binaryUrl string,
) (chan CreateStackResult, error)

func NewClient

func NewClient() (*gophercloud.ProviderClient, error)

Types

type CreateStackResult

type CreateStackResult struct {
	Stack *stacks.RetrievedStack

	Err error
}

type S3Info

type S3Info struct {
	URL         string
	CacheBucket string
	MetaBucket  string
	BinaryURL   string
	AccessKey   string
	SecretKey   string
}

func CreateS3Buckets

func CreateS3Buckets(
	ctx context.Context,
	provider *gophercloud.ProviderClient,
) (*S3Info, error)

type TestInfra

type TestInfra struct {
	Kubeconfig     *api.Config
	S3Info         *S3Info
	Provider       *gophercloud.ProviderClient
	Stack          *stacks.RetrievedStack
	ClientIP       string
	ControlPlaneIP string
	PrivateKey     []byte
}

func SetupE2EInfra

func SetupE2EInfra(ctx context.Context) (*TestInfra, error)

Jump to

Keyboard shortcuts

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