From cfc7801cf630e4090c038269e63ef8742cfcc7e5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 14 Apr 2022 09:50:15 +0200 Subject: tests: select concrete version Selecting the latest version doesn't make sense anymore with the new multi-provider selection that results from policy discovery. --- src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh | 2 +- src/cli/test_iban.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cli') diff --git a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh index f67fa89..3a62704 100755 --- 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 index fcf932f..523e047 100755 --- 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` -- cgit v1.2.3