summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-filter-url-digest.pl
blob: 64551ea3d9bf08293b091a9ee13f3491fc906f1f (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
30
31
32
use strict;
use warnings;

our %args = (
    client => {
	func => \&http_client,
	path => "a/b/c/d/e/f/gindex.html",
	loggrep => [
	    qr/403 Forbidden/,
	    qr/Server: OpenBSD relayd/,
	    qr/Connection: close/,
	],
	nocheck => 1,
	httpnok => 1,
    },
    relayd => {
	protocol => [ "http",
	    'return error',
	    'block request url log digest 0ac8ccfc03317891ae2820de10ee2167d31ebd16',
	],
	loggrep => {
	    qr/Forbidden \(403 Forbidden\)/ => 1,
	    qr/\[0ac8ccfc03317891ae2820de10ee2167d31ebd16\]/ => 1,
	},
    },
    server => {
	noserver => 1,
	nocheck => 1,
    },
);

1;