summaryrefslogtreecommitdiff
path: root/test/base_test_code.py
blob: 50c634838551afe7403b351fcfc212103be4d19a (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
from munittest import *

base_http = 'http://www.linux.duke.edu/projects/urlgrabber/test/'
base_ftp  = 'ftp://localhost/test/'

# set to a proftp server only. we're working around a couple of
# bugs in their implementation in byterange.py.
base_proftp = 'ftp://localhost/test/'

reference_data = ''.join( [str(i)+'\n' for i in range(20000) ] )
ref_http = base_http + 'reference'
ref_ftp = base_ftp + 'reference'
ref_proftp = base_proftp + 'reference'
short_reference_data = ' '.join( [str(i) for i in range(10) ] )
short_ref_http = base_http + 'short_reference'
short_ref_ftp = base_ftp + 'short_reference'

ref_200 = ref_http
ref_404 = base_http + 'nonexistent_file'
ref_403 = base_http + 'mirror/broken/'

base_mirror_url    = base_http + 'mirror/'
good_mirrors       = ['m1', 'm2', 'm3']
mirror_files       = ['test1.txt', 'test2.txt']
bad_mirrors        = ['broken']
bad_mirror_files   = ['broken.txt']

proxy_proto = 'http'
proxy_host = 'localhost'
proxy_port = 8888
proxy_user = 'proxyuser'
good_proxy_pass = 'proxypass'
bad_proxy_pass = 'badproxypass'