summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-filter-url-file.pl
blob: a048563a1adfca0b50de53f3c782afe3af720419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use strict;
use warnings;

my @lengths = (1, 2, 4, 0, 3);
our %args = (
    client => {
	func => sub { eval { http_client(@_) }; warn $@ },
	lengths => \@lengths,
	loggrep => qr/Forbidden/,
    },
    relayd => {
	protocol => [ "http",
	    'return error',
	    'label test_reject_label',
	    'path filter file args-http-filter-url-file.in log',
	    'no label',
	],
	loggrep => {
		qr/rejecting request/ => 1,
		qr/\[test_reject_label\, \/0\:/ => 1
	},
    },
    server => {
	func => \&http_server,
	lengths => (1, 2, 4),
    },
);

1;