diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-17 11:55:08 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-17 11:55:08 +0000 |
commit | bbd9867e477ed9a528b0d9a17c9671032395da67 (patch) | |
tree | 874425b8fc83154ef7c7fa5ef1bc30abe669d029 /src/transport | |
parent | 845e3b0b22bc2e1481d4b1a90e349be04ad86e69 (diff) | |
download | gnunet-bbd9867e477ed9a528b0d9a17c9671032395da67.tar.gz gnunet-bbd9867e477ed9a528b0d9a17c9671032395da67.zip |
asymmetric quota test
Diffstat (limited to 'src/transport')
13 files changed, 384 insertions, 35 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 193c70a19..c156d483f 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -12,7 +12,7 @@ if HAVE_MHD | |||
12 | HTTP_REL_TEST = test_transport_api_reliability_http | 12 | HTTP_REL_TEST = test_transport_api_reliability_http |
13 | HTTP_NAT_REL_TEST = test_transport_api_reliability_http_nat | 13 | HTTP_NAT_REL_TEST = test_transport_api_reliability_http_nat |
14 | HTTP_QUOTA_TEST = test_quota_compliance_http \ | 14 | HTTP_QUOTA_TEST = test_quota_compliance_http \ |
15 | test_quota_compliance_http_asymmetric_recv_constant | 15 | test_quota_compliance_http_asymmetric |
16 | HTTPS_PLUGIN_LA = libgnunet_plugin_transport_https.la | 16 | HTTPS_PLUGIN_LA = libgnunet_plugin_transport_https.la |
17 | HTTPS_API_TEST = test_transport_api_https | 17 | HTTPS_API_TEST = test_transport_api_https |
18 | HTTPS_NAT_API_TEST = test_transport_api_https_nat | 18 | HTTPS_NAT_API_TEST = test_transport_api_https_nat |
@@ -20,7 +20,7 @@ if HAVE_MHD | |||
20 | HTTPS_REL_TEST = test_transport_api_reliability_https | 20 | HTTPS_REL_TEST = test_transport_api_reliability_https |
21 | HTTPS_NAT_REL_TEST = test_transport_api_reliability_https_nat | 21 | HTTPS_NAT_REL_TEST = test_transport_api_reliability_https_nat |
22 | HTTPS_QUOTA_TEST = test_quota_compliance_https \ | 22 | HTTPS_QUOTA_TEST = test_quota_compliance_https \ |
23 | test_quota_compliance_https_asymmetric_recv_constant | 23 | test_quota_compliance_https_asymmetric |
24 | endif | 24 | endif |
25 | 25 | ||
26 | if USE_COVERAGE | 26 | if USE_COVERAGE |
@@ -52,7 +52,7 @@ UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la | |||
52 | UNIX_PLUGIN_TEST = test_transport_api_unix | 52 | UNIX_PLUGIN_TEST = test_transport_api_unix |
53 | UNIX_REL_TEST = test_transport_api_unreliability_unix | 53 | UNIX_REL_TEST = test_transport_api_unreliability_unix |
54 | UNIX_QUOTA_TEST = test_quota_compliance_unix \ | 54 | UNIX_QUOTA_TEST = test_quota_compliance_unix \ |
55 | test_quota_compliance_unix_asymmetric_recv_constant | 55 | test_quota_compliance_unix_asymmetric |
56 | endif | 56 | endif |
57 | 57 | ||
58 | noinst_PROGRAMS = \ | 58 | noinst_PROGRAMS = \ |
@@ -279,9 +279,9 @@ check_PROGRAMS = \ | |||
279 | $(HTTPS_REL_TEST) \ | 279 | $(HTTPS_REL_TEST) \ |
280 | $(HTTPS_NAT_REL_TEST) \ | 280 | $(HTTPS_NAT_REL_TEST) \ |
281 | test_quota_compliance_tcp \ | 281 | test_quota_compliance_tcp \ |
282 | test_quota_compliance_tcp_asymmetric_recv_constant \ | 282 | test_quota_compliance_tcp_asymmetric \ |
283 | test_quota_compliance_udp \ | 283 | test_quota_compliance_udp \ |
284 | test_quota_compliance_udp_asymmetric_recv_constant \ | 284 | test_quota_compliance_udp_asymmetric \ |
285 | $(UNIX_QUOTA_TEST) \ | 285 | $(UNIX_QUOTA_TEST) \ |
286 | $(HTTP_QUOTA_TEST) \ | 286 | $(HTTP_QUOTA_TEST) \ |
287 | $(HTTPS_QUOTA_TEST) \ | 287 | $(HTTPS_QUOTA_TEST) \ |
@@ -318,9 +318,9 @@ TESTS = \ | |||
318 | $(HTTPS_REL_TEST) \ | 318 | $(HTTPS_REL_TEST) \ |
319 | $(HTTPS_NAT_REL_TEST) \ | 319 | $(HTTPS_NAT_REL_TEST) \ |
320 | test_quota_compliance_tcp \ | 320 | test_quota_compliance_tcp \ |
321 | test_quota_compliance_tcp_asymmetric_recv_constant \ | 321 | test_quota_compliance_tcp_asymmetric \ |
322 | test_quota_compliance_udp \ | 322 | test_quota_compliance_udp \ |
323 | test_quota_compliance_udp_asymmetric_recv_constant \ | 323 | test_quota_compliance_udp_asymmetric \ |
324 | $(UNIX_QUOTA_TEST) \ | 324 | $(UNIX_QUOTA_TEST) \ |
325 | $(HTTP_QUOTA_TEST) \ | 325 | $(HTTP_QUOTA_TEST) \ |
326 | $(HTTPS_QUOTA_TEST) \ | 326 | $(HTTPS_QUOTA_TEST) \ |
@@ -580,9 +580,9 @@ test_quota_compliance_tcp_LDADD = \ | |||
580 | $(top_builddir)/src/util/libgnunetutil.la \ | 580 | $(top_builddir)/src/util/libgnunetutil.la \ |
581 | $(top_builddir)/src/transport/libgnunettransporttesting.la | 581 | $(top_builddir)/src/transport/libgnunettransporttesting.la |
582 | 582 | ||
583 | test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \ | 583 | test_quota_compliance_tcp_asymmetric_SOURCES = \ |
584 | test_quota_compliance.c | 584 | test_quota_compliance.c |
585 | test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \ | 585 | test_quota_compliance_tcp_asymmetric_LDADD = \ |
586 | $(top_builddir)/src/transport/libgnunettransport.la \ | 586 | $(top_builddir)/src/transport/libgnunettransport.la \ |
587 | $(top_builddir)/src/hello/libgnunethello.la \ | 587 | $(top_builddir)/src/hello/libgnunethello.la \ |
588 | $(top_builddir)/src/util/libgnunetutil.la \ | 588 | $(top_builddir)/src/util/libgnunetutil.la \ |
@@ -602,9 +602,9 @@ test_quota_compliance_http_LDADD = \ | |||
602 | $(top_builddir)/src/util/libgnunetutil.la \ | 602 | $(top_builddir)/src/util/libgnunetutil.la \ |
603 | $(top_builddir)/src/transport/libgnunettransporttesting.la | 603 | $(top_builddir)/src/transport/libgnunettransporttesting.la |
604 | 604 | ||
605 | test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \ | 605 | test_quota_compliance_http_asymmetric_SOURCES = \ |
606 | test_quota_compliance.c | 606 | test_quota_compliance.c |
607 | test_quota_compliance_http_asymmetric_recv_constant_LDADD = \ | 607 | test_quota_compliance_http_asymmetric_LDADD = \ |
608 | $(top_builddir)/src/transport/libgnunettransport.la \ | 608 | $(top_builddir)/src/transport/libgnunettransport.la \ |
609 | $(top_builddir)/src/hello/libgnunethello.la \ | 609 | $(top_builddir)/src/hello/libgnunethello.la \ |
610 | $(top_builddir)/src/util/libgnunetutil.la \ | 610 | $(top_builddir)/src/util/libgnunetutil.la \ |
@@ -624,9 +624,9 @@ test_quota_compliance_https_LDADD = \ | |||
624 | $(top_builddir)/src/util/libgnunetutil.la \ | 624 | $(top_builddir)/src/util/libgnunetutil.la \ |
625 | $(top_builddir)/src/transport/libgnunettransporttesting.la | 625 | $(top_builddir)/src/transport/libgnunettransporttesting.la |
626 | 626 | ||
627 | test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \ | 627 | test_quota_compliance_https_asymmetric_SOURCES = \ |
628 | test_quota_compliance.c | 628 | test_quota_compliance.c |
629 | test_quota_compliance_https_asymmetric_recv_constant_LDADD = \ | 629 | test_quota_compliance_https_asymmetric_LDADD = \ |
630 | $(top_builddir)/src/transport/libgnunettransport.la \ | 630 | $(top_builddir)/src/transport/libgnunettransport.la \ |
631 | $(top_builddir)/src/hello/libgnunethello.la \ | 631 | $(top_builddir)/src/hello/libgnunethello.la \ |
632 | $(top_builddir)/src/util/libgnunetutil.la \ | 632 | $(top_builddir)/src/util/libgnunetutil.la \ |
@@ -646,9 +646,9 @@ test_quota_compliance_udp_LDADD = \ | |||
646 | $(top_builddir)/src/util/libgnunetutil.la \ | 646 | $(top_builddir)/src/util/libgnunetutil.la \ |
647 | $(top_builddir)/src/transport/libgnunettransporttesting.la | 647 | $(top_builddir)/src/transport/libgnunettransporttesting.la |
648 | 648 | ||
649 | test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \ | 649 | test_quota_compliance_udp_asymmetric_SOURCES = \ |
650 | test_quota_compliance.c | 650 | test_quota_compliance.c |
651 | test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \ | 651 | test_quota_compliance_udp_asymmetric_LDADD = \ |
652 | $(top_builddir)/src/transport/libgnunettransport.la \ | 652 | $(top_builddir)/src/transport/libgnunettransport.la \ |
653 | $(top_builddir)/src/hello/libgnunethello.la \ | 653 | $(top_builddir)/src/hello/libgnunethello.la \ |
654 | $(top_builddir)/src/util/libgnunetutil.la \ | 654 | $(top_builddir)/src/util/libgnunetutil.la \ |
@@ -662,9 +662,9 @@ test_quota_compliance_unix_LDADD = \ | |||
662 | $(top_builddir)/src/util/libgnunetutil.la \ | 662 | $(top_builddir)/src/util/libgnunetutil.la \ |
663 | $(top_builddir)/src/transport/libgnunettransporttesting.la | 663 | $(top_builddir)/src/transport/libgnunettransporttesting.la |
664 | 664 | ||
665 | test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \ | 665 | test_quota_compliance_unix_asymmetric_SOURCES = \ |
666 | test_quota_compliance.c | 666 | test_quota_compliance.c |
667 | test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \ | 667 | test_quota_compliance_unix_asymmetric_LDADD = \ |
668 | $(top_builddir)/src/transport/libgnunettransport.la \ | 668 | $(top_builddir)/src/transport/libgnunettransport.la \ |
669 | $(top_builddir)/src/hello/libgnunethello.la \ | 669 | $(top_builddir)/src/hello/libgnunethello.la \ |
670 | $(top_builddir)/src/util/libgnunetutil.la \ | 670 | $(top_builddir)/src/util/libgnunetutil.la \ |
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index d8e5c3f44..3422ef2fd 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c | |||
@@ -21,7 +21,7 @@ | |||
21 | * @file transport/test_quota_compliance.c | 21 | * @file transport/test_quota_compliance.c |
22 | * @brief base test case for transport implementations | 22 | * @brief base test case for transport implementations |
23 | * | 23 | * |
24 | * This test case tests quota compliance both on core and transport level | 24 | * This test case tests quota compliance both on transport level |
25 | */ | 25 | */ |
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_common.h" | 27 | #include "gnunet_common.h" |
@@ -282,19 +282,6 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
282 | } | 282 | } |
283 | #endif | 283 | #endif |
284 | n++; | 284 | n++; |
285 | if (0 == (n % (TOTAL_MSGS / 100))) | ||
286 | { | ||
287 | fprintf (stderr, "."); | ||
288 | if (die_task != GNUNET_SCHEDULER_NO_TASK) | ||
289 | GNUNET_SCHEDULER_cancel (die_task); | ||
290 | die_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL); | ||
291 | } | ||
292 | if (n == TOTAL_MSGS) | ||
293 | { | ||
294 | ok = 0; | ||
295 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "\nAll messages received\n"); | ||
296 | end (); | ||
297 | } | ||
298 | } | 285 | } |
299 | 286 | ||
300 | 287 | ||
@@ -409,6 +396,27 @@ sendtask () | |||
409 | NULL); | 396 | NULL); |
410 | } | 397 | } |
411 | 398 | ||
399 | |||
400 | static void | ||
401 | measure (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
402 | { | ||
403 | static int counter; | ||
404 | measure_task = GNUNET_SCHEDULER_NO_TASK; | ||
405 | |||
406 | counter++; | ||
407 | if ((DURATION.rel_value / 1000) < counter ) | ||
408 | { | ||
409 | fprintf (stderr, ".\n"); | ||
410 | GNUNET_SCHEDULER_add_now (&end, NULL); | ||
411 | } | ||
412 | else | ||
413 | { | ||
414 | fprintf (stderr, "."); | ||
415 | measure_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &measure, NULL); | ||
416 | } | ||
417 | } | ||
418 | |||
419 | |||
412 | static void | 420 | static void |
413 | testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) | 421 | testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) |
414 | { | 422 | { |
@@ -421,7 +429,7 @@ testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) | |||
421 | cc = NULL; | 429 | cc = NULL; |
422 | test_connected = GNUNET_YES; | 430 | test_connected = GNUNET_YES; |
423 | 431 | ||
424 | measure_task = GNUNET_SCHEDULER_add_delayed (DURATION, &end, NULL); | 432 | measure_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &measure, NULL); |
425 | GNUNET_SCHEDULER_add_now (&sendtask, NULL); | 433 | GNUNET_SCHEDULER_add_now (&sendtask, NULL); |
426 | 434 | ||
427 | } | 435 | } |
@@ -516,7 +524,26 @@ static void | |||
516 | run (void *cls, char *const *args, const char *cfgfile, | 524 | run (void *cls, char *const *args, const char *cfgfile, |
517 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 525 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
518 | { | 526 | { |
519 | run_measurement (10000, 10000, 10000, 10000); | 527 | unsigned long long p1_quota_in = 10000; |
528 | unsigned long long p1_quota_out = 10000; | ||
529 | unsigned long long p2_quota_in = 10000; | ||
530 | unsigned long long p2_quota_out = 10000; | ||
531 | |||
532 | if (NULL != strstr (test_name,"asymmetric")) | ||
533 | { | ||
534 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
535 | "Running asymmetric test with sending peer unlimited, receiving peer (in/out): %llu/%llu b/s \n", | ||
536 | p2_quota_in, p2_quota_out); | ||
537 | p1_quota_out = 1024 * 1024 * 1024; | ||
538 | p1_quota_in = 1024 * 1024 * 1024; | ||
539 | } | ||
540 | else | ||
541 | { | ||
542 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
543 | "Running symmetric test with (in/out) %llu/%llu b/s \n", | ||
544 | p2_quota_in, p2_quota_out); | ||
545 | } | ||
546 | run_measurement (p1_quota_in, p1_quota_out, p2_quota_in, p2_quota_out); | ||
520 | } | 547 | } |
521 | 548 | ||
522 | static int | 549 | static int |
@@ -596,7 +623,7 @@ main (int argc, char *argv[]) | |||
596 | 623 | ||
597 | if (GNUNET_YES == GNUNET_DISK_file_test (gen_cfg_p2)) | 624 | if (GNUNET_YES == GNUNET_DISK_file_test (gen_cfg_p2)) |
598 | { | 625 | { |
599 | //GNUNET_DISK_directory_remove (gen_cfg_p2); | 626 | GNUNET_DISK_directory_remove (gen_cfg_p2); |
600 | GNUNET_free (gen_cfg_p2); | 627 | GNUNET_free (gen_cfg_p2); |
601 | } | 628 | } |
602 | 629 | ||
diff --git a/src/transport/test_quota_compliance_http_asymmetric_peer1.conf b/src/transport/test_quota_compliance_http_asymmetric_peer1.conf new file mode 100644 index 000000000..872a75365 --- /dev/null +++ b/src/transport/test_quota_compliance_http_asymmetric_peer1.conf | |||
@@ -0,0 +1,34 @@ | |||
1 | @INLINE@ template_cfg_peer1.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer1 | ||
4 | DEFAULTCONFIG = test_quota_compliance_http_peer1.conf | ||
5 | |||
6 | [transport-http] | ||
7 | PORT = 4010 | ||
8 | DEBUG = NO | ||
9 | USE_IPv4 = YES | ||
10 | USE_IPv6 = NO | ||
11 | BINDTO4 = 127.0.0.1 | ||
12 | |||
13 | [arm] | ||
14 | PORT = 4015 | ||
15 | UNIXPATH = /tmp/test_quota_compliance_http_arm_peer1.sock | ||
16 | |||
17 | [statistics] | ||
18 | PORT = 4014 | ||
19 | UNIXPATH = /tmp/test_quota_compliance_http_statistics_peer1.sock | ||
20 | |||
21 | [resolver] | ||
22 | PORT = 4013 | ||
23 | UNIXPATH = /tmp/test_quota_compliance_http_resolver_peer1.sock | ||
24 | |||
25 | [peerinfo] | ||
26 | PORT = 4012 | ||
27 | UNIXPATH = /tmp/test_quota_compliance_http_peerinfo_peer1.sock | ||
28 | |||
29 | [transport] | ||
30 | PORT = 4011 | ||
31 | PLUGINS = http | ||
32 | UNIXPATH = /tmp/test_quota_compliance_http_transport_peer1.sock | ||
33 | |||
34 | |||
diff --git a/src/transport/test_quota_compliance_http_asymmetric_peer2.conf b/src/transport/test_quota_compliance_http_asymmetric_peer2.conf new file mode 100644 index 000000000..256dc61eb --- /dev/null +++ b/src/transport/test_quota_compliance_http_asymmetric_peer2.conf | |||
@@ -0,0 +1,34 @@ | |||
1 | @INLINE@ template_cfg_peer2.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer2 | ||
4 | DEFAULTCONFIG = test_quota_compliance_http_peer2.conf | ||
5 | |||
6 | [transport-http] | ||
7 | PORT = 3010 | ||
8 | DEBUG = NO | ||
9 | USE_IPv4 = YES | ||
10 | USE_IPv6 = NO | ||
11 | BINDTO4 = 127.0.0.1 | ||
12 | |||
13 | [arm] | ||
14 | PORT = 3015 | ||
15 | UNIXPATH = /tmp/test_quota_compliance_http_arm_peer2.sock | ||
16 | |||
17 | [statistics] | ||
18 | PORT = 3014 | ||
19 | UNIXPATH = /tmp/test_quota_compliance_http_statistics_peer2.sock | ||
20 | |||
21 | [resolver] | ||
22 | PORT = 3013 | ||
23 | UNIXPATH = /tmp/test_quota_compliance_http_resolver_peer2.sock | ||
24 | |||
25 | [peerinfo] | ||
26 | PORT = 3012 | ||
27 | UNIXPATH = /tmp/test_quota_compliance_http_peerinfo_peer2.sock | ||
28 | |||
29 | [transport] | ||
30 | PORT = 3011 | ||
31 | PLUGINS = http | ||
32 | UNIXPATH = /tmp/test_quota_compliance_http_transport_peer2.sock | ||
33 | |||
34 | |||
diff --git a/src/transport/test_quota_compliance_https_asymmetric_peer1.conf b/src/transport/test_quota_compliance_https_asymmetric_peer1.conf new file mode 100644 index 000000000..47f93096c --- /dev/null +++ b/src/transport/test_quota_compliance_https_asymmetric_peer1.conf | |||
@@ -0,0 +1,36 @@ | |||
1 | @INLINE@ template_cfg_peer1.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer1/ | ||
4 | DEFAULTCONFIG = test_quota_compliance_https_peer1.conf | ||
5 | |||
6 | [transport-https] | ||
7 | PORT = 4001 | ||
8 | CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+SHA1:+RSA:+COMP-NULL | ||
9 | KEY_FILE = https_key_quota_p1.key | ||
10 | CERT_FILE = https_cert_quota_p1.crt | ||
11 | USE_IPv4 = YES | ||
12 | USE_IPv6 = NO | ||
13 | BINDTO4 = 127.0.0.1 | ||
14 | |||
15 | [arm] | ||
16 | PORT = 4006 | ||
17 | UNIXPATH = /tmp/test_quota_compliance_https_arm_peer1.sock | ||
18 | |||
19 | [statistics] | ||
20 | PORT = 4005 | ||
21 | UNIXPATH = /tmp/test_quota_compliance_https_statistics_peer1.sock | ||
22 | |||
23 | [resolver] | ||
24 | PORT = 4004 | ||
25 | UNIXPATH = /tmp/test_quota_compliance_https_resolver_peer1.sock | ||
26 | |||
27 | [peerinfo] | ||
28 | PORT = 4003 | ||
29 | UNIXPATH = /tmp/test_quota_compliance_https_peerinfo_peer1.sock | ||
30 | |||
31 | [transport] | ||
32 | PORT = 4002 | ||
33 | PLUGINS = https | ||
34 | UNIXPATH = /tmp/test_quota_compliance_https_transport_peer1.sock | ||
35 | |||
36 | |||
diff --git a/src/transport/test_quota_compliance_https_asymmetric_peer2.conf b/src/transport/test_quota_compliance_https_asymmetric_peer2.conf new file mode 100644 index 000000000..79bf0331f --- /dev/null +++ b/src/transport/test_quota_compliance_https_asymmetric_peer2.conf | |||
@@ -0,0 +1,36 @@ | |||
1 | @INLINE@ template_cfg_peer2.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer2 | ||
4 | DEFAULTCONFIG = test_quota_compliance_https_peer2.conf | ||
5 | |||
6 | [transport-https] | ||
7 | PORT = 3001 | ||
8 | CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+SHA1:+RSA:+COMP-NULL | ||
9 | KEY_FILE = https_key_quota_p2.key | ||
10 | CERT_FILE = https_cert_qutoa_p2.crt | ||
11 | USE_IPv4 = YES | ||
12 | USE_IPv6 = NO | ||
13 | BINDTO4 = 127.0.0.1 | ||
14 | |||
15 | [arm] | ||
16 | PORT = 3006 | ||
17 | UNIXPATH = /tmp/test_quota_compliance_https_arm_peer2.sock | ||
18 | |||
19 | [statistics] | ||
20 | PORT = 3005 | ||
21 | UNIXPATH = /tmp/test_quota_compliance_https_statistics_peer2.sock | ||
22 | |||
23 | [resolver] | ||
24 | PORT = 3004 | ||
25 | UNIXPATH = /tmp/test_quota_compliance_https_resolver_peer2.sock | ||
26 | |||
27 | [peerinfo] | ||
28 | PORT = 3003 | ||
29 | UNIXPATH = /tmp/test_quota_compliance_https_peerinfo_peer2.sock | ||
30 | |||
31 | [transport] | ||
32 | PORT = 3002 | ||
33 | PLUGINS = https | ||
34 | UNIXPATH = /tmp/https_transport_peer2.sock | ||
35 | |||
36 | |||
diff --git a/src/transport/test_quota_compliance_tcp_asymmetric_peer1.conf b/src/transport/test_quota_compliance_tcp_asymmetric_peer1.conf new file mode 100644 index 000000000..ff63514b1 --- /dev/null +++ b/src/transport/test_quota_compliance_tcp_asymmetric_peer1.conf | |||
@@ -0,0 +1,32 @@ | |||
1 | @INLINE@ template_cfg_peer1.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test-transport/quota-tcp-p1/ | ||
4 | DEFAULTCONFIG = test_quota_compliance_tcp_peer1.conf | ||
5 | |||
6 | [transport-tcp] | ||
7 | PORT = 4094 | ||
8 | |||
9 | [transport-udp] | ||
10 | PORT = 4094 | ||
11 | |||
12 | [arm] | ||
13 | PORT = 4087 | ||
14 | UNIXPATH = /tmp/test_quota_compliance_tcp_arm_peer1.sock | ||
15 | |||
16 | [statistics] | ||
17 | PORT = 4088 | ||
18 | UNIXPATH = /tmp/test_quota_compliance_tcp_statistics_peer1.sock | ||
19 | |||
20 | [resolver] | ||
21 | PORT = 4089 | ||
22 | UNIXPATH = /tmp/test_quota_compliance_tcp_resolver_peer1.sock | ||
23 | |||
24 | [peerinfo] | ||
25 | PORT = 4090 | ||
26 | UNIXPATH = /tmp/test_quota_compliance_tcp_peerinfo_peer1.sock | ||
27 | |||
28 | [transport] | ||
29 | PORT = 4091 | ||
30 | UNIXPATH = /tmp/test_quota_compliance_tcp_transport_peer1.sock | ||
31 | |||
32 | |||
diff --git a/src/transport/test_quota_compliance_tcp_asymmetric_peer2.conf b/src/transport/test_quota_compliance_tcp_asymmetric_peer2.conf new file mode 100644 index 000000000..608c49a07 --- /dev/null +++ b/src/transport/test_quota_compliance_tcp_asymmetric_peer2.conf | |||
@@ -0,0 +1,32 @@ | |||
1 | @INLINE@ template_cfg_peer2.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer2 | ||
4 | DEFAULTCONFIG = test_quota_compliance_tcp_peer2.conf | ||
5 | |||
6 | [transport-tcp] | ||
7 | PORT = 3094 | ||
8 | |||
9 | [transport-udp] | ||
10 | PORT = 3094 | ||
11 | |||
12 | [arm] | ||
13 | PORT = 3087 | ||
14 | UNIXPATH = /tmp/test_quota_compliance_tcp_arm_peer2.sock | ||
15 | |||
16 | [statistics] | ||
17 | PORT = 3088 | ||
18 | UNIXPATH = /tmp/test_quota_compliance_tcp_statistics_peer2.sock | ||
19 | |||
20 | [resolver] | ||
21 | PORT = 3089 | ||
22 | UNIXPATH = /tmp/test_quota_compliance_tcp_resolver_peer2.sock | ||
23 | |||
24 | [peerinfo] | ||
25 | PORT = 3090 | ||
26 | UNIXPATH = /tmp/test_quota_compliance_tcp_peerinfo_peer2.sock | ||
27 | |||
28 | [transport] | ||
29 | PORT = 3091 | ||
30 | UNIXPATH = /tmp/test_quota_compliance_tcp_transport_peer2.sock | ||
31 | |||
32 | |||
diff --git a/src/transport/test_quota_compliance_udp_asymmetric_peer1.conf b/src/transport/test_quota_compliance_udp_asymmetric_peer1.conf new file mode 100644 index 000000000..4848b065e --- /dev/null +++ b/src/transport/test_quota_compliance_udp_asymmetric_peer1.conf | |||
@@ -0,0 +1,30 @@ | |||
1 | @INLINE@ template_cfg_peer2.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer1/ | ||
4 | DEFAULTCONFIG = test_quota_compliance_udp_peer1.conf | ||
5 | |||
6 | [transport-udp] | ||
7 | PORT = 4368 | ||
8 | MAX_BPS = 50000000 | ||
9 | |||
10 | [arm] | ||
11 | PORT = 4087 | ||
12 | UNIXPATH = /tmp/test_quota_compliance_udp_arm_peer1.sock | ||
13 | |||
14 | [statistics] | ||
15 | PORT = 4088 | ||
16 | UNIXPATH = /tmp/test_quota_compliance_udp_statistics_peer1.sock | ||
17 | |||
18 | [resolver] | ||
19 | PORT = 4089 | ||
20 | UNIXPATH = /tmp/test_quota_compliance_udp_resolver_peer1.sock | ||
21 | |||
22 | [peerinfo] | ||
23 | PORT = 4090 | ||
24 | UNIXPATH = /tmp/test_quota_compliance_udp_peerinfo_peer1.sock | ||
25 | |||
26 | [transport] | ||
27 | PORT = 4091 | ||
28 | PLUGINS = udp | ||
29 | UNIXPATH = /tmp/test_quota_compliance_udp_transport_peer1.sock | ||
30 | |||
diff --git a/src/transport/test_quota_compliance_udp_asymmetric_peer2.conf b/src/transport/test_quota_compliance_udp_asymmetric_peer2.conf new file mode 100644 index 000000000..4b58c934f --- /dev/null +++ b/src/transport/test_quota_compliance_udp_asymmetric_peer2.conf | |||
@@ -0,0 +1,31 @@ | |||
1 | @INLINE@ template_cfg_peer2.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer2 | ||
4 | DEFAULTCONFIG = test_quota_compliance_udp_peer2.conf | ||
5 | |||
6 | [transport-udp] | ||
7 | PORT = 3368 | ||
8 | MAX_BPS = 50000000 | ||
9 | |||
10 | [arm] | ||
11 | PORT = 3087 | ||
12 | UNIXPATH = /tmp/test_quota_compliance_udp_arm_peer2.sock | ||
13 | |||
14 | [statistics] | ||
15 | PORT = 3088 | ||
16 | UNIXPATH = /tmp/test_quota_compliance_udp_statistics_peer2.sock | ||
17 | |||
18 | [resolver] | ||
19 | PORT = 3089 | ||
20 | UNIXPATH = /tmp/test_quota_compliance_udp_resolver_peer2.sock | ||
21 | |||
22 | [peerinfo] | ||
23 | PORT = 3090 | ||
24 | UNIXPATH = /tmp/test_quota_compliance_udp_peerinfo_peer2.sock | ||
25 | |||
26 | [transport] | ||
27 | PORT = 3091 | ||
28 | PLUGINS = udp | ||
29 | UNIXPATH = /tmp/test_quota_compliance_udp_transport_peer2.sock | ||
30 | |||
31 | |||
diff --git a/src/transport/test_quota_compliance_unix_asymmetric_peer1.conf b/src/transport/test_quota_compliance_unix_asymmetric_peer1.conf new file mode 100644 index 000000000..f562d4c1a --- /dev/null +++ b/src/transport/test_quota_compliance_unix_asymmetric_peer1.conf | |||
@@ -0,0 +1,28 @@ | |||
1 | @INLINE@ template_cfg_peer1.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer1/ | ||
4 | DEFAULTCONFIG = test_quota_compliance_unix_peer1.conf | ||
5 | |||
6 | [arm] | ||
7 | PORT = 4087 | ||
8 | UNIXPATH = /tmp/test_quota_compliance_unix_arm_peer1.sock | ||
9 | |||
10 | [statistics] | ||
11 | PORT = 4088 | ||
12 | UNIXPATH = /tmp/test_quota_compliance_unix_statistics_peer1.sock | ||
13 | |||
14 | [resolver] | ||
15 | PORT = 4089 | ||
16 | UNIXPATH = /tmp/test_quota_compliance_unix_resolver_peer1.sock | ||
17 | |||
18 | [peerinfo] | ||
19 | PORT = 4090 | ||
20 | UNIXPATH = /tmp/test_quota_compliance_unix_peerinfo_peer1.sock | ||
21 | |||
22 | [transport] | ||
23 | PORT = 4091 | ||
24 | PLUGINS = unix | ||
25 | UNIXPATH = /tmp/test_quota_compliance_unix_transport_peer1.sock | ||
26 | |||
27 | |||
28 | |||
diff --git a/src/transport/test_quota_compliance_unix_asymmetric_peer2.conf b/src/transport/test_quota_compliance_unix_asymmetric_peer2.conf new file mode 100644 index 000000000..b444cb48c --- /dev/null +++ b/src/transport/test_quota_compliance_unix_asymmetric_peer2.conf | |||
@@ -0,0 +1,29 @@ | |||
1 | @INLINE@ template_cfg_peer1.conf | ||
2 | [PATHS] | ||
3 | SERVICEHOME = /tmp/test_quota_compliance_peer2 | ||
4 | DEFAULTCONFIG = test_quota_compliance_unix_peer2.conf | ||
5 | |||
6 | [arm] | ||
7 | PORT = 3087 | ||
8 | UNIXPATH = /tmp/test_quota_compliance_unix_arm_peer2.sock | ||
9 | |||
10 | [statistics] | ||
11 | PORT = 3088 | ||
12 | UNIXPATH = /tmp/test_quota_compliance_unix_statistics_peer2.sock | ||
13 | |||
14 | [resolver] | ||
15 | PORT = 3089 | ||
16 | UNIXPATH = /tmp/test_quota_compliance_unix_resolver_peer2.sock | ||
17 | |||
18 | [peerinfo] | ||
19 | PORT = 3090 | ||
20 | UNIXPATH = /tmp/test_quota_compliance_unix_peerinfo_peer2.sock | ||
21 | |||
22 | [transport] | ||
23 | PORT = 3091 | ||
24 | PLUGINS = unix | ||
25 | UNIXPATH = /tmp/test_quota_compliance_unix_transport_peer2.sock | ||
26 | |||
27 | [transport-unix] | ||
28 | PORT = 3368 | ||
29 | |||
diff --git a/src/transport/test_transport_api_reliability_tcp_peer2.conf b/src/transport/test_transport_api_reliability_tcp_peer2.conf index 8324a5d4b..506aad2dc 100644 --- a/src/transport/test_transport_api_reliability_tcp_peer2.conf +++ b/src/transport/test_transport_api_reliability_tcp_peer2.conf | |||
@@ -8,7 +8,7 @@ TOTAL_QUOTA_OUT = 1073741824 | |||
8 | TOTAL_QUOTA_IN = 1073741824 | 8 | TOTAL_QUOTA_IN = 1073741824 |
9 | 9 | ||
10 | [transport-tcp] | 10 | [transport-tcp] |
11 | PORT = 12016 | 11 | PORT = 12015 |
12 | TIMEOUT = 5000 | 12 | TIMEOUT = 5000 |
13 | 13 | ||
14 | [arm] | 14 | [arm] |