kubectl: remove dead factory code

This commit is contained in:
Michail Kargakis
2016-05-01 03:08:10 +02:00
parent 8fba6de835
commit dbc1e356d3
3 changed files with 0 additions and 60 deletions

View File

@@ -58,28 +58,6 @@ func TestNewFactoryNoFlagBindings(t *testing.T) {
}
}
func TestPodSelectorForObject(t *testing.T) {
f := NewFactory(nil)
svc := &api.Service{
ObjectMeta: api.ObjectMeta{Name: "baz", Namespace: "test"},
Spec: api.ServiceSpec{
Selector: map[string]string{
"foo": "bar",
},
},
}
expected := "foo=bar"
got, err := f.PodSelectorForObject(svc)
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
if expected != got {
t.Fatalf("Selector mismatch! Expected %s, got %s", expected, got)
}
}
func TestPortsForObject(t *testing.T) {
f := NewFactory(nil)