From ca21fca74abb0b54ce9d7b1ba220999e39c29724 Mon Sep 17 00:00:00 2001 From: Zach Loafman Date: Mon, 13 Jul 2015 06:45:21 -0700 Subject: [PATCH] Fix TestRunExposeService No longer emits "you will also need to explicitly open a firewall" after #10974. Fixes #11105 --- pkg/kubectl/cmd/expose_test.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/kubectl/cmd/expose_test.go b/pkg/kubectl/cmd/expose_test.go index 0609745e9c6..c276a9dfb6a 100644 --- a/pkg/kubectl/cmd/expose_test.go +++ b/pkg/kubectl/cmd/expose_test.go @@ -25,6 +25,7 @@ import ( "github.com/GoogleCloudPlatform/kubernetes/pkg/api" "github.com/GoogleCloudPlatform/kubernetes/pkg/client" "github.com/GoogleCloudPlatform/kubernetes/pkg/runtime" + "github.com/GoogleCloudPlatform/kubernetes/pkg/util" ) func TestRunExposeService(t *testing.T) { @@ -126,17 +127,17 @@ func TestRunExposeService(t *testing.T) { Spec: api.ServiceSpec{ Ports: []api.ServicePort{ { - Name: "default", - Protocol: api.Protocol("UDP"), - Port: 14, + Name: "default", + Protocol: api.Protocol("UDP"), + Port: 14, + TargetPort: util.NewIntOrStringFromInt(14), }, }, Selector: map[string]string{"func": "stream"}, Type: api.ServiceTypeLoadBalancer, }, }, - expected: "you will also need to explicitly open a firewall", - status: 200, + status: 200, }, }