diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-21 11:03:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-01-21 11:03:16 +0100 |
commit | d8ef0458721116c268af7a5fc69f7f7ac3b14385 (patch) | |
tree | 684fe09164cc839d5d41757b8bc41fc0ebdf4678 /src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh | |
parent | c00d1cb084c7c84a74ae39b1848f15c159c58f80 (diff) | |
download | anastasis-d8ef0458721116c268af7a5fc69f7f7ac3b14385.tar.gz anastasis-d8ef0458721116c268af7a5fc69f7f7ac3b14385.tar.bz2 anastasis-d8ef0458721116c268af7a5fc69f7f7ac3b14385.zip |
bugfixes in test logic, adding new test without payment
Diffstat (limited to 'src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh')
-rwxr-xr-x | src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh | 9 |
1 files changed, 6 insertions, 3 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 d65020e..be04f96 100755 --- a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh +++ b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh @@ -422,9 +422,12 @@ then fi echo " OK" -echo -n "Selecting default secret" -mv $R2FILE $R1FILE -anastasis-reducer next < $R1FILE > $R2FILE +echo -n "Adding provider (to ensure it is loaded)" +anastasis-reducer -a '{"provider_url" : "http://localhost:8086/" }' add_provider < $R2FILE > $R1FILE +echo " OK" + +echo -n "Selecting secret to recover" +anastasis-reducer -a '{"version": 0, "mask": 0, "provider_url" : "http://localhost:8086/" }' next < $R1FILE > $R2FILE STATE=`jq -r -e .recovery_state < $R2FILE` if test "$STATE" != "CHALLENGE_SELECTING" |