diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-01 19:47:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-01 19:47:01 +0100 |
commit | d3184e04e2a604673655899989707664736b3468 (patch) | |
tree | 7ab1235a0c99c7f120b414aece1e85a4e0058ca4 /src/testing/test_exchange_management_api.c | |
parent | 06b8ed9ba8ed30181285b6c75089150d2662b366 (diff) | |
download | exchange-d3184e04e2a604673655899989707664736b3468.tar.xz |
add logic to launch crypto helpers as part of tests
Diffstat (limited to 'src/testing/test_exchange_management_api.c')
-rw-r--r-- | src/testing/test_exchange_management_api.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/testing/test_exchange_management_api.c b/src/testing/test_exchange_management_api.c index 821ac1978..e44d5c8cd 100644 --- a/src/testing/test_exchange_management_api.c +++ b/src/testing/test_exchange_management_api.c @@ -47,8 +47,7 @@ static struct TALER_TESTING_BankConfiguration bc; /** - * Main function that will tell the interpreter what commands to - * run. + * Main function that will tell the interpreter what commands to run. * * @param cls closure * @param is interpreter we use to run commands @@ -58,9 +57,31 @@ run (void *cls, struct TALER_TESTING_Interpreter *is) { struct TALER_TESTING_Command commands[] = { +#if FIXME_MIGRATION_DONE + /* this currently fails, because the + auditor is already added by the test setup logic */ + TALER_TESTING_cmd_auditor_del ("del-auditor-NOT-FOUND", + MHD_HTTP_NOT_FOUND, + false), +#endif + TALER_TESTING_cmd_auditor_add ("add-auditor-BAD-SIG", + MHD_HTTP_FORBIDDEN, + true), TALER_TESTING_cmd_auditor_add ("add-auditor-OK", MHD_HTTP_NO_CONTENT, false), + TALER_TESTING_cmd_auditor_add ("add-auditor-OK-idempotent", + MHD_HTTP_NO_CONTENT, + false), + TALER_TESTING_cmd_auditor_del ("del-auditor-BAD-SIG", + MHD_HTTP_FORBIDDEN, + true), + TALER_TESTING_cmd_auditor_del ("del-auditor-OK", + MHD_HTTP_NO_CONTENT, + false), + TALER_TESTING_cmd_auditor_del ("del-auditor-IDEMPOTENT", + MHD_HTTP_NO_CONTENT, + false), TALER_TESTING_cmd_end () }; @@ -91,7 +112,7 @@ main (int argc, * fetches the port number from config in order to see * if it's available. */ switch (TALER_TESTING_prepare_exchange (CONFIG_FILE, - GNUNET_YES, + GNUNET_YES, /* reset DB? */ &ec)) { case GNUNET_SYSERR: |