testutils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 16 Imported by: ? 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

Overview

Package testutils 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

DummyClientset returns a fake Tekton Pipelines clientset

func DummyHTTPRequest

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

DummyHTTPRequest returns a HTTP request with a JSON content type header as well as the configured with the parameters

func DummyK8sClientset

func DummyK8sClientset() *fakek8sclientset.Clientset

DummyK8sClientset returns a fake K8s clientset

func DummyResource

func DummyResource() *endpoints.Resource

DummyResource returns a Resource populated by fake clientsets

func DummyResourceClientset added in v0.5.0

func DummyResourceClientset() *fakeresourceclientset.Clientset

DummyResourceClientset returns a fake Tekton Pipelines clientset

func DummyServer

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

DummyServer returns a httptest server of the Tekton Dashboard

func ObjectListDeepEqual

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

ObjectListDeepEqual errors if the two object lists are not equal

Types

This section is empty.

Jump to

Keyboard shortcuts

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