mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Fix TestRunExposeService
No longer emits "you will also need to explicitly open a firewall" after #10974. Fixes #11105
This commit is contained in:
		@@ -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) {
 | 
				
			||||||
@@ -126,17 +127,17 @@ func TestRunExposeService(t *testing.T) {
 | 
				
			|||||||
				Spec: api.ServiceSpec{
 | 
									Spec: api.ServiceSpec{
 | 
				
			||||||
					Ports: []api.ServicePort{
 | 
										Ports: []api.ServicePort{
 | 
				
			||||||
						{
 | 
											{
 | 
				
			||||||
							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,
 | 
					 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user