kubernetesk8s.io/kubernetes/pkg/api/testing Index | Files | Directories

package testing

import "k8s.io/kubernetes/pkg/api/testing"

Package testing contains - all generic API tests which depend on Kubernetes API types - all cross-Kubernetes-API tests.

Index

Variables

FuzzerFuncs is a list of fuzzer functions

Functions

func DeepEqualSafePodSpec

func DeepEqualSafePodSpec() api.PodSpec

DeepEqualSafePodSpec returns a PodSpec which is ready to be used with apiequality.Semantic.DeepEqual

func TestSelectableFieldLabelConversionsOfKind

func TestSelectableFieldLabelConversionsOfKind(t *testing.T, apiVersion string, kind string, fields fields.Set, labelMap map[string]string)

TestSelectableFieldLabelConversionsOfKind verifies that given resource have field label conversion defined for each its selectable field. fields contains selectable fields of the resource. labelMap maps deprecated labels to their canonical names.

func V1DeepEqualSafePodSpec

func V1DeepEqualSafePodSpec() v1.PodSpec

V1DeepEqualSafePodSpec returns a PodSpec which is ready to be used with apiequality.Semantic.DeepEqual

Source Files

conversion.go doc.go fuzzer.go pod_specs.go

Directories

PathSynopsis
pkg/api/testing/compat
Version
v1.14.0-beta.1
Published
Feb 26, 2019
Platform
js/wasm
Imports
27 packages
Last checked
5 minutes ago

Tools for package owners.