summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-03-26 11:40:17 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-03-26 11:40:17 +0200
commit5ac75e2ec596ea05b6d3b9912ac9f9b1ab9a041e (patch)
treef19ad58028c9c737e2ae1a7ac2b28c73ac0b8d15
parentf73cf1fbd129c25370ed123e0e09042f4d95648d (diff)
downloadmerchant-5ac75e2ec596ea05b6d3b9912ac9f9b1ab9a041e.tar.gz
merchant-5ac75e2ec596ea05b6d3b9912ac9f9b1ab9a041e.tar.bz2
merchant-5ac75e2ec596ea05b6d3b9912ac9f9b1ab9a041e.zip
check against bad payment_redirect_url.
-rw-r--r--src/lib/test_merchant_api_twisted.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/test_merchant_api_twisted.c b/src/lib/test_merchant_api_twisted.c
index 14476669..b2830785 100644
--- a/src/lib/test_merchant_api_twisted.c
+++ b/src/lib/test_merchant_api_twisted.c
@@ -220,6 +220,22 @@ run (void *cls,
"proposal-for-check-payment",
GNUNET_SYSERR), // any response != 200 gives "syserr"
+ TALER_TESTING_cmd_modify_object ("hack-check-payment",
+ PROXY_MERCHANT_CONFIG_FILE,
+ "paid",
+ "non-boolean"),
+
+ TALER_TESTING_cmd_delete_object ("hack-check-payment-0",
+ PROXY_MERCHANT_CONFIG_FILE,
+ "payment_redirect_url"),
+ TALER_TESTING_cmd_check_payment
+ ("check-payment-fail-invalid",
+ twister_merchant_url,
+ is->ctx,
+ 0,
+ "proposal-for-check-payment",
+ GNUNET_SYSERR),
+
TALER_TESTING_cmd_end (),
/**** Covering /proposal lib ****/