diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-04 23:18:36 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-04 23:18:36 +0900 |
commit | 95fd039097d261626916cfc260a06a29d3d4fc15 (patch) | |
tree | c99542afade27ed73f97ef3bdb2964a98378c58d /src/gns | |
parent | 1b6b1c095747809f753a3fa37bb2419d61f93e72 (diff) | |
download | gnunet-95fd039097d261626916cfc260a06a29d3d4fc15.tar.gz gnunet-95fd039097d261626916cfc260a06a29d3d4fc15.zip |
-fix more tests
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/test_gns_lookup.conf | 11 | ||||
-rw-r--r-- | src/gns/test_gns_proxy.conf | 9 | ||||
-rwxr-xr-x | src/gns/test_plugin_rest_gns.sh | 7 |
3 files changed, 24 insertions, 3 deletions
diff --git a/src/gns/test_gns_lookup.conf b/src/gns/test_gns_lookup.conf index db0b4bfbe..fe7970018 100644 --- a/src/gns/test_gns_lookup.conf +++ b/src/gns/test_gns_lookup.conf | |||
@@ -22,6 +22,17 @@ DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0 | |||
22 | [namestore] | 22 | [namestore] |
23 | #PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=/tmp/ns_log | 23 | #PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=/tmp/ns_log |
24 | 24 | ||
25 | [zonemaster-monitor] | ||
26 | IMMEDIATE_START = YES | ||
27 | START_ON_DEMAND = YES | ||
28 | |||
29 | [zonemaster] | ||
30 | IMMEDIATE_START = YES | ||
31 | START_ON_DEMAND = YES | ||
32 | |||
33 | [rest] | ||
34 | BASIC_AUTH_ENABLED=NO | ||
35 | |||
25 | [revocation] | 36 | [revocation] |
26 | WORKBITS = 2 | 37 | WORKBITS = 2 |
27 | EPOCH_DURATION = 365 d | 38 | EPOCH_DURATION = 365 d |
diff --git a/src/gns/test_gns_proxy.conf b/src/gns/test_gns_proxy.conf index 3b21f1d90..c87f26d40 100644 --- a/src/gns/test_gns_proxy.conf +++ b/src/gns/test_gns_proxy.conf | |||
@@ -13,6 +13,15 @@ RECORD_PUT_INTERVAL = 1 h | |||
13 | ZONE_PUBLISH_TIME_WINDOW = 1 h | 13 | ZONE_PUBLISH_TIME_WINDOW = 1 h |
14 | DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0 | 14 | DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0 |
15 | 15 | ||
16 | [zonemaster-monitor] | ||
17 | IMMEDIATE_START = YES | ||
18 | START_ON_DEMAND = YES | ||
19 | |||
20 | [zonemaster] | ||
21 | IMMEDIATE_START = YES | ||
22 | START_ON_DEMAND = YES | ||
23 | |||
24 | |||
16 | 25 | ||
17 | [gns-proxy] | 26 | [gns-proxy] |
18 | PROXY_CACERT = /tmp/proxy_cacert.pem | 27 | PROXY_CACERT = /tmp/proxy_cacert.pem |
diff --git a/src/gns/test_plugin_rest_gns.sh b/src/gns/test_plugin_rest_gns.sh index 25c39f135..3bcfb5a08 100755 --- a/src/gns/test_plugin_rest_gns.sh +++ b/src/gns/test_plugin_rest_gns.sh | |||
@@ -21,10 +21,10 @@ wrong_link="http://localhost:7776/gnsandmore" | |||
21 | curl_get () { | 21 | curl_get () { |
22 | #$1 is link | 22 | #$1 is link |
23 | #$2 is grep | 23 | #$2 is grep |
24 | XURL=`which gnurl || which curl` | 24 | XURL=`which curl` |
25 | if [ "" = "$XURL" ] | 25 | if [ "" = "$XURL" ] |
26 | then | 26 | then |
27 | echo "HTTP client (curl/gnurl) not found, exiting" | 27 | echo "HTTP client (curl) not found, exiting" |
28 | exit 77 | 28 | exit 77 |
29 | fi | 29 | fi |
30 | sleep 0.5 | 30 | sleep 0.5 |
@@ -34,13 +34,14 @@ curl_get () { | |||
34 | then | 34 | then |
35 | gnunet-identity -D "$TEST_TLD" -c test_gns_lookup.conf > /dev/null 2>&1 | 35 | gnunet-identity -D "$TEST_TLD" -c test_gns_lookup.conf > /dev/null 2>&1 |
36 | gnunet-arm -e -c test_gns_lookup.conf | 36 | gnunet-arm -e -c test_gns_lookup.conf |
37 | echo "Download of $1 using $XURL failed" | 37 | echo "Download of $1 using $XURL failed, expected $2" |
38 | exit 1 | 38 | exit 1 |
39 | fi | 39 | fi |
40 | } | 40 | } |
41 | TEST_TLD="testtld" | 41 | TEST_TLD="testtld" |
42 | 42 | ||
43 | gnunet-arm -s -c test_gns_lookup.conf | 43 | gnunet-arm -s -c test_gns_lookup.conf |
44 | |||
44 | curl_get "$gns_link/www.$TEST_TLD" "error" | 45 | curl_get "$gns_link/www.$TEST_TLD" "error" |
45 | 46 | ||
46 | gnunet-identity -C "$TEST_TLD" -c test_gns_lookup.conf | 47 | gnunet-identity -C "$TEST_TLD" -c test_gns_lookup.conf |