featuretests

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package featuretests provides end to end tests of specific features.

Index

Constants

View Source
const (
	// generated by https://www.selfsignedcertificate.com
	CERTIFICATE = `` /* 1138-byte string literal not displayed */

	RSA_PRIVATE_KEY = `` /* 1678-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func DefaultCluster

func DefaultCluster(clusters ...*v2.Cluster) *v2.Cluster

DefaultCluster returns a copy of the default Cluster, with each Cluster given in the parameter slice merged on top. This makes it relatively fluent to compose Clusters by tweaking a few fields.

Types

type Contour

type Contour struct {
	*grpc.ClientConn
	*testing.T
	// contains filtered or unexported fields
}

func (*Contour) NoStatus added in v1.2.0

func (c *Contour) NoStatus(obj interface{}) *Contour

NoStatus asserts that the given object did not get any status set.

func (*Contour) Request

func (c *Contour) Request(typeurl string, names ...string) *Response

func (*Contour) Status added in v1.1.0

func (c *Contour) Status(obj interface{}) *statusResult

Status returns a statusResult object that can be used to assert on object status fields.

type Response

type Response struct {
	*Contour
	*v2.DiscoveryResponse
}

func (*Response) Equals

func (r *Response) Equals(want *v2.DiscoveryResponse) *Contour

Equals tests that the response retrieved from Contour is equal to the supplied value. TODO(youngnick) This function really should be copied to an `EqualResources` function.

Jump to

Keyboard shortcuts

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