e2e

package
v1.17.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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