aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-04-03 14:53:19 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-04-03 14:53:19 +0000
commit22cde9cd6e66462442647abf271559d9e3bcb41c (patch)
treeebc9964c2cbecb88db5349d07d3366a42ecf7e28 /src/integration-tests
parent6fff2c158bad68c4623c6224c59e1bc67cdc17f1 (diff)
downloadgnunet-22cde9cd6e66462442647abf271559d9e3bcb41c.tar.gz
gnunet-22cde9cd6e66462442647abf271559d9e3bcb41c.zip
- more changes
Diffstat (limited to 'src/integration-tests')
-rw-r--r--src/integration-tests/Makefile.am17
-rw-r--r--src/integration-tests/confs/c_normal_client_tcp.conf2
-rw-r--r--src/integration-tests/confs/c_normal_client_tcp_udp.conf354
-rw-r--r--src/integration-tests/confs/c_normal_client_tcp_udp_http.conf354
-rwxr-xr-xsrc/integration-tests/test_integration_connection_values_tcp_udp.py.in124
-rwxr-xr-xsrc/integration-tests/test_integration_connection_values_tcp_udp_http.py.in124
6 files changed, 972 insertions, 3 deletions
diff --git a/src/integration-tests/Makefile.am b/src/integration-tests/Makefile.am
index 9d5177b70..93608824d 100644
--- a/src/integration-tests/Makefile.am
+++ b/src/integration-tests/Makefile.am
@@ -16,7 +16,9 @@ check_PROGRAMS =
16noinst_SCRIPTS = \ 16noinst_SCRIPTS = \
17 gnunet_testing.py \ 17 gnunet_testing.py \
18 gnunet_pyexpect.py \ 18 gnunet_pyexpect.py \
19 test_integration_connection_values_tcp.py 19 test_integration_connection_values_tcp.py \
20 test_integration_connection_values_tcp_udp.py \
21 test_integration_connection_values_tcp_udp_http.py
20 22
21if HAVE_PYTHON_PEXPECT 23if HAVE_PYTHON_PEXPECT
22check_SCRIPTS = \ 24check_SCRIPTS = \
@@ -86,11 +88,20 @@ test_integration_connection_values_tcp.py: test_integration_connection_values_tc
86 $(do_subst) < $(srcdir)/test_integration_connection_values_tcp.py.in > test_integration_connection_values_tcp.py 88 $(do_subst) < $(srcdir)/test_integration_connection_values_tcp.py.in > test_integration_connection_values_tcp.py
87 chmod +x test_integration_connection_values_tcp.py 89 chmod +x test_integration_connection_values_tcp.py
88 90
91test_integration_connection_values_tcp_udp.py: test_integration_connection_values_tcp_udp.py.in Makefile
92 $(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp.py.in > test_integration_connection_values_tcp_udp.py
93 chmod +x test_integration_connection_values_tcp_udp.py
94
95test_integration_connection_values_tcp_udp_http.py: test_integration_connection_values_tcp_udp_http.py.in Makefile
96 $(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp_http.py.in > test_integration_connection_values_tcp_udp_http.py
97 chmod +x test_integration_connection_values_tcp_udp_http.py
98
89 99
90EXTRA_DIST = \ 100EXTRA_DIST = \
91 gnunet_testing.py.in \ 101 gnunet_testing.py.in \
92 gnunet_pyexpect.py.in \ 102 gnunet_pyexpect.py.in \
93 test_integration_connection_value.py.in \ 103 test_integration_connection_value_tcp.py.in \
104 test_integration_connection_value_tcp_udp.py.in \
94 test_integration_bootstrap_and_connect.py.in \ 105 test_integration_bootstrap_and_connect.py.in \
95 test_integration_bootstrap_and_connect_and_disconnect.py.in \ 106 test_integration_bootstrap_and_connect_and_disconnect.py.in \
96 test_integration_bootstrap_and_connect_and_disconnect_nat.py.in \ 107 test_integration_bootstrap_and_connect_and_disconnect_nat.py.in \
@@ -103,6 +114,8 @@ EXTRA_DIST = \
103 confs/c_no_nat_client_2.conf \ 114 confs/c_no_nat_client_2.conf \
104 confs/c_no_nat_client.conf \ 115 confs/c_no_nat_client.conf \
105 confs/c_normal_client_tcp.conf \ 116 confs/c_normal_client_tcp.conf \
117 confs/c_normal_client_tcp_udp.conf \
118 confs/c_normal_client_tcp_udp_http.conf \
106 hostkeys/0000-hostkey \ 119 hostkeys/0000-hostkey \
107 hostkeys/0001-hostkey \ 120 hostkeys/0001-hostkey \
108 hostkeys/0002-hostkey \ 121 hostkeys/0002-hostkey \
diff --git a/src/integration-tests/confs/c_normal_client_tcp.conf b/src/integration-tests/confs/c_normal_client_tcp.conf
index c5de78b79..dd873c4f9 100644
--- a/src/integration-tests/confs/c_normal_client_tcp.conf
+++ b/src/integration-tests/confs/c_normal_client_tcp.conf
@@ -1,6 +1,6 @@
1[PATHS] 1[PATHS]
2SERVICEHOME = /tmp/c_normal_client 2SERVICEHOME = /tmp/c_normal_client
3DEFAULTCONFIG = confs/c_normal_client.conf 3DEFAULTCONFIG = confs/c_normal_client_tcp.conf
4 4
5[gnunetd] 5[gnunetd]
6HOSTKEY = hostkeys/0002-hostkey 6HOSTKEY = hostkeys/0002-hostkey
diff --git a/src/integration-tests/confs/c_normal_client_tcp_udp.conf b/src/integration-tests/confs/c_normal_client_tcp_udp.conf
new file mode 100644
index 000000000..b2a42fea5
--- /dev/null
+++ b/src/integration-tests/confs/c_normal_client_tcp_udp.conf
@@ -0,0 +1,354 @@
1[PATHS]
2SERVICEHOME = /tmp/c_normal_client
3DEFAULTCONFIG = confs/c_normal_client_tcp_udp.conf
4
5[gnunetd]
6HOSTKEY = hostkeys/0002-hostkey
7
8[client]
9HOME = $SERVICEHOME
10
11[vpn]
12AUTOSTART = YES
13PORT = 0
14HOSTNAME = localhost
15HOME = $SERVICEHOME
16CONFIG = $DEFAULTCONFIG
17BINARY = gnunet-service-dns
18ACCEPT_FROM = 127.0.0.1;
19ACCEPT_FROM6 = ::1;
20UNIXPATH = /tmp/gnunet-service-vpn-57
21
22
23[resolver]
24AUTOSTART = YES
25PORT = 20071
26HOSTNAME = localhost
27HOME = $SERVICEHOME
28CONFIG = $DEFAULTCONFIG
29BINARY = gnunet-service-resolver
30ACCEPT_FROM = 127.0.0.1;
31ACCEPT_FROM6 = ::1;
32UNIXPATH = /tmp/test-service-resolver-56
33UNIX_MATCH_UID = NO
34UNIX_MATCH_GID = NO
35
36[mesh]
37AUTOSTART = YES
38PORT = 20070
39HOSTNAME = localhost
40HOME = $SERVICEHOME
41CONFIG = $DEFAULTCONFIG
42BINARY = gnunet-service-mesh
43ACCEPT_FROM = 127.0.0.1;
44ACCEPT_FROM6 = ::1;
45UNIXPATH = /tmp/test-service-mesh-55
46UNIX_MATCH_UID = YES
47UNIX_MATCH_GID = YES
48
49[nse]
50AUTOSTART = YES
51PORT = 20069
52HOSTNAME = localhost
53HOME = $SERVICEHOME
54CONFIG = $DEFAULTCONFIG
55BINARY = gnunet-service-nse
56ACCEPT_FROM = 127.0.0.1;
57ACCEPT_FROM6 = ::1;
58UNIXPATH = /tmp/test-service-nse-54
59UNIX_MATCH_UID = YES
60UNIX_MATCH_GID = YES
61PROOFFILE = $SERVICEHOME/.nse-proof
62HISTOGRAM = $SERVICEHOME/nse-history.log
63WORKDELAY = 5 ms
64INTERVAL = 1 h
65WORKBITS = 26
66
67[topology]
68MINIMUM-FRIENDS = 0
69FRIENDS-ONLY = NO
70AUTOCONNECT = YES
71TARGET-CONNECTION-COUNT = 16
72FRIENDS = $SERVICEHOME/friends
73CONFIG = $DEFAULTCONFIG
74BINARY = gnunet-daemon-topology
75
76[datastore]
77AUTOSTART = YES
78UNIXPATH = /tmp/test-service-datastore-53
79UNIX_MATCH_UID = YES
80UNIX_MATCH_GID = YES
81PORT = 20068
82HOSTNAME = localhost
83HOME = $SERVICEHOME
84CONFIG = $DEFAULTCONFIG
85BINARY = gnunet-service-datastore
86ACCEPT_FROM = 127.0.0.1;
87ACCEPT_FROM6 = ::1;
88QUOTA = 100 MB
89BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
90DATABASE = sqlite
91
92[datastore-sqlite]
93FILENAME = $SERVICEHOME/datastore/sqlite.db
94
95[datastore-postgres]
96CONFIG = connect_timeout=10; dbname=gnunet
97
98[datastore-mysql]
99DATABASE = gnunet
100CONFIG = ~/.my.cnf
101
102[peerinfo]
103AUTOSTART = YES
104PORT = 20067
105HOSTNAME = localhost
106HOME = $SERVICEHOME
107CONFIG = $DEFAULTCONFIG
108BINARY = gnunet-service-peerinfo
109ACCEPT_FROM = 127.0.0.1;
110ACCEPT_FROM6 = ::1;
111UNIXPATH = /tmp/test-service-peerinfo-52
112UNIX_MATCH_UID = NO
113UNIX_MATCH_GID = YES
114HOSTS = $SERVICEHOME/data/hosts/
115
116[TESTING]
117WEAKRANDOM = NO
118CONNECT_TIMEOUT = 30 s
119CONNECT_ATTEMPTS = 3
120MAX_OUTSTANDING_CONNECTIONS = 50
121DELETE_FILES = YES
122
123[ats]
124AUTOSTART = YES
125PORT = 20066
126HOSTNAME = localhost
127HOME = $SERVICEHOME
128CONFIG = $DEFAULTCONFIG
129BINARY = gnunet-service-ats
130ACCEPT_FROM = 127.0.0.1;
131ACCEPT_FROM6 = ::1;
132UNIXPATH = /tmp/test-service-ats-51
133UNIX_MATCH_UID = YES
134UNIX_MATCH_GID = YES
135WAN_QUOTA_IN = 65536
136WAN_QUOTA_OUT = 65536
137DUMP_MLP = NO
138DUMP_SOLUTION = NO
139DUMP_OVERWRITE = NO
140DUMP_MIN_PEERS = 0
141DUMP_MIN_ADDRS = 0
142ATS_MIN_INTERVAL = 15000
143ATS_EXEC_INTERVAL = 30000
144
145[transport]
146AUTOSTART = YES
147PORT = 20065
148HOSTNAME = localhost
149HOME = $SERVICEHOME
150CONFIG = $DEFAULTCONFIG
151BINARY = gnunet-service-transport
152NEIGHBOUR_LIMIT = 50
153ACCEPT_FROM = 127.0.0.1;
154ACCEPT_FROM6 = ::1;
155PLUGINS = tcp udp
156UNIXPATH = /tmp/test-service-transport-50
157BLACKLIST_FILE = $SERVICEHOME/blacklist
158UNIX_MATCH_UID = YES
159UNIX_MATCH_GID = YES
160
161[transport-tcp]
162PORT = 0
163ADVERTISED_PORT = 20064
164MAX_CONNECTIONS = 128
165TIMEOUT = 5 s
166USE_LOCALADDR = YES
167
168[transport-udp]
169PORT = 0
170BROADCAST = YES
171BROADCAST_INTERVAL = 30000
172MAX_BPS = 1000000
173USE_LOCALADDR = YES
174
175[transport-http]
176PORT = 0
177MAX_CONNECTIONS = 128
178
179[transport-https]
180PORT = 0
181CRYPTO_INIT = NORMAL
182KEY_FILE = https.key
183CERT_FILE = https.cert
184MAX_CONNECTIONS = 128
185
186[transport-wlan]
187INTERFACE = mon0
188TESTMODE = 0
189
190[datacache-mysql]
191DATABASE = gnunet
192CONFIG = ~/.my.cnf
193
194[datacache-postgres]
195CONFIG = connect_timeout=10; dbname=gnunet
196
197[template]
198AUTOSTART = NO
199PORT = 20060
200HOSTNAME = localhost
201HOME = $SERVICEHOME
202CONFIG = $DEFAULTCONFIG
203BINARY = gnunet-service-template
204ACCEPT_FROM = 127.0.0.1;
205ACCEPT_FROM6 = ::1;
206UNIXPATH = /tmp/test-service-template-49
207UNIX_MATCH_UID = YES
208UNIX_MATCH_GID = YES
209
210[fs]
211AUTOSTART = YES
212INDEXDB = $SERVICEHOME/idxinfo.lst
213TRUST = $SERVICEHOME/data/credit/
214IDENTITY_DIR = $SERVICEHOME/identities/
215STATE_DIR = $SERVICEHOME/persistence/
216UPDATE_DIR = $SERVICEHOME/updates/
217PORT = 20059
218HOSTNAME = localhost
219HOME = $SERVICEHOME
220CONFIG = $DEFAULTCONFIG
221BINARY = gnunet-service-fs
222ACCEPT_FROM = 127.0.0.1;
223ACCEPT_FROM6 = ::1;
224DELAY = YES
225CONTENT_CACHING = YES
226CONTENT_PUSHING = YES
227UNIXPATH = /tmp/test-service-fs-48
228UNIX_MATCH_UID = NO
229UNIX_MATCH_GID = YES
230MAX_PENDING_REQUESTS = 65536
231MIN_MIGRATION_DELAY = 100 ms
232EXPECTED_NEIGHBOUR_COUNT = 128
233
234[vpn]
235CONFIG = $DEFAULTCONFIG
236BINARY = gnunet-daemon-vpn
237IPV6ADDR = 1234::1
238IPV6PREFIX = 32
239IPV4ADDR = 10.11.10.1
240IPV4MASK = 255.255.0.0
241VIRTDNS = 10.11.10.2
242VIRTDNS6 = 1234::17
243IFNAME = vpn-gnunet
244
245[exit]
246CONFIG = $DEFAULTCONFIG
247BINARY = gnunet-daemon-exit
248IPV6ADDR = 1234:1::1
249IPV6PREFIX = 32
250IPV4ADDR = 10.10.1.1
251IPV4MASK = 255.255.0.0
252IFNAME = exit-gnunet
253ENABLE_UDP = NO
254ENABLE_TCP = NO
255
256[dns]
257AUTOSTART = YES
258PORT = 0
259HOSTNAME = localhost
260HOME = $SERVICEHOME
261CONFIG = $DEFAULTCONFIG
262BINARY = gnunet-service-dns
263ACCEPT_FROM = 127.0.0.1;
264ACCEPT_FROM6 = ::1;
265UNIXPATH = /tmp/test-service-dns-47
266PROVIDE_EXIT = NO
267
268[arm]
269PORT = 20058
270HOSTNAME = localhost
271HOME = $SERVICEHOME
272CONFIG = $DEFAULTCONFIG
273BINARY = gnunet-service-arm
274ACCEPT_FROM = 127.0.0.1;
275ACCEPT_FROM6 = ::1;
276DEFAULTSERVICES = topology hostlist fs
277UNIXPATH = /tmp/test-service-arm-46
278UNIX_MATCH_UID = YES
279UNIX_MATCH_GID = YES
280
281[hostlist]
282HTTPPORT = 8080
283HOME = $SERVICEHOME
284HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
285CONFIG = $DEFAULTCONFIG
286BINARY = gnunet-daemon-hostlist
287OPTIONS = -b
288SERVERS = http://v9.gnunet.org/hostlist http://ioerror.gnunet.org:65535/
289HTTP-PROXY =
290
291[core]
292AUTOSTART = YES
293PORT = 20057
294HOSTNAME = localhost
295HOME = $SERVICEHOME
296CONFIG = $DEFAULTCONFIG
297BINARY = gnunet-service-core
298ACCEPT_FROM = 127.0.0.1;
299ACCEPT_FROM6 = ::1;
300UNIXPATH = /tmp/test-service-core-45
301UNIX_MATCH_UID = YES
302UNIX_MATCH_GID = YES
303
304[nat]
305BEHIND_NAT = YES
306PUNCHED_NAT = NO
307ENABLE_UPNP = NO
308USE_LOCALADDR = YES
309USE_HOSTNAME = NO
310ENABLE_ICMP_CLIENT = NO
311ENABLE_ICMP_SERVER = NO
312DISABLEV6 = YES
313RETURN_LOCAL_ADDRESSES = NO
314HOSTNAME_DNS_FREQUENCY = 1200000
315IFC_SCAN_FREQUENCY = 3000000
316DYNDNS_FREQUENCY = 140000
317EXTERNAL_ADDRESS = 127.0.0.1
318INTERNAL_ADDRESS = 127.0.0.1
319BINDTO = 127.0.0.1
320
321[gnunet-nat-server]
322HOSTNAME = gnunet.org
323PORT = 20056
324
325[statistics]
326AUTOSTART = YES
327PORT = 20055
328HOSTNAME = localhost
329HOME = $SERVICEHOME
330CONFIG = $DEFAULTCONFIG
331BINARY = gnunet-service-statistics
332ACCEPT_FROM = 127.0.0.1;
333ACCEPT_FROM6 = ::1;
334UNIXPATH = /tmp/test-service-statistics-44
335UNIX_MATCH_UID = NO
336UNIX_MATCH_GID = YES
337
338[dht]
339AUTOSTART = YES
340PORT = 20054
341HOSTNAME = localhost
342HOME = $SERVICEHOME
343CONFIG = $DEFAULTCONFIG
344BINARY = gnunet-service-dht
345ACCEPT_FROM = 127.0.0.1;
346ACCEPT_FROM6 = ::1;
347BUCKET_SIZE = 4
348UNIXPATH = /tmp/test-service-dht-43
349UNIX_MATCH_UID = YES
350UNIX_MATCH_GID = YES
351
352[dhtcache]
353DATABASE = sqlite
354QUOTA = 1 MB \ No newline at end of file
diff --git a/src/integration-tests/confs/c_normal_client_tcp_udp_http.conf b/src/integration-tests/confs/c_normal_client_tcp_udp_http.conf
new file mode 100644
index 000000000..453be3e38
--- /dev/null
+++ b/src/integration-tests/confs/c_normal_client_tcp_udp_http.conf
@@ -0,0 +1,354 @@
1[PATHS]
2SERVICEHOME = /tmp/c_normal_client
3DEFAULTCONFIG = confs/c_normal_client_tcp_udp_http.conf
4
5[gnunetd]
6HOSTKEY = hostkeys/0002-hostkey
7
8[client]
9HOME = $SERVICEHOME
10
11[vpn]
12AUTOSTART = YES
13PORT = 0
14HOSTNAME = localhost
15HOME = $SERVICEHOME
16CONFIG = $DEFAULTCONFIG
17BINARY = gnunet-service-dns
18ACCEPT_FROM = 127.0.0.1;
19ACCEPT_FROM6 = ::1;
20UNIXPATH = /tmp/gnunet-service-vpn-57
21
22
23[resolver]
24AUTOSTART = YES
25PORT = 20071
26HOSTNAME = localhost
27HOME = $SERVICEHOME
28CONFIG = $DEFAULTCONFIG
29BINARY = gnunet-service-resolver
30ACCEPT_FROM = 127.0.0.1;
31ACCEPT_FROM6 = ::1;
32UNIXPATH = /tmp/test-service-resolver-56
33UNIX_MATCH_UID = NO
34UNIX_MATCH_GID = NO
35
36[mesh]
37AUTOSTART = YES
38PORT = 20070
39HOSTNAME = localhost
40HOME = $SERVICEHOME
41CONFIG = $DEFAULTCONFIG
42BINARY = gnunet-service-mesh
43ACCEPT_FROM = 127.0.0.1;
44ACCEPT_FROM6 = ::1;
45UNIXPATH = /tmp/test-service-mesh-55
46UNIX_MATCH_UID = YES
47UNIX_MATCH_GID = YES
48
49[nse]
50AUTOSTART = YES
51PORT = 20069
52HOSTNAME = localhost
53HOME = $SERVICEHOME
54CONFIG = $DEFAULTCONFIG
55BINARY = gnunet-service-nse
56ACCEPT_FROM = 127.0.0.1;
57ACCEPT_FROM6 = ::1;
58UNIXPATH = /tmp/test-service-nse-54
59UNIX_MATCH_UID = YES
60UNIX_MATCH_GID = YES
61PROOFFILE = $SERVICEHOME/.nse-proof
62HISTOGRAM = $SERVICEHOME/nse-history.log
63WORKDELAY = 5 ms
64INTERVAL = 1 h
65WORKBITS = 26
66
67[topology]
68MINIMUM-FRIENDS = 0
69FRIENDS-ONLY = NO
70AUTOCONNECT = YES
71TARGET-CONNECTION-COUNT = 16
72FRIENDS = $SERVICEHOME/friends
73CONFIG = $DEFAULTCONFIG
74BINARY = gnunet-daemon-topology
75
76[datastore]
77AUTOSTART = YES
78UNIXPATH = /tmp/test-service-datastore-53
79UNIX_MATCH_UID = YES
80UNIX_MATCH_GID = YES
81PORT = 20068
82HOSTNAME = localhost
83HOME = $SERVICEHOME
84CONFIG = $DEFAULTCONFIG
85BINARY = gnunet-service-datastore
86ACCEPT_FROM = 127.0.0.1;
87ACCEPT_FROM6 = ::1;
88QUOTA = 100 MB
89BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
90DATABASE = sqlite
91
92[datastore-sqlite]
93FILENAME = $SERVICEHOME/datastore/sqlite.db
94
95[datastore-postgres]
96CONFIG = connect_timeout=10; dbname=gnunet
97
98[datastore-mysql]
99DATABASE = gnunet
100CONFIG = ~/.my.cnf
101
102[peerinfo]
103AUTOSTART = YES
104PORT = 20067
105HOSTNAME = localhost
106HOME = $SERVICEHOME
107CONFIG = $DEFAULTCONFIG
108BINARY = gnunet-service-peerinfo
109ACCEPT_FROM = 127.0.0.1;
110ACCEPT_FROM6 = ::1;
111UNIXPATH = /tmp/test-service-peerinfo-52
112UNIX_MATCH_UID = NO
113UNIX_MATCH_GID = YES
114HOSTS = $SERVICEHOME/data/hosts/
115
116[TESTING]
117WEAKRANDOM = NO
118CONNECT_TIMEOUT = 30 s
119CONNECT_ATTEMPTS = 3
120MAX_OUTSTANDING_CONNECTIONS = 50
121DELETE_FILES = YES
122
123[ats]
124AUTOSTART = YES
125PORT = 20066
126HOSTNAME = localhost
127HOME = $SERVICEHOME
128CONFIG = $DEFAULTCONFIG
129BINARY = gnunet-service-ats
130ACCEPT_FROM = 127.0.0.1;
131ACCEPT_FROM6 = ::1;
132UNIXPATH = /tmp/test-service-ats-51
133UNIX_MATCH_UID = YES
134UNIX_MATCH_GID = YES
135WAN_QUOTA_IN = 65536
136WAN_QUOTA_OUT = 65536
137DUMP_MLP = NO
138DUMP_SOLUTION = NO
139DUMP_OVERWRITE = NO
140DUMP_MIN_PEERS = 0
141DUMP_MIN_ADDRS = 0
142ATS_MIN_INTERVAL = 15000
143ATS_EXEC_INTERVAL = 30000
144
145[transport]
146AUTOSTART = YES
147PORT = 20065
148HOSTNAME = localhost
149HOME = $SERVICEHOME
150CONFIG = $DEFAULTCONFIG
151BINARY = gnunet-service-transport
152NEIGHBOUR_LIMIT = 50
153ACCEPT_FROM = 127.0.0.1;
154ACCEPT_FROM6 = ::1;
155PLUGINS = tcp udp http
156UNIXPATH = /tmp/test-service-transport-50
157BLACKLIST_FILE = $SERVICEHOME/blacklist
158UNIX_MATCH_UID = YES
159UNIX_MATCH_GID = YES
160
161[transport-tcp]
162PORT = 0
163ADVERTISED_PORT = 20064
164MAX_CONNECTIONS = 128
165TIMEOUT = 5 s
166USE_LOCALADDR = YES
167
168[transport-udp]
169PORT = 0
170BROADCAST = YES
171BROADCAST_INTERVAL = 30000
172MAX_BPS = 1000000
173USE_LOCALADDR = YES
174
175[transport-http]
176PORT = 0
177MAX_CONNECTIONS = 128
178
179[transport-https]
180PORT = 0
181CRYPTO_INIT = NORMAL
182KEY_FILE = https.key
183CERT_FILE = https.cert
184MAX_CONNECTIONS = 128
185
186[transport-wlan]
187INTERFACE = mon0
188TESTMODE = 0
189
190[datacache-mysql]
191DATABASE = gnunet
192CONFIG = ~/.my.cnf
193
194[datacache-postgres]
195CONFIG = connect_timeout=10; dbname=gnunet
196
197[template]
198AUTOSTART = NO
199PORT = 20060
200HOSTNAME = localhost
201HOME = $SERVICEHOME
202CONFIG = $DEFAULTCONFIG
203BINARY = gnunet-service-template
204ACCEPT_FROM = 127.0.0.1;
205ACCEPT_FROM6 = ::1;
206UNIXPATH = /tmp/test-service-template-49
207UNIX_MATCH_UID = YES
208UNIX_MATCH_GID = YES
209
210[fs]
211AUTOSTART = YES
212INDEXDB = $SERVICEHOME/idxinfo.lst
213TRUST = $SERVICEHOME/data/credit/
214IDENTITY_DIR = $SERVICEHOME/identities/
215STATE_DIR = $SERVICEHOME/persistence/
216UPDATE_DIR = $SERVICEHOME/updates/
217PORT = 20059
218HOSTNAME = localhost
219HOME = $SERVICEHOME
220CONFIG = $DEFAULTCONFIG
221BINARY = gnunet-service-fs
222ACCEPT_FROM = 127.0.0.1;
223ACCEPT_FROM6 = ::1;
224DELAY = YES
225CONTENT_CACHING = YES
226CONTENT_PUSHING = YES
227UNIXPATH = /tmp/test-service-fs-48
228UNIX_MATCH_UID = NO
229UNIX_MATCH_GID = YES
230MAX_PENDING_REQUESTS = 65536
231MIN_MIGRATION_DELAY = 100 ms
232EXPECTED_NEIGHBOUR_COUNT = 128
233
234[vpn]
235CONFIG = $DEFAULTCONFIG
236BINARY = gnunet-daemon-vpn
237IPV6ADDR = 1234::1
238IPV6PREFIX = 32
239IPV4ADDR = 10.11.10.1
240IPV4MASK = 255.255.0.0
241VIRTDNS = 10.11.10.2
242VIRTDNS6 = 1234::17
243IFNAME = vpn-gnunet
244
245[exit]
246CONFIG = $DEFAULTCONFIG
247BINARY = gnunet-daemon-exit
248IPV6ADDR = 1234:1::1
249IPV6PREFIX = 32
250IPV4ADDR = 10.10.1.1
251IPV4MASK = 255.255.0.0
252IFNAME = exit-gnunet
253ENABLE_UDP = NO
254ENABLE_TCP = NO
255
256[dns]
257AUTOSTART = YES
258PORT = 0
259HOSTNAME = localhost
260HOME = $SERVICEHOME
261CONFIG = $DEFAULTCONFIG
262BINARY = gnunet-service-dns
263ACCEPT_FROM = 127.0.0.1;
264ACCEPT_FROM6 = ::1;
265UNIXPATH = /tmp/test-service-dns-47
266PROVIDE_EXIT = NO
267
268[arm]
269PORT = 20058
270HOSTNAME = localhost
271HOME = $SERVICEHOME
272CONFIG = $DEFAULTCONFIG
273BINARY = gnunet-service-arm
274ACCEPT_FROM = 127.0.0.1;
275ACCEPT_FROM6 = ::1;
276DEFAULTSERVICES = topology hostlist fs
277UNIXPATH = /tmp/test-service-arm-46
278UNIX_MATCH_UID = YES
279UNIX_MATCH_GID = YES
280
281[hostlist]
282HTTPPORT = 8080
283HOME = $SERVICEHOME
284HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
285CONFIG = $DEFAULTCONFIG
286BINARY = gnunet-daemon-hostlist
287OPTIONS = -b
288SERVERS = http://v9.gnunet.org/hostlist http://ioerror.gnunet.org:65535/
289HTTP-PROXY =
290
291[core]
292AUTOSTART = YES
293PORT = 20057
294HOSTNAME = localhost
295HOME = $SERVICEHOME
296CONFIG = $DEFAULTCONFIG
297BINARY = gnunet-service-core
298ACCEPT_FROM = 127.0.0.1;
299ACCEPT_FROM6 = ::1;
300UNIXPATH = /tmp/test-service-core-45
301UNIX_MATCH_UID = YES
302UNIX_MATCH_GID = YES
303
304[nat]
305BEHIND_NAT = YES
306PUNCHED_NAT = NO
307ENABLE_UPNP = NO
308USE_LOCALADDR = YES
309USE_HOSTNAME = NO
310ENABLE_ICMP_CLIENT = NO
311ENABLE_ICMP_SERVER = NO
312DISABLEV6 = YES
313RETURN_LOCAL_ADDRESSES = NO
314HOSTNAME_DNS_FREQUENCY = 1200000
315IFC_SCAN_FREQUENCY = 3000000
316DYNDNS_FREQUENCY = 140000
317EXTERNAL_ADDRESS = 127.0.0.1
318INTERNAL_ADDRESS = 127.0.0.1
319BINDTO = 127.0.0.1
320
321[gnunet-nat-server]
322HOSTNAME = gnunet.org
323PORT = 20056
324
325[statistics]
326AUTOSTART = YES
327PORT = 20055
328HOSTNAME = localhost
329HOME = $SERVICEHOME
330CONFIG = $DEFAULTCONFIG
331BINARY = gnunet-service-statistics
332ACCEPT_FROM = 127.0.0.1;
333ACCEPT_FROM6 = ::1;
334UNIXPATH = /tmp/test-service-statistics-44
335UNIX_MATCH_UID = NO
336UNIX_MATCH_GID = YES
337
338[dht]
339AUTOSTART = YES
340PORT = 20054
341HOSTNAME = localhost
342HOME = $SERVICEHOME
343CONFIG = $DEFAULTCONFIG
344BINARY = gnunet-service-dht
345ACCEPT_FROM = 127.0.0.1;
346ACCEPT_FROM6 = ::1;
347BUCKET_SIZE = 4
348UNIXPATH = /tmp/test-service-dht-43
349UNIX_MATCH_UID = YES
350UNIX_MATCH_GID = YES
351
352[dhtcache]
353DATABASE = sqlite
354QUOTA = 1 MB \ No newline at end of file
diff --git a/src/integration-tests/test_integration_connection_values_tcp_udp.py.in b/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
new file mode 100755
index 000000000..905ea9b1b
--- /dev/null
+++ b/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
@@ -0,0 +1,124 @@
1#!/usr/bin/python
2# This file is part of GNUnet.
3# (C) 2010 Christian Grothoff (and other contributing authors)
4#
5# GNUnet is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published
7# by the Free Software Foundation; either version 2, or (at your
8# option) any later version.
9#
10# GNUnet is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with GNUnet; see the file COPYING. If not, write to the
17# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18# Boston, MA 02111-1307, USA.
19#
20#
21#
22# This test starts 3 peers and expects bootstrap and a connected clique
23#
24# Conditions for successful exit:
25# Both peers have 1 connected peer in transport, core, topology, fs
26
27import sys
28import os
29import subprocess
30import re
31import shutil
32import time
33import pexpect
34from gnunet_testing import Peer
35from gnunet_testing import Test
36from gnunet_testing import Check
37from gnunet_testing import Condition
38from gnunet_testing import *
39
40
41#definitions
42
43testname = "test_integration_connection_value"
44verbose = True
45check_timeout = 30
46
47
48def cleanup ():
49 if os.name == "nt":
50 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_normal_client"), True)
51 else:
52 shutil.rmtree ("/tmp/c_normal_client/", True)
53
54
55def success_cont (check):
56 global success
57 success = True;
58
59def fail_cont (check):
60 global success
61 success= False;
62 check.evaluate(True)
63
64
65def check_connect ():
66 check = Check (test)
67 check.add (EqualStatisticsCondition (client, 'transport', '# peers connected', client, 'core', '# neighbour entries allocated'))
68 check.add (EqualStatisticsCondition (client, 'transport', '# peers connected', client, 'core', '# entries in session map'))
69 check.add (EqualStatisticsCondition (client, 'core', '# neighbour entries allocated', client, 'core', '# entries in session map'))
70 check.add (EqualStatisticsCondition (client, 'transport', '# peers connected', client, 'topology', '# peers connected'))
71 check.add (EqualStatisticsCondition (client, 'topology', '# peers connected', client, 'core', '# entries in session map'))
72
73 while True:
74 check.reset()
75 res = check.run_once (None, None)
76 print "Values are equal"
77 check.evaluate (False)
78#if (False == res):
79# break
80 time.sleep (5)
81
82#
83# Test execution
84#
85def run ():
86 global success
87 global test
88 global client
89
90
91 success = False
92
93 test = Test ('test_integration_connection_value', verbose)
94
95 client = Peer(test, './confs/c_normal_client_tcp_udp.conf');
96 client.start();
97
98 if (client.started == True):
99 test.p ('Peers started, running check')
100 check_connect ()
101
102 client.stop ()
103
104 cleanup ()
105
106 if (success == False):
107 print ('Test failed')
108 return False
109 else:
110 return True
111
112
113try:
114 run ()
115except (KeyboardInterrupt, SystemExit):
116 print 'Test interrupted'
117 client.stop ()
118 cleanup ()
119if (success == False):
120 sys.exit(1)
121else:
122 sys.exit(0)
123
124
diff --git a/src/integration-tests/test_integration_connection_values_tcp_udp_http.py.in b/src/integration-tests/test_integration_connection_values_tcp_udp_http.py.in
new file mode 100755
index 000000000..0916f8540
--- /dev/null
+++ b/src/integration-tests/test_integration_connection_values_tcp_udp_http.py.in
@@ -0,0 +1,124 @@
1#!/usr/bin/python
2# This file is part of GNUnet.
3# (C) 2010 Christian Grothoff (and other contributing authors)
4#
5# GNUnet is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published
7# by the Free Software Foundation; either version 2, or (at your
8# option) any later version.
9#
10# GNUnet is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with GNUnet; see the file COPYING. If not, write to the
17# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18# Boston, MA 02111-1307, USA.
19#
20#
21#
22# This test starts 3 peers and expects bootstrap and a connected clique
23#
24# Conditions for successful exit:
25# Both peers have 1 connected peer in transport, core, topology, fs
26
27import sys
28import os
29import subprocess
30import re
31import shutil
32import time
33import pexpect
34from gnunet_testing import Peer
35from gnunet_testing import Test
36from gnunet_testing import Check
37from gnunet_testing import Condition
38from gnunet_testing import *
39
40
41#definitions
42
43testname = "test_integration_connection_value"
44verbose = True
45check_timeout = 30
46
47
48def cleanup ():
49 if os.name == "nt":
50 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_normal_client"), True)
51 else:
52 shutil.rmtree ("/tmp/c_normal_client/", True)
53
54
55def success_cont (check):
56 global success
57 success = True;
58
59def fail_cont (check):
60 global success
61 success= False;
62 check.evaluate(True)
63
64
65def check_connect ():
66 check = Check (test)
67 check.add (EqualStatisticsCondition (client, 'transport', '# peers connected', client, 'core', '# neighbour entries allocated'))
68 check.add (EqualStatisticsCondition (client, 'transport', '# peers connected', client, 'core', '# entries in session map'))
69 check.add (EqualStatisticsCondition (client, 'core', '# neighbour entries allocated', client, 'core', '# entries in session map'))
70 check.add (EqualStatisticsCondition (client, 'transport', '# peers connected', client, 'topology', '# peers connected'))
71 check.add (EqualStatisticsCondition (client, 'topology', '# peers connected', client, 'core', '# entries in session map'))
72
73 while True:
74 check.reset()
75 res = check.run_once (None, None)
76 print "Values are equal"
77 check.evaluate (False)
78#if (False == res):
79# break
80 time.sleep (5)
81
82#
83# Test execution
84#
85def run ():
86 global success
87 global test
88 global client
89
90
91 success = False
92
93 test = Test ('test_integration_connection_value', verbose)
94
95 client = Peer(test, './confs/c_normal_client_tcp_udp_http.conf');
96 client.start();
97
98 if (client.started == True):
99 test.p ('Peers started, running check')
100 check_connect ()
101
102 client.stop ()
103
104 cleanup ()
105
106 if (success == False):
107 print ('Test failed')
108 return False
109 else:
110 return True
111
112
113try:
114 run ()
115except (KeyboardInterrupt, SystemExit):
116 print 'Test interrupted'
117 client.stop ()
118 cleanup ()
119if (success == False):
120 sys.exit(1)
121else:
122 sys.exit(0)
123
124