summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-11 23:46:47 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-11 23:46:47 +0100
commitdcb48238641e7d82f5e7c1c0e3e0d029765fffe5 (patch)
treeb62a1ffc12e7adc29076c1c9a74e7653382abb18 /src/testing
parentcdb3274dad03f6362e1e20a510bac950eef1628d (diff)
downloadmerchant-dcb48238641e7d82f5e7c1c0e3e0d029765fffe5.tar.gz
merchant-dcb48238641e7d82f5e7c1c0e3e0d029765fffe5.tar.bz2
merchant-dcb48238641e7d82f5e7c1c0e3e0d029765fffe5.zip
add setup steps to tests
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/test_merchant_api.c15
-rw-r--r--src/testing/test_merchant_api_twisted.c13
2 files changed, 27 insertions, 1 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c
index a5f0889d..dcf2862e 100644
--- a/src/testing/test_merchant_api.c
+++ b/src/testing/test_merchant_api.c
@@ -1131,6 +1131,19 @@ run (void *cls,
};
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_batch ("orders-id",
get_private_order_id),
TALER_TESTING_cmd_config ("config",
@@ -1410,7 +1423,7 @@ run (void *cls,
TALER_TESTING_cmd_batch ("tip",
tip),
/**
- * End the suite.
+ * End the suite.
*/
TALER_TESTING_cmd_end ()
};
diff --git a/src/testing/test_merchant_api_twisted.c b/src/testing/test_merchant_api_twisted.c
index df3650a4..95dd50ae 100644
--- a/src/testing/test_merchant_api_twisted.c
+++ b/src/testing/test_merchant_api_twisted.c
@@ -321,6 +321,19 @@ run (void *cls,
};
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",
twister_merchant_url,
"default",