Skip to content

Commit 2662fe4

Browse files
committed
updated the test cases
1 parent 99f3939 commit 2662fe4

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

test/t/http_check.t

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ __DATA__
4646
4747
--- request
4848
GET /
49-
--- response_body_like: ^<(.*)>$
49+
--- response_body_like: ^.*$
5050
5151
=== TEST 2: the http_check test-multi_server
5252
--- http_config
@@ -75,7 +75,7 @@ GET /
7575
7676
--- request
7777
GET /
78-
--- response_body_like: ^<(.*)>$
78+
--- response_body_like: ^.*$
7979
8080
=== TEST 3: the http_check test
8181
--- http_config
@@ -112,7 +112,7 @@ GET /
112112
113113
--- request
114114
GET /
115-
--- response_body_like: ^<(.*)>$
115+
--- response_body_like: ^.*$
116116
117117
=== TEST 5: the http_check which does not use the upstream
118118
--- http_config
@@ -132,7 +132,7 @@ GET /
132132
133133
--- request
134134
GET /
135-
--- response_body_like: ^<(.*)>$
135+
--- response_body_like: ^.*$
136136
137137
=== TEST 6: the http_check test-single server
138138
--- http_config
@@ -152,7 +152,7 @@ GET /
152152
153153
--- request
154154
GET /
155-
--- response_body_like: ^<(.*)>$
155+
--- response_body_like: ^.*$
156156
157157
=== TEST 7: the http_check test-multi_server
158158
--- http_config
@@ -173,7 +173,7 @@ GET /
173173
174174
--- request
175175
GET /
176-
--- response_body_like: ^<(.*)>$
176+
--- response_body_like: ^.*$
177177
178178
=== TEST 8: the http_check test
179179
--- http_config
@@ -212,7 +212,7 @@ GET /
212212
213213
--- request
214214
GET /
215-
--- response_body_like: ^<(.*)>$
215+
--- response_body_like: ^.*$
216216
217217
=== TEST 10: the http_check which does not use the upstream
218218
--- http_config
@@ -233,7 +233,7 @@ GET /
233233
234234
--- request
235235
GET /
236-
--- response_body_like: ^<(.*)>$
236+
--- response_body_like: ^.*$
237237
238238
=== TEST 11: the http_check which does not use the upstream, with variable
239239
--- http_config
@@ -257,7 +257,7 @@ GET /
257257
258258
--- request
259259
GET /
260-
--- response_body_like: ^<(.*)>$
260+
--- response_body_like: ^.*$
261261
262262
=== TEST 12: the http_check test-single server, least conn
263263
--- skip_nginx
@@ -279,7 +279,7 @@ GET /
279279
280280
--- request
281281
GET /
282-
--- response_body_like: ^<(.*)>$
282+
--- response_body_like: ^.*$
283283
284284
=== TEST 13: the http_check test-multi_server, least conn
285285
--- skip_nginx
@@ -302,7 +302,7 @@ GET /
302302
303303
--- request
304304
GET /
305-
--- response_body_like: ^<(.*)>$
305+
--- response_body_like: ^.*$
306306
307307
=== TEST 14: the http_check test, least conn
308308
--- skip_nginx
@@ -345,4 +345,4 @@ GET /
345345
346346
--- request
347347
GET /
348-
--- response_body_like: ^<(.*)>$
348+
--- response_body_like: ^.*$

test/t/tcp_check.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ __DATA__
4747
4848
--- request
4949
GET /
50-
--- response_body_like: ^<(.*)>$
50+
--- response_body_like: ^.*$
5151
5252
=== TEST 2: the tcp_check test with ip_hash
5353
--- http_config
@@ -67,7 +67,7 @@ GET /
6767
6868
--- request
6969
GET /
70-
--- response_body_like: ^<(.*)>$
70+
--- response_body_like: ^.*$
7171
7272
=== TEST 3: the tcp_check test which don't use the checked upstream
7373
--- http_config
@@ -86,7 +86,7 @@ GET /
8686
8787
--- request
8888
GET /
89-
--- response_body_like: ^<(.*)>$
89+
--- response_body_like: ^.*$
9090
9191
=== TEST 3: the tcp_check test with least_conn;
9292
--- skip_nginx
@@ -108,5 +108,5 @@ GET /
108108
109109
--- request
110110
GET /
111-
--- response_body_like: ^<(.*)>$
111+
--- response_body_like: ^.*$
112112

0 commit comments

Comments
 (0)