refactor: generated

This commit is contained in:
Clayton Coleman
2016-12-09 13:16:33 -05:00
parent 596d9de8fa
commit c52d510a24
83 changed files with 11705 additions and 27639 deletions

View File

@@ -105,13 +105,13 @@ func TestValidateObjectMetaOwnerReferences(t *testing.T) {
falseVar := false
testCases := []struct {
description string
ownerReferences []api.OwnerReference
ownerReferences []metav1.OwnerReference
expectError bool
expectedErrorMessage string
}{
{
description: "simple success - third party extension.",
ownerReferences: []api.OwnerReference{
ownerReferences: []metav1.OwnerReference{
{
APIVersion: "thirdpartyVersion",
Kind: "thirdpartyKind",
@@ -124,7 +124,7 @@ func TestValidateObjectMetaOwnerReferences(t *testing.T) {
},
{
description: "simple failures - event shouldn't be set as an owner",
ownerReferences: []api.OwnerReference{
ownerReferences: []metav1.OwnerReference{
{
APIVersion: "v1",
Kind: "Event",
@@ -137,7 +137,7 @@ func TestValidateObjectMetaOwnerReferences(t *testing.T) {
},
{
description: "simple controller ref success - one reference with Controller set",
ownerReferences: []api.OwnerReference{
ownerReferences: []metav1.OwnerReference{
{
APIVersion: "thirdpartyVersion",
Kind: "thirdpartyKind",
@@ -171,7 +171,7 @@ func TestValidateObjectMetaOwnerReferences(t *testing.T) {
},
{
description: "simple controller ref failure - two references with Controller set",
ownerReferences: []api.OwnerReference{
ownerReferences: []metav1.OwnerReference{
{
APIVersion: "thirdpartyVersion",
Kind: "thirdpartyKind",