Skip to content

Commit 6245fac

Browse files
committed
Fix test bugs
Update status code assertions to match 404 => 412 change, fix root directive in proxy3.t and proxy4.t
1 parent 1449591 commit 6245fac

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

t/proxy1.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ qr/\[(warn|error|crit|alert|emerg)\]/
9292
--- config eval: $::config
9393
--- request
9494
PURGE /purge/proxy/passwd
95-
--- error_code: 404
95+
--- error_code: 412
9696
--- response_headers
9797
Content-Type: text/html
98-
--- response_body_like: 404 Not Found
98+
--- response_body_like: 412 Precondition Failed
9999
--- timeout: 10
100100
--- no_error_log eval
101101
qr/\[(warn|error|crit|alert|emerg)\]/

t/proxy1_vars.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ qr/\[(warn|error|crit|alert|emerg)\]/
9494
--- config eval: $::config
9595
--- request
9696
PURGE /purge/proxy/passwd
97-
--- error_code: 404
97+
--- error_code: 412
9898
--- response_headers
9999
Content-Type: text/html
100-
--- response_body_like: 404 Not Found
100+
--- response_body_like: 412 Precondition Failed
101101
--- timeout: 10
102102
--- no_error_log eval
103103
qr/\[(warn|error|crit|alert|emerg)\]/

t/proxy2.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ qr/\[(warn|error|crit|alert|emerg)\]/
124124
--- config eval: $::config
125125
--- request
126126
PURGE /proxy/passwd
127-
--- error_code: 404
127+
--- error_code: 412
128128
--- response_headers
129129
Content-Type: text/html
130-
--- response_body_like: 404 Not Found
130+
--- response_body_like: 412 Precondition Failed
131131
--- timeout: 10
132132
--- no_error_log eval
133133
qr/\[(warn|error|crit|alert|emerg)\]/
@@ -190,10 +190,10 @@ qr/\[(warn|error|crit|alert|emerg)\]/
190190
--- config eval: $::config_allowed
191191
--- request
192192
PURGE /proxy/passwd
193-
--- error_code: 404
193+
--- error_code: 412
194194
--- response_headers
195195
Content-Type: text/html
196-
--- response_body_like: 404 Not Found
196+
--- response_body_like: 412 Precondition Failed
197197
--- timeout: 10
198198
--- no_error_log eval
199199
qr/\[(warn|error|crit|alert|emerg)\]/

t/proxy2_vars.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ qr/\[(warn|error|crit|alert|emerg)\]/
127127
--- config eval: $::config
128128
--- request
129129
PURGE /proxy/passwd
130-
--- error_code: 404
130+
--- error_code: 412
131131
--- response_headers
132132
Content-Type: text/html
133-
--- response_body_like: 404 Not Found
133+
--- response_body_like: 412 Precondition Failed
134134
--- timeout: 10
135135
--- no_error_log eval
136136
qr/\[(warn|error|crit|alert|emerg)\]/
@@ -193,10 +193,10 @@ qr/\[(warn|error|crit|alert|emerg)\]/
193193
--- config eval: $::config_allowed
194194
--- request
195195
PURGE /proxy/passwd
196-
--- error_code: 404
196+
--- error_code: 412
197197
--- response_headers
198198
Content-Type: text/html
199-
--- response_body_like: 404 Not Found
199+
--- response_body_like: 412 Precondition Failed
200200
--- timeout: 10
201201
--- no_error_log eval
202202
qr/\[(warn|error|crit|alert|emerg)\]/

t/proxy3.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ our $config = <<'_EOC_';
2525
2626
2727
location = /etc/passwd {
28-
root /var/www/html;
28+
root /;
2929
}
3030
_EOC_
3131

t/proxy4.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ our $config = <<'_EOC_';
2525
2626
2727
location = /etc/passwd {
28-
root /var/www/html;
28+
root /;
2929
}
3030
_EOC_
3131

0 commit comments

Comments
 (0)