add setup steps to tests
This commit is contained in:
parent
c7b5def707
commit
2a3de6555a
1
src/auditor/.gitignore
vendored
1
src/auditor/.gitignore
vendored
@ -16,3 +16,4 @@ taler-helper-auditor-reserves
|
|||||||
taler-helper-auditor-wire
|
taler-helper-auditor-wire
|
||||||
generate-auditor-basedb-prod.conf
|
generate-auditor-basedb-prod.conf
|
||||||
generate-auditor-basedb-revocation.conf
|
generate-auditor-basedb-revocation.conf
|
||||||
|
revocation-tmp-*
|
||||||
|
14
src/testing/.gitignore
vendored
14
src/testing/.gitignore
vendored
@ -8,3 +8,17 @@ test_taler_exchange_wirewatch-postgres
|
|||||||
test_exchange_api_revocation
|
test_exchange_api_revocation
|
||||||
report*
|
report*
|
||||||
test_exchange_management_api
|
test_exchange_management_api
|
||||||
|
test_exchange_api_home/.local/share/taler/crypto-eddsa/
|
||||||
|
test_exchange_api_home/.local/share/taler/crypto-rsa/
|
||||||
|
test_exchange_api_home/.local/share/taler/exchange/offline-keys/secm_tofus.priv
|
||||||
|
test_exchange_api_home/.local/share/taler/taler-helper-crypto-eddsa/
|
||||||
|
test_exchange_api_home/.local/share/taler/taler-helper-crypto-rsa/
|
||||||
|
test_exchange_api_keys_cherry_picking_home/.local/share/taler/crypto-eddsa/
|
||||||
|
test_exchange_api_keys_cherry_picking_home/.local/share/taler/exchange/offline-keys/secm_tofus.priv
|
||||||
|
test_exchange_api_keys_cherry_picking_home/.local/share/taler/taler-helper-crypto-eddsa/
|
||||||
|
test_exchange_api_keys_cherry_picking_home/.local/share/taler/taler-helper-crypto-rsa/
|
||||||
|
test_taler_exchange_httpd_home/.local/share/taler/crypto-eddsa/
|
||||||
|
test_taler_exchange_httpd_home/.local/share/taler/crypto-rsa/
|
||||||
|
test_taler_exchange_httpd_home/.local/share/taler/exchange/offline-keys/secm_tofus.priv
|
||||||
|
test_taler_exchange_httpd_home/.local/share/taler/taler-helper-crypto-eddsa/
|
||||||
|
test_taler_exchange_httpd_home/.local/share/taler/taler-helper-crypto-rsa/
|
||||||
|
@ -620,6 +620,18 @@ run (void *cls,
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct TALER_TESTING_Command commands[] = {
|
struct TALER_TESTING_Command commands[] = {
|
||||||
|
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,
|
||||||
|
5 /* FIXME: wrong number... */),
|
||||||
CMD_RUN_AUDITOR ("virgin-auditor"),
|
CMD_RUN_AUDITOR ("virgin-auditor"),
|
||||||
TALER_TESTING_cmd_exchanges_with_url ("check-exchange",
|
TALER_TESTING_cmd_exchanges_with_url ("check-exchange",
|
||||||
MHD_HTTP_OK,
|
MHD_HTTP_OK,
|
||||||
|
@ -946,6 +946,19 @@ run (void *cls,
|
|||||||
|
|
||||||
{
|
{
|
||||||
struct TALER_TESTING_Command commands[] = {
|
struct TALER_TESTING_Command commands[] = {
|
||||||
|
/* setup exchange */
|
||||||
|
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,
|
||||||
|
5 /* FIXME: wrong number... */),
|
||||||
TALER_TESTING_cmd_batch ("wire",
|
TALER_TESTING_cmd_batch ("wire",
|
||||||
wire),
|
wire),
|
||||||
TALER_TESTING_cmd_batch ("withdraw",
|
TALER_TESTING_cmd_batch ("withdraw",
|
||||||
|
@ -206,6 +206,18 @@ run (void *cls,
|
|||||||
TALER_TESTING_cmd_end ()
|
TALER_TESTING_cmd_end ()
|
||||||
};
|
};
|
||||||
struct TALER_TESTING_Command commands[] = {
|
struct TALER_TESTING_Command commands[] = {
|
||||||
|
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,
|
||||||
|
1 /* FIXME: wrong number... */),
|
||||||
TALER_TESTING_cmd_batch ("ordinary-cherry-pick",
|
TALER_TESTING_cmd_batch ("ordinary-cherry-pick",
|
||||||
ordinary_cherry_pick),
|
ordinary_cherry_pick),
|
||||||
TALER_TESTING_cmd_batch ("keys-serialization",
|
TALER_TESTING_cmd_batch ("keys-serialization",
|
||||||
|
@ -71,6 +71,18 @@ run (void *cls,
|
|||||||
struct TALER_TESTING_Interpreter *is)
|
struct TALER_TESTING_Interpreter *is)
|
||||||
{
|
{
|
||||||
struct TALER_TESTING_Command commands[] = {
|
struct TALER_TESTING_Command commands[] = {
|
||||||
|
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,
|
||||||
|
1 /* FIXME: wrong number... */),
|
||||||
TALER_TESTING_cmd_check_keys ("first-download",
|
TALER_TESTING_cmd_check_keys ("first-download",
|
||||||
1,
|
1,
|
||||||
1),
|
1),
|
||||||
|
@ -62,6 +62,18 @@ run (void *cls,
|
|||||||
struct TALER_TESTING_Interpreter *is)
|
struct TALER_TESTING_Interpreter *is)
|
||||||
{
|
{
|
||||||
struct TALER_TESTING_Command revocation[] = {
|
struct TALER_TESTING_Command revocation[] = {
|
||||||
|
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,
|
||||||
|
5 /* FIXME: wrong number... */),
|
||||||
/**
|
/**
|
||||||
* Fill reserve with EUR:10.02, as withdraw fee is 1 ct per
|
* Fill reserve with EUR:10.02, as withdraw fee is 1 ct per
|
||||||
* config.
|
* config.
|
||||||
|
@ -144,7 +144,7 @@ run (void *cls,
|
|||||||
CONFIG_FILE),
|
CONFIG_FILE),
|
||||||
TALER_TESTING_cmd_check_keys_pull_all_keys ("refetch /keys",
|
TALER_TESTING_cmd_check_keys_pull_all_keys ("refetch /keys",
|
||||||
1,
|
1,
|
||||||
5),
|
5 /* FIXME: wrong number... */),
|
||||||
TALER_TESTING_cmd_end ()
|
TALER_TESTING_cmd_end ()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -96,7 +96,6 @@ run (void *cls,
|
|||||||
struct TALER_TESTING_Interpreter *is)
|
struct TALER_TESTING_Interpreter *is)
|
||||||
{
|
{
|
||||||
struct TALER_TESTING_Command all[] = {
|
struct TALER_TESTING_Command all[] = {
|
||||||
|
|
||||||
// check no aggregation happens on a empty database
|
// check no aggregation happens on a empty database
|
||||||
CMD_EXEC_AGGREGATOR ("run-aggregator-on-empty-db",
|
CMD_EXEC_AGGREGATOR ("run-aggregator-on-empty-db",
|
||||||
config_filename),
|
config_filename),
|
||||||
@ -550,22 +549,23 @@ main (int argc,
|
|||||||
|
|
||||||
TALER_TESTING_cleanup_files (config_filename);
|
TALER_TESTING_cleanup_files (config_filename);
|
||||||
|
|
||||||
if (GNUNET_OK != TALER_TESTING_prepare_exchange (config_filename,
|
if (GNUNET_OK !=
|
||||||
GNUNET_YES,
|
TALER_TESTING_prepare_exchange (config_filename,
|
||||||
&ec))
|
GNUNET_YES,
|
||||||
|
&ec))
|
||||||
{
|
{
|
||||||
TALER_LOG_WARNING ("Could not prepare the exchange.\n");
|
TALER_LOG_WARNING ("Could not prepare the exchange.\n");
|
||||||
return 77;
|
return 77;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GNUNET_OK != TALER_TESTING_prepare_fakebank (config_filename,
|
if (GNUNET_OK !=
|
||||||
"exchange-account-1",
|
TALER_TESTING_prepare_fakebank (config_filename,
|
||||||
&bc))
|
"exchange-account-1",
|
||||||
|
&bc))
|
||||||
{
|
{
|
||||||
TALER_LOG_WARNING ("Could not prepare the fakebank\n");
|
TALER_LOG_WARNING ("Could not prepare the fakebank\n");
|
||||||
return 77;
|
return 77;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
GNUNET_CONFIGURATION_parse_and_run (config_filename,
|
GNUNET_CONFIGURATION_parse_and_run (config_filename,
|
||||||
&prepare_database,
|
&prepare_database,
|
||||||
|
@ -82,6 +82,18 @@ run (void *cls,
|
|||||||
struct TALER_TESTING_Interpreter *is)
|
struct TALER_TESTING_Interpreter *is)
|
||||||
{
|
{
|
||||||
struct TALER_TESTING_Command all[] = {
|
struct TALER_TESTING_Command all[] = {
|
||||||
|
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_filename),
|
||||||
|
TALER_TESTING_cmd_check_keys_pull_all_keys ("refetch /keys",
|
||||||
|
1,
|
||||||
|
5 /* FIXME: wrong number... */),
|
||||||
TALER_TESTING_cmd_check_bank_empty ("expect-empty-transactions-on-start"),
|
TALER_TESTING_cmd_check_bank_empty ("expect-empty-transactions-on-start"),
|
||||||
CMD_EXEC_AGGREGATOR ("run-aggregator-on-empty"),
|
CMD_EXEC_AGGREGATOR ("run-aggregator-on-empty"),
|
||||||
TALER_TESTING_cmd_exec_wirewatch ("run-wirewatch-on-empty",
|
TALER_TESTING_cmd_exec_wirewatch ("run-wirewatch-on-empty",
|
||||||
|
Loading…
Reference in New Issue
Block a user