aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-10-04 23:18:36 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-10-04 23:18:36 +0900
commit95fd039097d261626916cfc260a06a29d3d4fc15 (patch)
treec99542afade27ed73f97ef3bdb2964a98378c58d /src/gns
parent1b6b1c095747809f753a3fa37bb2419d61f93e72 (diff)
downloadgnunet-95fd039097d261626916cfc260a06a29d3d4fc15.tar.gz
gnunet-95fd039097d261626916cfc260a06a29d3d4fc15.zip
-fix more tests
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/test_gns_lookup.conf11
-rw-r--r--src/gns/test_gns_proxy.conf9
-rwxr-xr-xsrc/gns/test_plugin_rest_gns.sh7
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]
26IMMEDIATE_START = YES
27START_ON_DEMAND = YES
28
29[zonemaster]
30IMMEDIATE_START = YES
31START_ON_DEMAND = YES
32
33[rest]
34BASIC_AUTH_ENABLED=NO
35
25[revocation] 36[revocation]
26WORKBITS = 2 37WORKBITS = 2
27EPOCH_DURATION = 365 d 38EPOCH_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
13ZONE_PUBLISH_TIME_WINDOW = 1 h 13ZONE_PUBLISH_TIME_WINDOW = 1 h
14DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0 14DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0
15 15
16[zonemaster-monitor]
17IMMEDIATE_START = YES
18START_ON_DEMAND = YES
19
20[zonemaster]
21IMMEDIATE_START = YES
22START_ON_DEMAND = YES
23
24
16 25
17[gns-proxy] 26[gns-proxy]
18PROXY_CACERT = /tmp/proxy_cacert.pem 27PROXY_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"
21curl_get () { 21curl_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}
41TEST_TLD="testtld" 41TEST_TLD="testtld"
42 42
43gnunet-arm -s -c test_gns_lookup.conf 43gnunet-arm -s -c test_gns_lookup.conf
44
44curl_get "$gns_link/www.$TEST_TLD" "error" 45curl_get "$gns_link/www.$TEST_TLD" "error"
45 46
46gnunet-identity -C "$TEST_TLD" -c test_gns_lookup.conf 47gnunet-identity -C "$TEST_TLD" -c test_gns_lookup.conf