[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 07/08: -implement missing testing checks
From: |
gnunet |
Subject: |
[taler-exchange] 07/08: -implement missing testing checks |
Date: |
Sun, 20 Nov 2022 21:55:30 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit e033f82dc0d54a533af5989094345aa56137050e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Nov 20 21:53:32 2022 +0100
-implement missing testing checks
---
src/testing/testing_api_cmd_common.c | 39 ++++++++++++++++++++++++++++++++----
1 file changed, 35 insertions(+), 4 deletions(-)
diff --git a/src/testing/testing_api_cmd_common.c
b/src/testing/testing_api_cmd_common.c
index bb0eb3f0..91138f36 100644
--- a/src/testing/testing_api_cmd_common.c
+++ b/src/testing/testing_api_cmd_common.c
@@ -90,8 +90,7 @@ TALER_TESTING_history_entry_cmp (
(GNUNET_TIME_timestamp_cmp (
h1->details.history_details.request_timestamp,
==,
- h2->details.history_details.
- request_timestamp)) &&
+ h2->details.history_details.request_timestamp)) &&
(0 ==
GNUNET_memcmp (&h1->details.history_details.reserve_sig,
&h2->details.history_details.reserve_sig)) )
@@ -131,10 +130,42 @@ TALER_TESTING_history_entry_cmp (
return 0;
return 1;
case TALER_EXCHANGE_RTT_OPEN:
- // FIXME: verify response...
+ if ( (0 ==
+ TALER_amount_cmp (&h1->amount,
+ &h2->amount)) &&
+ (GNUNET_TIME_timestamp_cmp (
+ h1->details.open_request.request_timestamp,
+ ==,
+ h2->details.open_request.request_timestamp)) &&
+ (GNUNET_TIME_timestamp_cmp (
+ h1->details.open_request.reserve_expiration,
+ ==,
+ h2->details.open_request.reserve_expiration)) &&
+ (h1->details.open_request.purse_limit ==
+ h2->details.open_request.purse_limit) &&
+ (0 ==
+ TALER_amount_cmp (&h1->details.open_request.reserve_payment,
+ &h2->details.open_request.reserve_payment)) &&
+ (0 ==
+ GNUNET_memcmp (&h1->details.open_request.reserve_sig,
+ &h2->details.open_request.reserve_sig)) )
+ return 0;
return 1;
case TALER_EXCHANGE_RTT_CLOSE:
- // FIXME: verify response...
+ if ( (0 ==
+ TALER_amount_cmp (&h1->amount,
+ &h2->amount)) &&
+ (GNUNET_TIME_timestamp_cmp (
+ h1->details.close_request.request_timestamp,
+ ==,
+ h2->details.close_request.request_timestamp)) &&
+ (0 ==
+ GNUNET_memcmp (&h1->details.close_request.target_account_h_payto,
+ &h2->details.close_request.target_account_h_payto)) &&
+ (0 ==
+ GNUNET_memcmp (&h1->details.close_request.reserve_sig,
+ &h2->details.close_request.reserve_sig)) )
+ return 0;
return 1;
}
GNUNET_assert (0);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] branch master updated (496a13f3 -> a400aa0f), gnunet, 2022/11/20
- [taler-exchange] 04/08: -fix build issues, gnunet, 2022/11/20
- [taler-exchange] 05/08: -more work on wirewatch revision, gnunet, 2022/11/20
- [taler-exchange] 03/08: -update testing cmd to new bank API, gnunet, 2022/11/20
- [taler-exchange] 02/08: -update testing cmd to new bank API, gnunet, 2022/11/20
- [taler-exchange] 01/08: bank API refactoring for #7276 (incomplete), gnunet, 2022/11/20
- [taler-exchange] 06/08: fix wirewatch, gnunet, 2022/11/20
- [taler-exchange] 07/08: -implement missing testing checks,
gnunet <=
- [taler-exchange] 08/08: Merge branch 'bug-7276', gnunet, 2022/11/20