package testing
import "k8s.io/kubernetes/pkg/api/testing"
Index ¶
- func DeepEqualSafePodSpec() api.PodSpec
- func FuzzerFuncs(t apitesting.TestingCommon, codecs runtimeserializer.CodecFactory) []interface{}
- func TestSelectableFieldLabelConversionsOfKind(t *testing.T, apiVersion string, kind string, fields fields.Set, labelMap map[string]string)
- func V1DeepEqualSafePodSpec() v1.PodSpec
Functions ¶
func DeepEqualSafePodSpec ¶
DeepEqualSafePodSpec returns a PodSpec which is ready to be used with apiequality.Semantic.DeepEqual
func FuzzerFuncs ¶
func FuzzerFuncs(t apitesting.TestingCommon, codecs runtimeserializer.CodecFactory) []interface{}
func TestSelectableFieldLabelConversionsOfKind ¶
func TestSelectableFieldLabelConversionsOfKind(t *testing.T, apiVersion string, kind string, fields fields.Set, labelMap map[string]string)
TestSelectableFieldLabelConversions 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 ¶
V1DeepEqualSafePodSpec returns a PodSpec which is ready to be used with apiequality.Semantic.DeepEqual
Source Files ¶
conversion.go fuzzer.go pod_specs.go
Directories ¶
Path | Synopsis |
---|---|
pkg/api/testing/compat |
- Version
- v1.7.6-beta.0
- Published
- Aug 31, 2017
- Platform
- js/wasm
- Imports
- 27 packages
- Last checked
- 5 minutes ago –
Tools for package owners.