Experimenting with testcases

This commit is contained in:
Victor Hora 2018-10-10 00:51:28 -04:00
parent 2d7f1d6418
commit b960fea4dc
3 changed files with 8 additions and 8 deletions

View File

@ -581,7 +581,7 @@
-debug => [ qr/Request body is larger than the configured limit/, 1],
},
match_response => {
status => qr/^200$/,
status => qr/^500$/,
},
request => normalize_raw_request_data(
qq(

View File

@ -270,7 +270,7 @@
debug => [ qr/Final boundary missing/, 1 ],
},
match_response => {
status => qr/^200$/,
status => qr/^500$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
@ -1084,7 +1084,7 @@
debug => [ qr/boundary whitespace in C-T header/, 1 ],
},
match_response => {
status => qr/^403$/,
status => qr/^500$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
@ -1180,7 +1180,7 @@
debug => [ qr/No boundaries found in payload/, 1 ],
},
match_response => {
status => qr/^403$/,
status => qr/^500$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
@ -1322,7 +1322,7 @@
debug => [ qr/boundary was quoted.*No boundaries found in payload/s, 1 ],
},
match_response => {
status => qr/^403$/,
status => qr/^500$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
@ -1369,7 +1369,7 @@
debug => [ qr/boundary was quoted.*No boundaries found in payload/s, 1 ],
},
match_response => {
status => qr/^403$/,
status => qr/^500$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",

View File

@ -175,7 +175,7 @@
audit => [ qr/^Message: .*Failed parsing document.*\nMessage:/m, 1 ],
},
match_response => {
status => qr/^403$/,
status => qr/^500$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
@ -362,7 +362,7 @@
-error => [ qr/Failed to load|Successfully validated/, 1 ],
},
match_response => {
status => qr/^403$/,
status => qr/^500$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",