diff options
author | Florian Dold <florian@dold.me> | 2022-04-14 09:50:15 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-04-14 09:50:15 +0200 |
commit | cfc7801cf630e4090c038269e63ef8742cfcc7e5 (patch) | |
tree | a04917f715be1101844b8f23075bda97f26f8318 | |
parent | 405abf074021f448f1b0d12758a6711b8b7a14bc (diff) | |
download | anastasis-cfc7801cf630e4090c038269e63ef8742cfcc7e5.tar.gz anastasis-cfc7801cf630e4090c038269e63ef8742cfcc7e5.tar.bz2 anastasis-cfc7801cf630e4090c038269e63ef8742cfcc7e5.zip |
tests: select concrete version
Selecting the latest version doesn't make sense anymore with the new
multi-provider selection that results from policy discovery.
-rwxr-xr-x | src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh | 2 | ||||
-rwxr-xr-x | src/cli/test_iban.sh | 2 |
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 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` |