diff options
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r-- | src/testing/test_merchant_api.c | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c index 1a074240..0d4bc471 100644 --- a/src/testing/test_merchant_api.c +++ b/src/testing/test_merchant_api.c @@ -108,6 +108,15 @@ static struct GNUNET_OS_Process *merchantd; */ #define MERCHANT_ACCOUNT_NAME "3" +/** + * Payto URIs to use for testing accounts on the merchant. + */ +const char *payto_uris[] = { + PAYTO_I1, + "payto://sepa/CH9300762011623852957" /* Just for testing account + inactivation. */ +}; + /** * Execute the taler-exchange-wirewatch command with @@ -423,6 +432,13 @@ run (void *cls, merchant_url, "1", MHD_HTTP_NO_CONTENT), + TALER_TESTING_cmd_merchant_post_orders ("create-proposal-no-id", + merchant_url, + MHD_HTTP_OK, + NULL, + GNUNET_TIME_UNIT_ZERO_ABS, + GNUNET_TIME_UNIT_FOREVER_ABS, + "EUR:5.0"), TALER_TESTING_cmd_check_bank_empty ("check_bank_empty-2"), TALER_TESTING_cmd_end () }; @@ -969,11 +985,6 @@ run (void *cls, TALER_TESTING_cmd_end () }; - const char *payto_uris[] = { - PAYTO_I1, - "payto://sepa/CH9300762011623852957" /* Just for testing account - inactivation. */ - }; struct TALER_TESTING_Command commands[] = { TALER_TESTING_cmd_batch ("orders-id", get_private_order_id), @@ -1188,6 +1199,18 @@ run (void *cls, GNUNET_TIME_UNIT_MINUTES, 2, MHD_HTTP_NO_CONTENT), + TALER_TESTING_cmd_merchant_lock_product ("lock-product-nx", + merchant_url, + "product-nx", + GNUNET_TIME_UNIT_MINUTES, + 2, + MHD_HTTP_NOT_FOUND), + TALER_TESTING_cmd_merchant_lock_product ("lock-product-too-much", + merchant_url, + "product-2", + GNUNET_TIME_UNIT_MINUTES, + 39, + MHD_HTTP_GONE), TALER_TESTING_cmd_merchant_delete_product ("delete-product-locked", merchant_url, "product-2", |