From 46984eb02a1875f263897a1f804a1380dd2d7045 Mon Sep 17 00:00:00 2001 From: jackgr Date: Mon, 22 Feb 2016 15:22:05 -0800 Subject: [PATCH] Fix test failure in expandybird. --- expandybird/service/service.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/expandybird/service/service.go b/expandybird/service/service.go index d770db127..239170cb8 100644 --- a/expandybird/service/service.go +++ b/expandybird/service/service.go @@ -6,7 +6,7 @@ you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,8 +17,8 @@ limitations under the License. package service import ( - "github.com/kubernetes/deployment-manager/expandybird/expander" "github.com/kubernetes/deployment-manager/common" + "github.com/kubernetes/deployment-manager/expandybird/expander" "github.com/kubernetes/deployment-manager/util" "errors" @@ -44,7 +44,8 @@ func NewService(handler restful.RouteFunction) *Service { webService.Produces(restful.MIME_JSON, restful.MIME_XML) webService.Route(webService.POST("/expand").To(handler). Doc("Expand a template."). - Reads(&common.Template{})) + Reads(&common.Template{}). + Writes(&expander.ExpansionResponse{})) return &Service{webService} }