e2e

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForHTTPAvailable

func WaitForHTTPAvailable(t *testing.T, ingressIP string, useHTTPS bool)

WaitForHTTPAvailable tries to connect to the given IP via http It tries it for 2 minutes, if after two minutes the connection wasn't successful and it wasn't a HTTP 200 response it will fail.

Types

type TestCluster

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

func (*TestCluster) CreateTLSCertificate

func (tc *TestCluster) CreateTLSCertificate(t *testing.T, baseName string) *hcloud.Certificate

CreateTLSCertificate creates a TLS certificate used for testing and posts it to the Hetzner Cloud backend.

The baseName of the certificate gets a random number suffix attached. baseName and suffix are separated by a single "-" character.

func (*TestCluster) Start

func (tc *TestCluster) Start() error

func (*TestCluster) Stop

func (tc *TestCluster) Stop() error

Jump to

Keyboard shortcuts

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