diff options
Diffstat (limited to 'src/cli')
-rwxr-xr-x | src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh | 16 |
1 files changed, 16 insertions, 0 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 be04f96..43c6a4e 100755 --- a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh +++ b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh @@ -436,6 +436,22 @@ then fi echo " OK" +echo -n "Synchronizing providers" +anastasis-reducer sync_providers < $R2FILE > $R1FILE +anastasis-reducer sync_providers < $R1FILE > $R2FILE +# This one will fail, as we should now have all 3 providers +# used by the policy in sync! +anastasis-reducer sync_providers < $R2FILE > $R1FILE 2> /dev/null || true +# Note: continue with $R2FILE, the last one that was valid! + +CODE=`jq -r -e .code < $R1FILE` +if test "$CODE" != "8400" +then + exit_fail "Expected to be synced, instead the code is '$CODE'" +fi +echo " OK" + + echo -n "Running challenge logic ..." UUID0=`jq -r -e .recovery_information.challenges[0].uuid < $R2FILE` |