Skip to content

Commit 9164003

Browse files
committed
Update Content-Length in regression test JSON files
by running the following command: ``` (cd test; UPDATE_CONTENT_LENGTH=1 ./regression_tests format) ```
1 parent c8a8c3e commit 9164003

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+394
-248
lines changed

test/test-cases/regression/action-ctl_audit_engine.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"Keep-Alive": "300",
2424
"Connection": "keep-alive",
2525
"Pragma": "no-cache",
26-
"Cache-Control": "no-cache"
26+
"Cache-Control": "no-cache",
27+
"Content-Length": "0"
2728
},
2829
"uri": "/test.pl?parm1=test1&parm2=test2",
2930
"method": "GET",
@@ -34,7 +35,7 @@
3435
},
3536
"response": {
3637
"headers": {
37-
38+
"Content-Length": "0"
3839
},
3940
"body": [
4041
""

test/test-cases/regression/action-exec.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"Connection": "keep-alive",
2525
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
2626
"Pragma": "no-cache",
27-
"Cache-Control": "no-cache"
27+
"Cache-Control": "no-cache",
28+
"Content-Length": "0"
2829
},
2930
"uri": "/test.pl?param1= test &param2=test2",
3031
"method": "GET",
@@ -36,7 +37,7 @@
3637
"response": {
3738
"headers": {
3839
"Content-Type": "text/xml; charset=utf-8\n\r",
39-
"Content-Length": "length\n\r"
40+
"Content-Length": "0"
4041
},
4142
"body": [
4243
""
@@ -77,7 +78,8 @@
7778
"Connection": "keep-alive",
7879
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
7980
"Pragma": "no-cache",
80-
"Cache-Control": "no-cache"
81+
"Cache-Control": "no-cache",
82+
"Content-Length": "0"
8183
},
8284
"uri": "/test.pl?param1= test &param2=test2",
8385
"method": "GET",
@@ -89,7 +91,7 @@
8991
"response": {
9092
"headers": {
9193
"Content-Type": "text/xml; charset=utf-8\n\r",
92-
"Content-Length": "length\n\r"
94+
"Content-Length": "0"
9395
},
9496
"body": [
9597
""
@@ -129,7 +131,8 @@
129131
"Connection": "keep-alive",
130132
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
131133
"Pragma": "no-cache",
132-
"Cache-Control": "no-cache"
134+
"Cache-Control": "no-cache",
135+
"Content-Length": "0"
133136
},
134137
"uri": "/test.pl?param1= test &param2=test2",
135138
"method": "GET",
@@ -141,7 +144,7 @@
141144
"response": {
142145
"headers": {
143146
"Content-Type": "text/xml; charset=utf-8\n\r",
144-
"Content-Length": "length\n\r"
147+
"Content-Length": "0"
145148
},
146149
"body": [
147150
""

test/test-cases/regression/action-msg.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"Connection": "keep-alive",
2424
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
2525
"Pragma": "no-cache",
26-
"Cache-Control": "no-cache"
26+
"Cache-Control": "no-cache",
27+
"Content-Length": "0"
2728
},
2829
"uri": "/test.pl?param1= test &param2=test2",
2930
"method": "GET",
@@ -35,7 +36,7 @@
3536
"response": {
3637
"headers": {
3738
"Content-Type": "text/xml; charset=utf-8\n\r",
38-
"Content-Length": "length\n\r"
39+
"Content-Length": "384"
3940
},
4041
"body": [
4142
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",
@@ -82,7 +83,8 @@
8283
"Connection": "keep-alive",
8384
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
8485
"Pragma": "no-cache",
85-
"Cache-Control": "no-cache"
86+
"Cache-Control": "no-cache",
87+
"Content-Length": "0"
8688
},
8789
"uri": "/test.pl?param1= test &param2=test2",
8890
"method": "GET",
@@ -94,7 +96,7 @@
9496
"response": {
9597
"headers": {
9698
"Content-Type": "text/xml; charset=utf-8\n\r",
97-
"Content-Length": "length\n\r"
99+
"Content-Length": "384"
98100
},
99101
"body": [
100102
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",

test/test-cases/regression/action-tag.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"Connection": "keep-alive",
2424
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
2525
"Pragma": "no-cache",
26-
"Cache-Control": "no-cache"
26+
"Cache-Control": "no-cache",
27+
"Content-Length": "0"
2728
},
2829
"uri": "/test.pl?param1= test &param2=test2",
2930
"method": "GET",
@@ -35,7 +36,7 @@
3536
"response": {
3637
"headers": {
3738
"Content-Type": "text/xml; charset=utf-8\n\r",
38-
"Content-Length": "length\n\r"
39+
"Content-Length": "384"
3940
},
4041
"body": [
4142
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",
@@ -82,7 +83,8 @@
8283
"Connection": "keep-alive",
8384
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
8485
"Pragma": "no-cache",
85-
"Cache-Control": "no-cache"
86+
"Cache-Control": "no-cache",
87+
"Content-Length": "0"
8688
},
8789
"uri": "/test.pl?param1= test &param2=test2",
8890
"method": "GET",
@@ -94,7 +96,7 @@
9496
"response": {
9597
"headers": {
9698
"Content-Type": "text/xml; charset=utf-8\n\r",
97-
"Content-Length": "length\n\r"
99+
"Content-Length": "384"
98100
},
99101
"body": [
100102
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",

test/test-cases/regression/actions.json

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"Connection": "keep-alive",
2525
"Cookie": "PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120",
2626
"Pragma": "no-cache",
27-
"Cache-Control": "no-cache"
27+
"Cache-Control": "no-cache",
28+
"Content-Length": "0"
2829
},
2930
"uri": "/test.pl?param1= test &param2=test2",
3031
"method": "GET",
@@ -36,7 +37,7 @@
3637
"response": {
3738
"headers": {
3839
"Content-Type": "text/xml; charset=utf-8\n\r",
39-
"Content-Length": "length\n\r"
40+
"Content-Length": "384"
4041
},
4142
"body": [
4243
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",
@@ -84,7 +85,8 @@
8485
"Connection": "keep-alive",
8586
"Cookie": "PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120",
8687
"Pragma": "no-cache",
87-
"Cache-Control": "no-cache"
88+
"Cache-Control": "no-cache",
89+
"Content-Length": "0"
8890
},
8991
"uri": "/test.pl?param1= test &param2=test2",
9092
"method": "GET",
@@ -96,7 +98,7 @@
9698
"response": {
9799
"headers": {
98100
"Content-Type": "text/xml; charset=utf-8\n\r",
99-
"Content-Length": "length\n\r"
101+
"Content-Length": "384"
100102
},
101103
"body": [
102104
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",
@@ -144,7 +146,8 @@
144146
"Connection": "keep-alive",
145147
"Cookie": "PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120",
146148
"Pragma": "no-cache",
147-
"Cache-Control": "no-cache"
149+
"Cache-Control": "no-cache",
150+
"Content-Length": "0"
148151
},
149152
"uri": "/test.pl?param1= test &param2=test2",
150153
"method": "GET",
@@ -156,7 +159,7 @@
156159
"response": {
157160
"headers": {
158161
"Content-Type": "text/xml; charset=utf-8\n\r",
159-
"Content-Length": "length\n\r"
162+
"Content-Length": "384"
160163
},
161164
"body": [
162165
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",
@@ -204,7 +207,8 @@
204207
"Connection": "keep-alive",
205208
"Cookie": "PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120",
206209
"Pragma": "no-cache",
207-
"Cache-Control": "no-cache"
210+
"Cache-Control": "no-cache",
211+
"Content-Length": "0"
208212
},
209213
"uri": "/test.pl?param1= test &param2=test2",
210214
"method": "GET",
@@ -216,7 +220,7 @@
216220
"response": {
217221
"headers": {
218222
"Content-Type": "text/xml; charset=utf-8\n\r",
219-
"Content-Length": "length\n\r"
223+
"Content-Length": "384"
220224
},
221225
"body": [
222226
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",
@@ -263,7 +267,8 @@
263267
"Connection": "keep-alive",
264268
"Cookie": "PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120",
265269
"Pragma": "no-cache",
266-
"Cache-Control": "no-cache"
270+
"Cache-Control": "no-cache",
271+
"Content-Length": "0"
267272
},
268273
"uri": "/test.pl?param1= test &param2=test2",
269274
"method": "GET",
@@ -275,7 +280,7 @@
275280
"response": {
276281
"headers": {
277282
"Content-Type": "text/xml; charset=utf-8\n\r",
278-
"Content-Length": "length\n\r"
283+
"Content-Length": "384"
279284
},
280285
"body": [
281286
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",
@@ -322,7 +327,8 @@
322327
"Connection": "keep-alive",
323328
"Cookie": "PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120",
324329
"Pragma": "no-cache",
325-
"Cache-Control": "no-cache"
330+
"Cache-Control": "no-cache",
331+
"Content-Length": "0"
326332
},
327333
"uri": "/test.pl?param1= test &param2=test2",
328334
"method": "GET",
@@ -334,7 +340,7 @@
334340
"response": {
335341
"headers": {
336342
"Content-Type": "text/xml; charset=utf-8\n\r",
337-
"Content-Length": "length\n\r"
343+
"Content-Length": "384"
338344
},
339345
"body": [
340346
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\r",

0 commit comments

Comments
 (0)