-
Notifications
You must be signed in to change notification settings - Fork 1
/
unittests.yaml
56 lines (56 loc) · 1.56 KB
/
unittests.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
description: For the unittests, hopefully no real script should look like this. ;)
version: 1.0
proxies:
- route: "DIRECT"
description: take the direct route
targets:
- ".example.com"
- route: "PROXY plain-hostname.example.com"
description: a proxy for plain hostnames
tags:
- catch-plain-hostnames
- route: "PROXY domain-overlaps.example.com"
description: here domains overlap with the default route
targets:
- "example.com"
- "foo.example.com"
- "foo.example.net"
- route: "PROXY ip-within-netmask-1.example.com"
description: the ip is within the netmask
targets:
- "240.100.50.0/24"
- route: "PROXY ip-within-netmask-2.example.com"
description: the ip is within the netmask
targets:
- "240.100.50.3"
- "240.100.51.0/24"
- route: "PROXY netmask.example.com"
description: a proxy for netmask
tags:
- foo
targets:
- "93.184.0.0/16"
- route: "PROXY ip.example.com"
description: a proxy for IPs
targets:
- "192.0.0.170"
- "192.0.0.171"
- "127.0.0.1"
- route: "PROXY string.example.com"
description: a proxy for string matches
targets:
- "10."
- ".102.123"
- "10"
- route: "PROXY mixed.example.com"
description: a proxy for mixed matches, this should be split up
targets:
- "example.net"
- "bar.example.com"
- "bar.example.net"
- "20.10.10.0/24"
- "130.131.132.133"
- route: "PROXY default.example.com"
description: take the default proxy route
tags:
- default