[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: enhance tests
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: enhance tests |
Date: |
Tue, 23 Feb 2021 10:38:00 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 6bbb7c8 enhance tests
6bbb7c8 is described below
commit 6bbb7c869a5eab83320216ab0c6278f6402f778b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Feb 23 10:37:58 2021 +0100
enhance tests
---
src/cli/test_anastasis_reducer_select_continent.sh | 8 +++++++-
src/cli/test_anastasis_reducer_select_country.sh | 8 ++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/cli/test_anastasis_reducer_select_continent.sh
b/src/cli/test_anastasis_reducer_select_continent.sh
index daa11bd..4cd8a84 100755
--- a/src/cli/test_anastasis_reducer_select_continent.sh
+++ b/src/cli/test_anastasis_reducer_select_continent.sh
@@ -60,7 +60,13 @@ then
fi
echo " OK"
-# Test continent selection in a recovery state
+
+echo -n "Test invalid continent selection ..."
+anastasis-reducer -a '{"continent": "Pangaia"}' select_continent
resources/00-recovery.json $TFILE 2> /dev/null \
+ && exit_fail "Expected selection to fail. Check '$TFILE'"
+
+echo " OK"
+
echo -n "Test continent selection in a recovery state ..."
anastasis-reducer -a '{"continent": "Testcontinent"}' select_continent
resources/00-recovery.json $TFILE
diff --git a/src/cli/test_anastasis_reducer_select_country.sh
b/src/cli/test_anastasis_reducer_select_country.sh
index cf70ee2..2d4e22f 100755
--- a/src/cli/test_anastasis_reducer_select_country.sh
+++ b/src/cli/test_anastasis_reducer_select_country.sh
@@ -112,6 +112,7 @@ anastasis-reducer -a '{"continent": "Europe"}'
select_continent resources/01-rec
echo -n "."
+
STATE=`jq -r -e .recovery_state < $TFILE`
if test "$STATE" != "COUNTRY_SELECTING"
then
@@ -135,6 +136,13 @@ fi
echo " OK"
+echo -n "Test invalid continent re-selection ..."
+anastasis-reducer -a '{"continent": "Pangaia"}' select_continent
resources/00-recovery.json $TFILE 2> /dev/null \
+ && exit_fail "Expected selection to fail. Check '$TFILE'"
+
+echo " OK"
+
+
echo -n "Test NX country selection ..."
anastasis-reducer -a \
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: enhance tests,
gnunet <=