bank API test: make payto URI use receiver-name, according to standard

This commit is contained in:
Florian Dold 2020-06-13 20:49:04 +05:30
parent 1039a1c2f4
commit 4f5df0c9e3
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 19 additions and 13 deletions

View File

@ -4,7 +4,7 @@
currency = KUDOS currency = KUDOS
[exchange-account-2] [exchange-account-2]
PAYTO_URI = payto://iban/BIC/ES9121000418450200051332?name=Exchange PAYTO_URI = payto://iban/BIC/ES9121000418450200051332?receiver-name=Exchange
METHOD = iban METHOD = iban
WIRE_GATEWAY_URL = http://localhost:5001/facades/my-facade/taler/ WIRE_GATEWAY_URL = http://localhost:5001/facades/my-facade/taler/
WIRE_GATEWAY_AUTH_METHOD = basic WIRE_GATEWAY_AUTH_METHOD = basic

View File

@ -222,6 +222,7 @@ TALER_TESTING_run_libeufin (const struct TALER_TESTING_BankConfiguration *bc)
return ret; return ret;
} }
/** /**
* Start the (Python) bank process. Assume the port * Start the (Python) bank process. Assume the port
* is available and the database is clean. Use the "prepare * is available and the database is clean. Use the "prepare
@ -338,6 +339,7 @@ TALER_TESTING_run_bank (const char *config_filename,
} }
/** /**
* Prepare the Nexus execution. Check if the port is available * Prepare the Nexus execution. Check if the port is available
* and delete old database. * and delete old database.
@ -414,7 +416,8 @@ TALER_TESTING_prepare_nexus (const char *config_filename,
/* DB preparation */ /* DB preparation */
if (GNUNET_YES == reset_db) if (GNUNET_YES == reset_db)
{ {
if (0 != system ("rm -f /tmp/nexus-exchange-test.sqlite3 && rm -f /tmp/sandbox-exchange-test.sqlite3")) if (0 != system (
"rm -f /tmp/nexus-exchange-test.sqlite3 && rm -f /tmp/sandbox-exchange-test.sqlite3"))
{ {
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to invoke db-removal command.\n"); "Failed to invoke db-removal command.\n");
@ -435,8 +438,10 @@ TALER_TESTING_prepare_nexus (const char *config_filename,
} }
GNUNET_CONFIGURATION_destroy (cfg); GNUNET_CONFIGURATION_destroy (cfg);
bc->exchange_payto = exchange_payto_uri; bc->exchange_payto = exchange_payto_uri;
bc->user42_payto = "payto://iban/BIC/FR7630006000011234567890189?name=User42"; bc->user42_payto =
bc->user43_payto = "payto://iban/BIC/GB33BUKB20201555555555?name=User43"; "payto://iban/BIC/FR7630006000011234567890189?receiver-name=User42";
bc->user43_payto =
"payto://iban/BIC/GB33BUKB20201555555555?receiver-name=User43";
GNUNET_log (GNUNET_ERROR_TYPE_INFO, GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Relying on nexus %s on port %u\n", "Relying on nexus %s on port %u\n",
bc->exchange_auth.wire_gateway_url, bc->exchange_auth.wire_gateway_url,
@ -450,6 +455,7 @@ TALER_TESTING_prepare_nexus (const char *config_filename,
return GNUNET_OK; return GNUNET_OK;
} }
/** /**
* Prepare the bank execution. Check if the port is available * Prepare the bank execution. Check if the port is available
* and reset database. * and reset database.