Merge pull request #818 from csrwng/fix_fake_client_service_methods

Fix the wrong action being recorded on GetService in FakeKubeClient
pull/6/head
brendandburns 2014-08-06 22:33:54 -07:00
commit acfbf279eb
1 changed files with 7 additions and 7 deletions

View File

@ -91,22 +91,22 @@ func (client *FakeKubeClient) DeleteReplicationController(controller string) err
}
func (client *FakeKubeClient) GetService(name string) (api.Service, error) {
client.actions = append(client.actions, Action{action: "get-controller", value: name})
client.actions = append(client.actions, Action{action: "get-service", value: name})
return api.Service{}, nil
}
func (client *FakeKubeClient) CreateService(controller api.Service) (api.Service, error) {
client.actions = append(client.actions, Action{action: "create-service", value: controller})
func (client *FakeKubeClient) CreateService(service api.Service) (api.Service, error) {
client.actions = append(client.actions, Action{action: "create-service", value: service})
return api.Service{}, nil
}
func (client *FakeKubeClient) UpdateService(controller api.Service) (api.Service, error) {
client.actions = append(client.actions, Action{action: "update-service", value: controller})
func (client *FakeKubeClient) UpdateService(service api.Service) (api.Service, error) {
client.actions = append(client.actions, Action{action: "update-service", value: service})
return api.Service{}, nil
}
func (client *FakeKubeClient) DeleteService(controller string) error {
client.actions = append(client.actions, Action{action: "delete-service", value: controller})
func (client *FakeKubeClient) DeleteService(service string) error {
client.actions = append(client.actions, Action{action: "delete-service", value: service})
return nil
}