We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8db8728 commit 6eafd64Copy full SHA for 6eafd64
pkg/templates/danglingservice/template_test.go
@@ -113,6 +113,21 @@ func (s *DanglingServiceTestSuite) TestNoDanglingServiceWithEndpoints() {
113
})
114
}
115
116
+func (s *DanglingServiceTestSuite) TestDanglingServiceWithNoMatchingEndpoints() {
117
+ s.AddService(service1, nil)
118
+ s.AddEndpoints(service2)
119
+
120
+ s.Validate(s.ctx, []templates.TestCase{
121
+ {
122
+ Param: params.Params{},
123
+ Diagnostics: map[string][]diagnostic.Diagnostic{
124
+ service1: {{Message: "service has no selector specified"}},
125
+ },
126
+ ExpectInstantiationError: false,
127
128
+ })
129
+}
130
131
func (s *DanglingServiceTestSuite) TestOneServiceIsDangling() {
132
s.AddDeploymentWithLabels(pod2, labelselector2)
133
s.AddService(service1, labelselector1)
0 commit comments