aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Nadler <sebastian.nadler@tum.de>2024-01-04 19:31:38 +0100
committerSebastian Nadler <sebastian.nadler@tum.de>2024-01-11 16:18:57 +0100
commita2b4a0a924eed10a0efdcbb912950997be7c484f (patch)
tree48398714bc9425d4ecdce633b315f072fe53de20
parentf0da2953151cc6c08f728e8a56a51d56e784c3cd (diff)
downloadgnunet-a2b4a0a924eed10a0efdcbb912950997be7c484f.tar.gz
gnunet-a2b4a0a924eed10a0efdcbb912950997be7c484f.zip
GNS: lightest test fix wrong identifier
-rwxr-xr-xsrc/cli/gns/test_gns_lightest.sh28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/cli/gns/test_gns_lightest.sh b/src/cli/gns/test_gns_lightest.sh
index e604691a4..2d2203e66 100755
--- a/src/cli/gns/test_gns_lightest.sh
+++ b/src/cli/gns/test_gns_lightest.sh
@@ -24,9 +24,9 @@ TEST_URI="10 1 \"https://ec.europa.eu/tools/lotl/eu-lotl.xml\""
24TEST_SMIMEA="3 0 1 f7e8e4e554fb7c7a8f6f360e0ca2f59d466c8f9539a25963f5ed37e905f0c797" 24TEST_SMIMEA="3 0 1 f7e8e4e554fb7c7a8f6f360e0ca2f59d466c8f9539a25963f5ed37e905f0c797"
25SCHEME="_scheme" 25SCHEME="_scheme"
26TRUST="_trust" 26TRUST="_trust"
27TRUSTLIST="_trustlist" 27TRANSLATION="_translation"
28TEST_PTR="$SCHEME.$TRUST.$LABEL.$MY_EGO.$START_EGO" 28TEST_PTR="$SCHEME.$TRUST.$LABEL.$MY_EGO.$START_EGO"
29TEST_PTR2="$TRUSTLIST.$TRUST.$LABEL.$MY_EGO.$START_EGO" 29TEST_PTR2="$TRANSLATION.$TRUST.$LABEL.$MY_EGO.$START_EGO"
30gnunet-arm -s -c test_gns_lookup.conf 30gnunet-arm -s -c test_gns_lookup.conf
31gnunet-identity -C $MY_EGO -c test_gns_lookup.conf 31gnunet-identity -C $MY_EGO -c test_gns_lookup.conf
32gnunet-identity -C $START_EGO -c test_gns_lookup.conf 32gnunet-identity -C $START_EGO -c test_gns_lookup.conf
@@ -40,7 +40,7 @@ gnunet-namestore -p -z $MY_EGO -a -n $LABEL -t BOX -V "49152 49153 53 $TEST_SMIM
40gnunet-namestore -p -z $START_EGO -a -n $MY_EGO -t PKEY -V "$PKEY" -e never -c test_gns_lookup.conf 40gnunet-namestore -p -z $START_EGO -a -n $MY_EGO -t PKEY -V "$PKEY" -e never -c test_gns_lookup.conf
41sleep 0.5 41sleep 0.5
42PTR_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $SCHEME.$TRUST.$PTR_LABEL.$MY_EGO.$START_EGO -t PTR -c test_gns_lookup.conf` 42PTR_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $SCHEME.$TRUST.$PTR_LABEL.$MY_EGO.$START_EGO -t PTR -c test_gns_lookup.conf`
43PTR_TRUSTLIST=`$DO_TIMEOUT gnunet-gns --raw -u $TRUSTLIST.$TRUST.$PTR_LABEL.$MY_EGO.$START_EGO -t PTR -c test_gns_lookup.conf` 43PTR_TRANSLATION=`$DO_TIMEOUT gnunet-gns --raw -u $TRANSLATION.$TRUST.$PTR_LABEL.$MY_EGO.$START_EGO -t PTR -c test_gns_lookup.conf`
44 44
45SUCCESS=0 45SUCCESS=0
46if [ "$PTR_SCHEME" != "$TEST_PTR" ] 46if [ "$PTR_SCHEME" != "$TEST_PTR" ]
@@ -51,12 +51,12 @@ else
51 echo "Resolved to proper PTR, got '$PTR_SCHEME'." 51 echo "Resolved to proper PTR, got '$PTR_SCHEME'."
52fi 52fi
53 53
54if [ "$PTR_TRUSTLIST" != "$TEST_PTR2" ] 54if [ "$PTR_TRANSLATION" != "$TEST_PTR2" ]
55then 55then
56 echo "Failed to resolve to proper PTR, got '$PTR_TRUSTLIST'." 56 echo "Failed to resolve to proper PTR, got '$PTR_TRANSLATION'."
57 SUCCESS=1 57 SUCCESS=1
58else 58else
59 echo "Resolved to proper PTR, got '$PTR_TRUSTLIST'." 59 echo "Resolved to proper PTR, got '$PTR_TRANSLATION'."
60fi 60fi
61 61
62if [ "$SUCCESS" = "1" ] 62if [ "$SUCCESS" = "1" ]
@@ -72,8 +72,8 @@ fi
72RES_URI_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_SCHEME -t URI -c test_gns_lookup.conf` 72RES_URI_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_SCHEME -t URI -c test_gns_lookup.conf`
73RES_SMIMEA_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_SCHEME -t SMIMEA -c test_gns_lookup.conf` 73RES_SMIMEA_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_SCHEME -t SMIMEA -c test_gns_lookup.conf`
74 74
75RES_URI_TRUSTLIST=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_TRUSTLIST -t URI -c test_gns_lookup.conf` 75RES_URI_TRANSLATION=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_TRANSLATION -t URI -c test_gns_lookup.conf`
76RES_SMIMEA_TRUSTLIST=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_TRUSTLIST -t SMIMEA -c test_gns_lookup.conf` 76RES_SMIMEA_TRANSLATION=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_TRANSLATION -t SMIMEA -c test_gns_lookup.conf`
77 77
78 78
79if [ "$RES_URI_SCHEME" != "$TEST_URI" ] 79if [ "$RES_URI_SCHEME" != "$TEST_URI" ]
@@ -92,20 +92,20 @@ else
92 echo "Resolved to proper SMIMEA, got '$RES_SMIMEA_SCHEME'." 92 echo "Resolved to proper SMIMEA, got '$RES_SMIMEA_SCHEME'."
93fi 93fi
94 94
95if [ "$RES_URI_TRUSTLIST" != "$TEST_URI" ] 95if [ "$RES_URI_TRANSLATION" != "$TEST_URI" ]
96then 96then
97 echo "Failed to resolve to proper URI, got '$RES_URI_TRUSTLIST'." 97 echo "Failed to resolve to proper URI, got '$RES_URI_TRANSLATION'."
98 SUCCESS=1 98 SUCCESS=1
99else 99else
100 echo "Resolved to proper URI, got '$RES_URI_TRUSTLIST'." 100 echo "Resolved to proper URI, got '$RES_URI_TRANSLATION'."
101fi 101fi
102 102
103if [ "$RES_SMIMEA_TRUSTLIST" != "$TEST_SMIMEA" ] 103if [ "$RES_SMIMEA_TRANSLATION" != "$TEST_SMIMEA" ]
104then 104then
105 echo "Failed to resolve to proper SMIMEA, got '$RES_SMIMEA_TRUSTLIST'." 105 echo "Failed to resolve to proper SMIMEA, got '$RES_SMIMEA_TRANSLATION'."
106 SUCCESS=1 106 SUCCESS=1
107else 107else
108 echo "Resolved to proper SMIMEA, got '$RES_SMIMEA_TRUSTLIST'." 108 echo "Resolved to proper SMIMEA, got '$RES_SMIMEA_TRANSLATION'."
109fi 109fi
110 110
111gnunet-namestore -p -z $MY_EGO -a -n $LABEL -t BOX -V "49152 49152 256 10 1 \"thisisnotavaliduri\"" -e never -c test_gns_lookup.conf 111gnunet-namestore -p -z $MY_EGO -a -n $LABEL -t BOX -V "49152 49152 256 10 1 \"thisisnotavaliduri\"" -e never -c test_gns_lookup.conf