Add UID to MetaAccessor and Ref

This commit is contained in:
Clayton Coleman
2014-10-22 22:59:15 -04:00
parent 1ccb86c760
commit 35eaf90255
6 changed files with 32 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ func TestGetReference(t *testing.T) {
obj: &Pod{
TypeMeta: TypeMeta{
Name: "foo",
UID: "bar",
ResourceVersion: "42",
SelfLink: "/api/v1beta1/pods/foo",
},
@@ -45,7 +46,7 @@ func TestGetReference(t *testing.T) {
Kind: "Pod",
APIVersion: "v1beta1",
Name: "foo",
UID: "foo",
UID: "bar",
ResourceVersion: "42",
},
},
@@ -53,6 +54,7 @@ func TestGetReference(t *testing.T) {
obj: &ServiceList{
TypeMeta: TypeMeta{
Name: "foo",
UID: "bar",
ResourceVersion: "42",
SelfLink: "/api/v1beta2/services",
},
@@ -61,7 +63,7 @@ func TestGetReference(t *testing.T) {
Kind: "ServiceList",
APIVersion: "v1beta2",
Name: "foo",
UID: "foo",
UID: "bar",
ResourceVersion: "42",
},
},