setup

package
v4.0.0-2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNIC

func CreateNIC(ctx context.Context, location, groupName string, subnet network.Subnet, ip network.PublicIPAddress, nicClient network.InterfacesClient) (nic network.Interface, err error)

CreateNIC creates a new network interface in the passed subnet using the passed public ip address.

func CreatePublicIP

func CreatePublicIP(ctx context.Context, location, groupName string, ipClient network.PublicIPAddressesClient) (ip network.PublicIPAddress, err error)

CreatePublicIP creates a new public IP.

func CreateVM

func CreateVM(ctx context.Context, location, groupName, sshKeyData string, nic network.Interface, config Config) error

CreateVM creates a new virtual machine with the specified name using the specified NIC.

func GetLatestOperatorRelease

func GetLatestOperatorRelease() string

func Setup

func Setup(ctx context.Context, c Config) error

Setup e2e testing environment.

func Teardown

func Teardown(c Config) error

Teardown e2e testing environment.

func WaitForNetworkToBeCreated

func WaitForNetworkToBeCreated(ctx context.Context, logger micrologger.Logger, resourceGroupName, virtualNetworkName, masterSubnetName string, subnetsClient network.SubnetsClient) error

func WrapTestMain

func WrapTestMain(m *testing.M, c Config)

WrapTestMain setup and teardown e2e testing environment.

Types

type Config

type Config struct {
	AzureClient *e2eclientsazure.Client
	Guest       *framework.Guest
	HelmClient  helmclient.Interface
	Host        *framework.Host
	K8s         *k8sclient.Setup
	K8sClients  k8sclient.Interface
	Logger      micrologger.Logger
	Release     *release.Release
}

func NewConfig

func NewConfig() (Config, error)

Jump to

Keyboard shortcuts

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