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.4
- Published
- Jan 8, 2016
- Platform
- windows/amd64
- Imports
- 12 packages
- Last checked
- 4 minutes ago –
Tools for package owners.