kubernetes: github.com/Icedroid/kubernetes/pkg/api/testing/compat Index | Files

package compat

import "github.com/Icedroid/kubernetes/pkg/api/testing/compat"


Package Files


func TestCompatibility Uses

func TestCompatibility(
    t *testing.T,
    version unversioned.GroupVersion,
    input []byte,
    validator func(obj runtime.Object) field.ErrorList,
    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.

Package compat imports 13 packages (graph). Updated 2017-02-27. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).