summaryrefslogtreecommitdiff
path: root/src/include/taler_testing_lib.h
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2020-01-16 18:37:07 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2020-01-16 18:38:04 +0100
commit1e26fc824c5e12460159e203db7fd686ab6b8bd9 (patch)
tree6dcbd4f64312bb98da477655f727a210792558ef /src/include/taler_testing_lib.h
parent23507d8565334594bb397a08d2fd853f2b96d776 (diff)
downloadexchange-1e26fc824c5e12460159e203db7fd686ab6b8bd9.tar.gz
exchange-1e26fc824c5e12460159e203db7fd686ab6b8bd9.tar.bz2
exchange-1e26fc824c5e12460159e203db7fd686ab6b8bd9.zip
Finishing CMD to insert denomination and deposit into database.
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r--src/include/taler_testing_lib.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 48214aed5..9b0ca422c 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -94,6 +94,22 @@ struct TALER_TESTING_ExchangeConfiguration
};
+/**
+ * Connection to the database: aggregates
+ * plugin and session handles.
+ */
+struct TALER_TESTING_DatabaseConnection
+{
+ /**
+ * Database plugin.
+ */
+ struct TALER_EXCHANGEDB_Plugin *plugin;
+
+ /**
+ * Session with the database.
+ */
+ struct TALER_EXCHANGEDB_Session *session;
+};
/**
* Prepare launching an exchange. Checks that the configured
@@ -1667,7 +1683,7 @@ TALER_TESTING_cmd_connect_with_state (const char *label,
* Make the "insert-deposit" CMD.
*
* @param label command label.
- * @param config_filename configuration filename.
+ * @param dbc collects plugin and session handles
* @param merchant_name Human-readable name of the merchant.
* @param merchant_account value indicating the merchant at its bank.
* @param wire_deadline point in time where the aggregator should have
@@ -1678,10 +1694,10 @@ TALER_TESTING_cmd_connect_with_state (const char *label,
*/
struct TALER_TESTING_Command
TALER_TESTING_cmd_insert_deposit (const char *label,
- const char *config_filename,
+ const struct TALER_TESTING_DatabaseConnection *dbc,
const char *merchant_name,
const char *merchant_account,
- struct GNUNET_TIME_Absolute wire_deadline,
+ struct GNUNET_TIME_Relative wire_deadline,
const char *amount_with_fee,
const char *deposit_fee);