Removing some references to v1beta1 from test code

This commit is contained in:
nikhiljindal
2015-04-08 16:28:28 -07:00
parent c4cbc9bc46
commit 08d9e244f7
7 changed files with 49 additions and 45 deletions

View File

@@ -40,13 +40,13 @@ func TestGetReference(t *testing.T) {
Name: "foo",
UID: "bar",
ResourceVersion: "42",
SelfLink: "/api/v1beta1/pods/foo",
SelfLink: "/api/version1/pods/foo",
},
},
fieldPath: ".desiredState.containers[0]",
ref: &ObjectReference{
Kind: "Pod",
APIVersion: "v1beta1",
APIVersion: "version1",
Name: "foo",
UID: "bar",
ResourceVersion: "42",
@@ -57,12 +57,12 @@ func TestGetReference(t *testing.T) {
obj: &ServiceList{
ListMeta: ListMeta{
ResourceVersion: "42",
SelfLink: "/api/v1beta2/services",
SelfLink: "/api/version2/services",
},
},
ref: &ObjectReference{
Kind: "ServiceList",
APIVersion: "v1beta2",
APIVersion: "version2",
ResourceVersion: "42",
},
},
@@ -70,7 +70,7 @@ func TestGetReference(t *testing.T) {
obj: &ServiceList{
ListMeta: ListMeta{
ResourceVersion: "42",
SelfLink: "v1beta2/services",
SelfLink: "version2/services",
},
},
shouldErr: true,