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

package compat

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

Index

Functions

func TestCompatibility

func TestCompatibility(
	t *testing.T,
	version string,
	input []byte,
	validator func(obj runtime.Object) fielderrors.ValidationErrorList,
	expectedKeys map[string]string,
	absentKeys []string,
)

Based on: https://github.com/openshift/origin/blob/master/pkg/api/compatibility_test.go

TestCompatibility reencodes the input using the codec for the given version and checks for the presence of the expected keys and absent keys in the resulting JSON.

Source Files

compatibility_tester.go

Version
v1.1.9-beta.0
Published
Feb 23, 2016
Platform
js/wasm
Imports
12 packages
Last checked
19 seconds ago

Tools for package owners.