Merge pull request #11147 from zmerlynn/i11105

Fix TestRunExposeService
This commit is contained in:
Wojciech Tyczynski 2015-07-13 16:41:50 +02:00
commit 1e2e38ad19

View File

@ -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,
},
}