summaryrefslogtreecommitdiffabout
path: root/tests/ci.at
blob: d4861886778c06889d69310cb4c937345190dab1 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
AT_SETUP([case-insensitive])
AT_KEYWORDS([case-insensitive])
AT_VARNISHTEST([dict],[
	sub vcl_init {
		dict.ci(true);
		dict.collisions(0);
		dict.load("\${vmod_topsrc}/tests/num.dict");
	}
	sub vcl_recv {
		set req.http.X-result = dict.lookup(regsub(req.url, "^/(.*)", "\1"));
             	return (hash);
	}
	sub vcl_deliver {
		set resp.http.X-result = req.http.X-result;
	}
],
[	txreq -url "/oNe"
	rxresp
	expect resp.http.X-result == "en"
	txreq -url "/TWO"
	rxresp
	expect resp.http.X-result == "to"
	txreq -url "/THREE"
	rxresp
	expect resp.http.X-result == "tre"
	txreq -url "/FOUR"
	rxresp
	expect resp.http.X-result == "fire"
	txreq -url "/FIVE"
	rxresp
	expect resp.http.X-result == "fem"
	txreq -url "/SIX"
	rxresp
	expect resp.http.X-result == "seks"
	txreq -url "/SEVEN"
	rxresp
	expect resp.http.X-result == "sju"
	txreq -url "/EIGHT"
	rxresp
	expect resp.http.X-result == "aatte"
	txreq -url "/nINe"
	rxresp
	expect resp.http.X-result == "ni"
	txreq -url "/Ten"
	rxresp
	expect resp.http.X-result == "ti"
	txreq -url "/ELeVEN"
	rxresp
	expect resp.http.X-result == "elleve"
	txreq -url "/twELve"
	rxresp
	expect resp.http.X-result == "tolv"
],
[       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
       rxreq
       txresp
])
AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.