source: tests/00800_proxy @ 26ffad7

Last change on this file since 26ffad7 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 2.9 KB
Line 
1#!/bin/bash
2#for testing advanced proxy filtering
3
4source testlib || exit 1
5
6DESCRIPTION1="Ssh beschikbaar?"
7VERIFYEXIT=0
8sshtest || exit 1
9
10DESCRIPTION1="Sla test over indien we niet de juiste licentieoptie hebben."
11CMD="cat /etc/webint/REG"
12VERIFYPOSITIVE='"I"'
13if ! sshtest; then
14        echo "Dit is geen internetserver, test overgeslagen"
15        exit 0
16fi
17
18
19#### Zijn alle paginas uberhaubt opvraagbaar zonder errors?
20
21IGNOREERROR=1
22DESCRIPTION1="Basic pagina check"
23PAGE="proxy/settings.php"
24VERIFYPOSITIVE="Proxy"
25scc_add
26
27DESCRIPTION1="Basic pagina check"
28PAGE="proxy/listtimefilters.php"
29VERIFYPOSITIVE="Dagen"
30scc_add
31
32DESCRIPTION1="Basic pagina check"
33PAGE="proxy/listfilters.php"
34VERIFYPOSITIVE="Filterlijst"
35scc_add
36
37DESCRIPTION1="Basic pagina check"
38PAGE="proxy/listhttpaccess.php"
39VERIFYPOSITIVE="Source netblock lijst All"
40scc_add
41#maak van alle filtertype's 1 aan
42
43echo "Rest van de test overgeslagen: erwin, haal eerst de oude zooi weg. nu failed de test als je hem een 2e keer draait op zelfde bak"
44exit 0
45
46IGNOREERROR=1
47DESCRIPTION1="Maak tijdzone aan"
48PAGE="proxy/addtimefilter.php"
49METHOD="post"
50POSTBODY="new_Timefilter=werkweek&new_M=1&new_T=1&new_W=1&new_TimeStart=900&new_TimeEnd=910&save=1"
51VERIFYPOSITIVE="HTTP/1.1 302 Found"
52scc_add
53
54DESCRIPTION1="Maak DomainIP filter aan"
55PAGE="proxy/addfilter.php"
56METHOD="post"
57POSTBODY="new_filter=domainIP&new_SquidFilterType=domainIP&save=1"
58VERIFYPOSITIVE="HTTP/1.1 302 Found"
59scc_add
60
61DESCRIPTION1="Maak SourceList filter aan"
62PAGE="proxy/addfilter.php"
63METHOD="post"
64POSTBODY="new_filter=SourceList&new_SquidFilterType=SourceList&save=1"
65VERIFYPOSITIVE="HTTP/1.1 302 Found"
66scc_add
67
68DESCRIPTION1="Maak PortList filter aan"
69PAGE="proxy/addfilter.php"
70METHOD="post"
71POSTBODY="new_filter=PortList&new_SquidFilterType=PortList&save=1"
72VERIFYPOSITIVE="HTTP/1.1 302 Found"
73scc_add
74
75DESCRIPTION1="Maak DestList filter aan"
76PAGE="proxy/addfilter.php"
77METHOD="post"
78POSTBODY="new_filter=DestList&new_SquidFilterType=DestList&save=1"
79VERIFYPOSITIVE="HTTP/1.1 302 Found"
80scc_add
81
82DESCRIPTION1="Maak ReqHead filter aan"
83PAGE="proxy/addfilter.php"
84METHOD="post"
85POSTBODY="new_filter=ReqHead&new_SquidFilterType=ReqHead&save=1"
86VERIFYPOSITIVE="HTTP/1.1 302 Found"
87scc_add
88
89DESCRIPTION1="Maak ReqPro filter aan"
90PAGE="proxy/addfilter.php"
91METHOD="post"
92POSTBODY="new_filter=ReqPro&new_SquidFilterType=ReqPro&save=1"
93VERIFYPOSITIVE="HTTP/1.1 302 Found"
94scc_add
95
96DESCRIPTION1="Maak MaxCon filter aan"
97PAGE="proxy/addfilter.php"
98METHOD="post"
99POSTBODY="new_filter=MaxCon&new_SquidFilterType=MaxCon&save=1"
100VERIFYPOSITIVE="HTTP/1.1 302 Found"
101scc_add
102
103IGNOREERROR=1
104DESCRIPTION1="Maak ReqPro rule op filter aan"
105PAGE="proxy/addrule2filter.php?add=1&filter=ReqPro&type=ReqPro"
106METHOD="post"
107POSTBODY="save=1&new_filterrule=HTTP"
108VERIFYPOSITIVE="HTTP"
109scc_add
110
111
112scc_test || exit 1
113
114
115
116
117echo "Proxy server testen: opvragen website www.w3c.org"
118PORT=3128
119VERIFYPOSITIVE="content=\"W3C"
120BODY="GET http://www.w3.org
121"
122nettest > /dev/null || exit 1
123
Note: See TracBrowser for help on using the repository browser.