Skip to content

Commit e846159

Browse files
committed
NLB-3682: add more testcases
1 parent f5f8747 commit e846159

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

analyze_test.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,15 @@ func TestAnalyze_http3(t *testing.T) {
11471147
blockCtx{"http", "server"},
11481148
false,
11491149
},
1150+
"http3_max_concurrent_streams not ok": {
1151+
&Directive{
1152+
Directive: "http3_max_concurrent_streams",
1153+
Args: []string{"10"},
1154+
Line: 5,
1155+
},
1156+
blockCtx{"http", "location"},
1157+
true,
1158+
},
11501159
"http3_stream_buffer_size ok": {
11511160
&Directive{
11521161
Directive: "http3_stream_buffer_size",
@@ -1156,6 +1165,15 @@ func TestAnalyze_http3(t *testing.T) {
11561165
blockCtx{"http", "server"},
11571166
false,
11581167
},
1168+
"http3_stream_buffer_size not ok": {
1169+
&Directive{
1170+
Directive: "http3_stream_buffer_size",
1171+
Args: []string{"128k"},
1172+
Line: 5,
1173+
},
1174+
blockCtx{"http", "location"},
1175+
true,
1176+
},
11591177
}
11601178

11611179
for name, tc := range testcases {
@@ -1192,6 +1210,15 @@ func TestAnalyze_quic(t *testing.T) {
11921210
blockCtx{"http", "server"},
11931211
false,
11941212
},
1213+
"quic_active_connection_id_limit not ok": {
1214+
&Directive{
1215+
Directive: "quic_active_connection_id_limit",
1216+
Args: []string{"2"},
1217+
Line: 5,
1218+
},
1219+
blockCtx{"http", "location"},
1220+
true,
1221+
},
11951222
"quic_bpf ok": {
11961223
&Directive{
11971224
Directive: "quic_bpf",

0 commit comments

Comments
 (0)