diff options
author | Sebastian Nadler <sebastian.nadler@tum.de> | 2024-01-04 19:31:38 +0100 |
---|---|---|
committer | Sebastian Nadler <sebastian.nadler@tum.de> | 2024-01-11 16:18:57 +0100 |
commit | a2b4a0a924eed10a0efdcbb912950997be7c484f (patch) | |
tree | 48398714bc9425d4ecdce633b315f072fe53de20 | |
parent | f0da2953151cc6c08f728e8a56a51d56e784c3cd (diff) | |
download | gnunet-a2b4a0a924eed10a0efdcbb912950997be7c484f.tar.gz gnunet-a2b4a0a924eed10a0efdcbb912950997be7c484f.zip |
GNS: lightest test fix wrong identifier
-rwxr-xr-x | src/cli/gns/test_gns_lightest.sh | 28 |
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\"" | |||
24 | TEST_SMIMEA="3 0 1 f7e8e4e554fb7c7a8f6f360e0ca2f59d466c8f9539a25963f5ed37e905f0c797" | 24 | TEST_SMIMEA="3 0 1 f7e8e4e554fb7c7a8f6f360e0ca2f59d466c8f9539a25963f5ed37e905f0c797" |
25 | SCHEME="_scheme" | 25 | SCHEME="_scheme" |
26 | TRUST="_trust" | 26 | TRUST="_trust" |
27 | TRUSTLIST="_trustlist" | 27 | TRANSLATION="_translation" |
28 | TEST_PTR="$SCHEME.$TRUST.$LABEL.$MY_EGO.$START_EGO" | 28 | TEST_PTR="$SCHEME.$TRUST.$LABEL.$MY_EGO.$START_EGO" |
29 | TEST_PTR2="$TRUSTLIST.$TRUST.$LABEL.$MY_EGO.$START_EGO" | 29 | TEST_PTR2="$TRANSLATION.$TRUST.$LABEL.$MY_EGO.$START_EGO" |
30 | gnunet-arm -s -c test_gns_lookup.conf | 30 | gnunet-arm -s -c test_gns_lookup.conf |
31 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf | 31 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf |
32 | gnunet-identity -C $START_EGO -c test_gns_lookup.conf | 32 | gnunet-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 | |||
40 | gnunet-namestore -p -z $START_EGO -a -n $MY_EGO -t PKEY -V "$PKEY" -e never -c test_gns_lookup.conf | 40 | gnunet-namestore -p -z $START_EGO -a -n $MY_EGO -t PKEY -V "$PKEY" -e never -c test_gns_lookup.conf |
41 | sleep 0.5 | 41 | sleep 0.5 |
42 | PTR_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $SCHEME.$TRUST.$PTR_LABEL.$MY_EGO.$START_EGO -t PTR -c test_gns_lookup.conf` | 42 | PTR_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $SCHEME.$TRUST.$PTR_LABEL.$MY_EGO.$START_EGO -t PTR -c test_gns_lookup.conf` |
43 | PTR_TRUSTLIST=`$DO_TIMEOUT gnunet-gns --raw -u $TRUSTLIST.$TRUST.$PTR_LABEL.$MY_EGO.$START_EGO -t PTR -c test_gns_lookup.conf` | 43 | PTR_TRANSLATION=`$DO_TIMEOUT gnunet-gns --raw -u $TRANSLATION.$TRUST.$PTR_LABEL.$MY_EGO.$START_EGO -t PTR -c test_gns_lookup.conf` |
44 | 44 | ||
45 | SUCCESS=0 | 45 | SUCCESS=0 |
46 | if [ "$PTR_SCHEME" != "$TEST_PTR" ] | 46 | if [ "$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'." |
52 | fi | 52 | fi |
53 | 53 | ||
54 | if [ "$PTR_TRUSTLIST" != "$TEST_PTR2" ] | 54 | if [ "$PTR_TRANSLATION" != "$TEST_PTR2" ] |
55 | then | 55 | then |
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 |
58 | else | 58 | else |
59 | echo "Resolved to proper PTR, got '$PTR_TRUSTLIST'." | 59 | echo "Resolved to proper PTR, got '$PTR_TRANSLATION'." |
60 | fi | 60 | fi |
61 | 61 | ||
62 | if [ "$SUCCESS" = "1" ] | 62 | if [ "$SUCCESS" = "1" ] |
@@ -72,8 +72,8 @@ fi | |||
72 | RES_URI_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_SCHEME -t URI -c test_gns_lookup.conf` | 72 | RES_URI_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_SCHEME -t URI -c test_gns_lookup.conf` |
73 | RES_SMIMEA_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_SCHEME -t SMIMEA -c test_gns_lookup.conf` | 73 | RES_SMIMEA_SCHEME=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_SCHEME -t SMIMEA -c test_gns_lookup.conf` |
74 | 74 | ||
75 | RES_URI_TRUSTLIST=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_TRUSTLIST -t URI -c test_gns_lookup.conf` | 75 | RES_URI_TRANSLATION=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_TRANSLATION -t URI -c test_gns_lookup.conf` |
76 | RES_SMIMEA_TRUSTLIST=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_TRUSTLIST -t SMIMEA -c test_gns_lookup.conf` | 76 | RES_SMIMEA_TRANSLATION=`$DO_TIMEOUT gnunet-gns --raw -u $PTR_TRANSLATION -t SMIMEA -c test_gns_lookup.conf` |
77 | 77 | ||
78 | 78 | ||
79 | if [ "$RES_URI_SCHEME" != "$TEST_URI" ] | 79 | if [ "$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'." |
93 | fi | 93 | fi |
94 | 94 | ||
95 | if [ "$RES_URI_TRUSTLIST" != "$TEST_URI" ] | 95 | if [ "$RES_URI_TRANSLATION" != "$TEST_URI" ] |
96 | then | 96 | then |
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 |
99 | else | 99 | else |
100 | echo "Resolved to proper URI, got '$RES_URI_TRUSTLIST'." | 100 | echo "Resolved to proper URI, got '$RES_URI_TRANSLATION'." |
101 | fi | 101 | fi |
102 | 102 | ||
103 | if [ "$RES_SMIMEA_TRUSTLIST" != "$TEST_SMIMEA" ] | 103 | if [ "$RES_SMIMEA_TRANSLATION" != "$TEST_SMIMEA" ] |
104 | then | 104 | then |
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 |
107 | else | 107 | else |
108 | echo "Resolved to proper SMIMEA, got '$RES_SMIMEA_TRUSTLIST'." | 108 | echo "Resolved to proper SMIMEA, got '$RES_SMIMEA_TRANSLATION'." |
109 | fi | 109 | fi |
110 | 110 | ||
111 | gnunet-namestore -p -z $MY_EGO -a -n $LABEL -t BOX -V "49152 49152 256 10 1 \"thisisnotavaliduri\"" -e never -c test_gns_lookup.conf | 111 | gnunet-namestore -p -z $MY_EGO -a -n $LABEL -t BOX -V "49152 49152 256 10 1 \"thisisnotavaliduri\"" -e never -c test_gns_lookup.conf |