summaryrefslogtreecommitdiff
path: root/src/backenddb/test_merchantdb.c
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-04-24 14:59:53 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-04-24 14:59:53 +0200
commitc834ea48dd18334d476067a99720b80fd37680ee (patch)
tree667b18a1df66e65912aa3ea1bb7b243a1a023aa2 /src/backenddb/test_merchantdb.c
parent70765db54c9fd0690e9a0865b244a3c0e5014ff4 (diff)
downloadmerchant-c834ea48dd18334d476067a99720b80fd37680ee.tar.gz
merchant-c834ea48dd18334d476067a99720b80fd37680ee.tar.bz2
merchant-c834ea48dd18334d476067a99720b80fd37680ee.zip
add cherry-pick like query used in /history. This API
is used when the backoffice user enters the exact order id into the form.
Diffstat (limited to 'src/backenddb/test_merchantdb.c')
-rw-r--r--src/backenddb/test_merchantdb.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index c65f8004..011ec9ea 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -376,13 +376,20 @@ run (void *cls)
FAILIF (GNUNET_OK !=
plugin->find_proposal_data (plugin->cls,
- &out, // plain data
+ &out,
order_id,
&merchant_pub));
FAILIF (GNUNET_OK !=
+ plugin->find_proposal_data_history (plugin->cls,
+ order_id,
+ &merchant_pub,
+ pd_cb,
+ NULL));
+
+ FAILIF (GNUNET_OK !=
plugin->find_proposal_data_from_hash (plugin->cls,
- &out, // plain data
+ &out,
&h_proposal_data2,
&merchant_pub));
FAILIF (1 !=