extend test to also test insert/delete exchange operation
This commit is contained in:
parent
b39c3f9ca6
commit
126e3911ec
@ -172,6 +172,15 @@ run (void *cls)
|
|||||||
GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS,
|
GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS,
|
||||||
4));
|
4));
|
||||||
|
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
|
"Test: auditor_insert_exchange\n");
|
||||||
|
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
||||||
|
plugin->insert_exchange (plugin->cls,
|
||||||
|
session,
|
||||||
|
&master_pub,
|
||||||
|
"https://exchange/"));
|
||||||
|
|
||||||
|
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
"Test: insert_denomination_info\n");
|
"Test: insert_denomination_info\n");
|
||||||
|
|
||||||
@ -724,7 +733,6 @@ run (void *cls)
|
|||||||
&reserve_pub,
|
&reserve_pub,
|
||||||
&master_pub));
|
&master_pub));
|
||||||
|
|
||||||
|
|
||||||
FAILIF (0 != TALER_amount_cmp (&rbalance2,
|
FAILIF (0 != TALER_amount_cmp (&rbalance2,
|
||||||
&rbalance));
|
&rbalance));
|
||||||
|
|
||||||
@ -742,6 +750,21 @@ drop:
|
|||||||
if (NULL != session)
|
if (NULL != session)
|
||||||
plugin->rollback (plugin->cls,
|
plugin->rollback (plugin->cls,
|
||||||
session);
|
session);
|
||||||
|
|
||||||
|
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
|
"Test: auditor_delete_exchange\n");
|
||||||
|
FAILIF (GNUNET_OK !=
|
||||||
|
plugin->start (plugin->cls,
|
||||||
|
session));
|
||||||
|
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
||||||
|
plugin->delete_exchange (plugin->cls,
|
||||||
|
session,
|
||||||
|
&master_pub));
|
||||||
|
FAILIF (0 >
|
||||||
|
plugin->commit (plugin->cls,
|
||||||
|
session));
|
||||||
|
|
||||||
GNUNET_break (GNUNET_OK ==
|
GNUNET_break (GNUNET_OK ==
|
||||||
plugin->drop_tables (plugin->cls));
|
plugin->drop_tables (plugin->cls));
|
||||||
unload:
|
unload:
|
||||||
|
Loading…
Reference in New Issue
Block a user