mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #11147 from zmerlynn/i11105
Fix TestRunExposeService
This commit is contained in:
commit
1e2e38ad19
@ -25,6 +25,7 @@ import (
|
|||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
|
||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
||||||
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRunExposeService(t *testing.T) {
|
func TestRunExposeService(t *testing.T) {
|
||||||
@ -129,13 +130,13 @@ func TestRunExposeService(t *testing.T) {
|
|||||||
Name: "default",
|
Name: "default",
|
||||||
Protocol: api.Protocol("UDP"),
|
Protocol: api.Protocol("UDP"),
|
||||||
Port: 14,
|
Port: 14,
|
||||||
|
TargetPort: util.NewIntOrStringFromInt(14),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Selector: map[string]string{"func": "stream"},
|
Selector: map[string]string{"func": "stream"},
|
||||||
Type: api.ServiceTypeLoadBalancer,
|
Type: api.ServiceTypeLoadBalancer,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
expected: "you will also need to explicitly open a firewall",
|
|
||||||
status: 200,
|
status: 200,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user