File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
internal/controller/state/graph Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,20 @@ func TestBuildSectionNameRefs(t *testing.T) {
156
156
name : "duplicate sectionNames" ,
157
157
expectedError : errors .New ("duplicate section name \" http\" for Gateway test/gateway-1" ),
158
158
},
159
+ {
160
+ parentRefs : []gatewayv1.ParentReference {
161
+ {
162
+ Name : gatewayv1 .ObjectName (gwNsName3 .Name ),
163
+ SectionName : helpers.GetPointer [gatewayv1.SectionName ]("http" ),
164
+ },
165
+ {
166
+ Name : gatewayv1 .ObjectName (gwNsName3 .Name ),
167
+ SectionName : nil ,
168
+ },
169
+ },
170
+ name : "duplicate sectionNames when one parentRef has no sectionName" ,
171
+ expectedError : errors .New ("duplicate section name \" http\" for Gateway test/gateway-3" ),
172
+ },
159
173
}
160
174
161
175
for _ , test := range tests {
You can’t perform that action at this time.
0 commit comments