refactor services to v1beta3

This commit is contained in:
markturansky
2014-10-30 09:29:11 -04:00
parent 5a649f2b93
commit bd7643c033
26 changed files with 466 additions and 340 deletions

View File

@@ -182,8 +182,10 @@ func TestSyncEndpointsItemsPreexisting(t *testing.T) {
Items: []api.Service{
{
ObjectMeta: api.ObjectMeta{Name: "foo"},
Selector: map[string]string{
"foo": "bar",
Spec: api.ServiceSpec{
Selector: map[string]string{
"foo": "bar",
},
},
},
},
@@ -219,8 +221,10 @@ func TestSyncEndpointsItemsPreexistingIdentical(t *testing.T) {
Items: []api.Service{
{
ObjectMeta: api.ObjectMeta{Name: "foo"},
Selector: map[string]string{
"foo": "bar",
Spec: api.ServiceSpec{
Selector: map[string]string{
"foo": "bar",
},
},
},
},
@@ -248,8 +252,10 @@ func TestSyncEndpointsItems(t *testing.T) {
Items: []api.Service{
{
ObjectMeta: api.ObjectMeta{Name: "foo"},
Selector: map[string]string{
"foo": "bar",
Spec: api.ServiceSpec{
Selector: map[string]string{
"foo": "bar",
},
},
},
},
@@ -277,8 +283,10 @@ func TestSyncEndpointsPodError(t *testing.T) {
serviceList := api.ServiceList{
Items: []api.Service{
{
Selector: map[string]string{
"foo": "bar",
Spec: api.ServiceSpec{
Selector: map[string]string{
"foo": "bar",
},
},
},
},