From 7321cac34bdc41995652d127dd99f05c34285c38 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 16 Jan 2020 18:50:31 +0100 Subject: [PATCH] Got first aggregation to pass --- doc/prebuilt | 2 +- src/lib/test-taler-exchange-aggregator-postgres.conf | 2 +- src/lib/test_taler_exchange_aggregator.c | 12 ++++++++++-- src/lib/test_taler_exchange_wirewatch.c | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/prebuilt b/doc/prebuilt index ca53235cc..934a6a183 160000 --- a/doc/prebuilt +++ b/doc/prebuilt @@ -1 +1 @@ -Subproject commit ca53235ccfa0458ebf11c204888ca370e20ec3f5 +Subproject commit 934a6a18301e81c4fd1b3a8cda2dc13dca4741cc diff --git a/src/lib/test-taler-exchange-aggregator-postgres.conf b/src/lib/test-taler-exchange-aggregator-postgres.conf index 9ee6c6b0f..25ca80fdf 100644 --- a/src/lib/test-taler-exchange-aggregator-postgres.conf +++ b/src/lib/test-taler-exchange-aggregator-postgres.conf @@ -57,7 +57,7 @@ LEGAL_RESERVE_EXPIRATION_TIME = 7 years [account-1] # What is the account URL? -URL = "payto://x-taler-bank/localhost:8082/3" +URL = "payto://x-taler-bank/localhost:8082/2" method = "x-taler-bank" WIRE_RESPONSE = ${TALER_CONFIG_HOME}/account-1.json ENABLE_DEBIT = YES diff --git a/src/lib/test_taler_exchange_aggregator.c b/src/lib/test_taler_exchange_aggregator.c index 52734a896..2b3634c78 100644 --- a/src/lib/test_taler_exchange_aggregator.c +++ b/src/lib/test_taler_exchange_aggregator.c @@ -64,7 +64,7 @@ static struct GNUNET_CRYPTO_RsaPrivateKey *coin_pk; */ static struct GNUNET_CRYPTO_RsaPublicKey *coin_pub; -#define MERCHANT_ACCOUNT "irrelevant-merchant-account-uri" +#define USER42_ACCOUNT "42" #if 0 /** @@ -912,10 +912,18 @@ run (void *cls, TALER_TESTING_cmd_insert_deposit ("do-deposit-1", &dbc, "bob", - MERCHANT_ACCOUNT, // not relevant + USER42_ACCOUNT, GNUNET_TIME_UNIT_ZERO, "EUR:1", "EUR:0.1"), + TALER_TESTING_cmd_exec_aggregator ("run-aggregator-on-deposit-1", + config_filename), + + TALER_TESTING_cmd_check_bank_transfer ("expect-deposit-1", + ec.exchange_url, + "EUR:0.89", + bc.exchange_payto, + bc.user42_payto), TALER_TESTING_cmd_end () }; diff --git a/src/lib/test_taler_exchange_wirewatch.c b/src/lib/test_taler_exchange_wirewatch.c index 1327977a7..39a222ae4 100644 --- a/src/lib/test_taler_exchange_wirewatch.c +++ b/src/lib/test_taler_exchange_wirewatch.c @@ -96,7 +96,7 @@ run (void *cls, 5), TALER_TESTING_cmd_exec_aggregator ("run-aggregator-on-expired-reserve", config_filename), - TALER_TESTING_cmd_check_bank_transfer ("check-reserve-expiration-transfer", + TALER_TESTING_cmd_check_bank_transfer ("expect-deposit-1", ec.exchange_url, "EUR:4.99", bc.exchange_payto,