commit cfc7801cf630e4090c038269e63ef8742cfcc7e5
parent 405abf074021f448f1b0d12758a6711b8b7a14bc
Author: Florian Dold <florian@dold.me>
Date: Thu, 14 Apr 2022 09:50:15 +0200
tests: select concrete version
Selecting the latest version doesn't make sense anymore with the new
multi-provider selection that results from policy discovery.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
@@ -428,7 +428,7 @@ anastasis-reducer -a '{"provider_url" : "http://localhost:8086/" }' add_provider
echo " OK"
echo -n "Selecting secret to recover"
-anastasis-reducer -a '{"attribute_mask": 0, "providers" : [ { "version": 0, "url" : "http://localhost:8086/" } ] }' select_version < $R1FILE > $R2FILE
+anastasis-reducer -a '{"attribute_mask": 0, "providers" : [ { "version": 1, "url" : "http://localhost:8086/" } ] }' select_version < $R1FILE > $R2FILE
STATE=`jq -r -e .recovery_state < $R2FILE`
if test "$STATE" != "CHALLENGE_SELECTING"
diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh
@@ -390,7 +390,7 @@ anastasis-reducer -a '{"provider_url" : "http://localhost:8086/" }' add_provider
echo " OK"
echo -n "Selecting secret to recover"
-anastasis-reducer -a '{"attribute_mask": 0, "providers" : [ { "version": 0, "url" : "http://localhost:8086/" } ] }' \
+anastasis-reducer -a '{"attribute_mask": 0, "providers" : [ { "version": 1, "url" : "http://localhost:8086/" } ] }' \
select_version < $R1FILE > $R2FILE 2>> test_reducer.err
STATE=`jq -r -e .recovery_state < $R2FILE`