@@ -25,8 +25,6 @@ var _ = Describe("SnippetsFilter", Ordered, Label("functional", "snippets-filter
25
25
"snippets-filter/cafe.yaml" ,
26
26
"snippets-filter/gateway.yaml" ,
27
27
"snippets-filter/grpc-backend.yaml" ,
28
- "snippets-filter/cafe-routes.yaml" ,
29
- "snippets-filter/grpc-route.yaml" ,
30
28
}
31
29
32
30
namespace = "snippets-filter"
@@ -128,11 +126,21 @@ var _ = Describe("SnippetsFilter", Ordered, Label("functional", "snippets-filter
128
126
Value : "0" ,
129
127
File : fmt .Sprintf ("%s%s" , mainContext , httpRouteSuffix ),
130
128
},
129
+ {
130
+ Directive : "include" ,
131
+ Value : fmt .Sprintf ("%s%s" , mainContext , httpRouteSuffix ),
132
+ File : "main.conf" ,
133
+ },
131
134
{
132
135
Directive : "aio" ,
133
136
Value : "on" ,
134
137
File : fmt .Sprintf ("%s%s" , httpContext , httpRouteSuffix ),
135
138
},
139
+ {
140
+ Directive : "include" ,
141
+ Value : fmt .Sprintf ("%s%s" , httpContext , httpRouteSuffix ),
142
+ File : "http.conf" ,
143
+ },
136
144
{
137
145
Directive : "auth_delay" ,
138
146
Value : "10s" ,
@@ -163,27 +171,37 @@ var _ = Describe("SnippetsFilter", Ordered, Label("functional", "snippets-filter
163
171
Value : "120s" ,
164
172
File : fmt .Sprintf ("%s%s" , mainContext , grpcRouteSuffix ),
165
173
},
174
+ {
175
+ Directive : "include" ,
176
+ Value : fmt .Sprintf ("%s%s" , mainContext , grpcRouteSuffix ),
177
+ File : "main.conf" ,
178
+ },
166
179
{
167
180
Directive : "types_hash_bucket_size" ,
168
181
Value : "64" ,
169
182
File : fmt .Sprintf ("%s%s" , httpContext , grpcRouteSuffix ),
170
183
},
171
184
{
172
- Directive : "server_tokens " ,
173
- Value : "on" ,
174
- File : fmt . Sprintf ( "%s%s" , httpServerContext , grpcRouteSuffix ) ,
185
+ Directive : "include " ,
186
+ Value : fmt . Sprintf ( "%s%s" , httpContext , grpcRouteSuffix ) ,
187
+ File : "http.conf" ,
175
188
},
176
189
{
177
- Directive : "tcp_nodelay " ,
190
+ Directive : "server_tokens " ,
178
191
Value : "on" ,
179
- File : fmt .Sprintf ("%s%s" , httpServerLocationContext , grpcRouteSuffix ),
192
+ File : fmt .Sprintf ("%s%s" , httpServerContext , grpcRouteSuffix ),
180
193
},
181
194
{
182
195
Directive : "include" ,
183
196
Value : fmt .Sprintf ("%s%s" , httpServerContext , grpcRouteSuffix ),
184
197
Servers : []string {"*.example.com" },
185
198
File : "http.conf" ,
186
199
},
200
+ {
201
+ Directive : "tcp_nodelay" ,
202
+ Value : "on" ,
203
+ File : fmt .Sprintf ("%s%s" , httpServerLocationContext , grpcRouteSuffix ),
204
+ },
187
205
{
188
206
Directive : "include" ,
189
207
Value : fmt .Sprintf ("%s%s" , httpServerLocationContext , grpcRouteSuffix ),
@@ -222,7 +240,7 @@ var _ = Describe("SnippetsFilter", Ordered, Label("functional", "snippets-filter
222
240
})
223
241
224
242
func waitForHTTPRouteToHaveGatewayNotProgrammedCond (httpRouteNsName types.NamespacedName ) error {
225
- ctx , cancel := context .WithTimeout (context .Background (), timeoutConfig .GetStatusTimeout )
243
+ ctx , cancel := context .WithTimeout (context .Background (), timeoutConfig .GetStatusTimeout * 2 )
226
244
defer cancel ()
227
245
228
246
GinkgoWriter .Printf (
@@ -232,7 +250,7 @@ func waitForHTTPRouteToHaveGatewayNotProgrammedCond(httpRouteNsName types.Namesp
232
250
233
251
return wait .PollUntilContextCancel (
234
252
ctx ,
235
- time .Second * 3 ,
253
+ time .Second * 1 ,
236
254
true , /* poll immediately */
237
255
func (ctx context.Context ) (bool , error ) {
238
256
var hr v1.HTTPRoute
0 commit comments