sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit bff2a8b7a3c21ecdc5f522a89f62e85fd8ba9d78
parent 219e4be1e65ca30eec5546679161e59d5087d65f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 11 Dec 2020 23:48:21 +0100

add setup steps to tests

Diffstat:
Msrc/sync/sync-httpd.c | 3+--
Msrc/testing/.gitignore | 5+++++
Msrc/testing/test_sync_api.c | 13+++++++++++++
3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/src/sync/sync-httpd.c b/src/sync/sync-httpd.c @@ -325,8 +325,7 @@ url_handler (void *cls, /** - * Shutdown task (magically invoked when the application is being - * quit) + * Shutdown task. Invoked when the application is being terminated. * * @param cls NULL */ diff --git a/src/testing/.gitignore b/src/testing/.gitignore @@ -1,3 +1,8 @@ test_sync_api auditor.in test_sync_api_home/.local/share/taler/exchange/live-keys/ +test_sync_api_home/.local/share/taler/crypto-eddsa/ +test_sync_api_home/.local/share/taler/crypto-rsa/ +test_sync_api_home/.local/share/taler/exchange/offline-keys/secm_tofus.priv +test_sync_api_home/.local/share/taler/taler-helper-crypto-eddsa/ +test_sync_api_home/.local/share/taler/taler-helper-crypto-rsa/ diff --git a/src/testing/test_sync_api.c b/src/testing/test_sync_api.c @@ -152,6 +152,19 @@ run (void *cls, struct TALER_TESTING_Interpreter *is) { struct TALER_TESTING_Command commands[] = { + /* general setup */ + TALER_TESTING_cmd_auditor_add ("add-auditor-OK", + MHD_HTTP_NO_CONTENT, + false), + TALER_TESTING_cmd_wire_add ("add-wire-account", + "payto://x-taler-bank/localhost/2", + MHD_HTTP_NO_CONTENT, + false), + TALER_TESTING_cmd_exec_offline_sign_keys ("offline-sign-future-keys", + CONFIG_FILE), + TALER_TESTING_cmd_check_keys_pull_all_keys ("refetch /keys", + 1, + 20 /* FIXME: wrong number... */), TALER_TESTING_cmd_merchant_post_instances ("instance-create-default", merchant_url, "default",