testutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

This package provides utilities to simplify other `_test` packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyClientset

func DummyClientset() *fakeclientset.Clientset

func DummyExtension

func DummyExtension(endpoints ...string) *httptest.Server

Takes list of endpoints and returns test server that serves each

func DummyHTTPRequest

func DummyHTTPRequest(method string, url string, body io.Reader) *http.Request

func DummyK8sClientset

func DummyK8sClientset() *fakek8sclientset.Clientset

func DummyResource

func DummyResource() *endpoints.Resource

func DummyServer

func DummyServer() (*httptest.Server, *endpoints.Resource, string)

Use alongside DummyHTTPRequest

func ObjectListDeepEqual

func ObjectListDeepEqual(expectedListPointer interface{}, actualListPointer interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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