summaryrefslogtreecommitdiff
path: root/src/lib/test_merchant_api_twisted.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/test_merchant_api_twisted.c')
-rw-r--r--src/lib/test_merchant_api_twisted.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/test_merchant_api_twisted.c b/src/lib/test_merchant_api_twisted.c
index 8c02cb44..3ee5042c 100644
--- a/src/lib/test_merchant_api_twisted.c
+++ b/src/lib/test_merchant_api_twisted.c
@@ -261,7 +261,7 @@ run (void *cls,
"order_id"),
TALER_TESTING_cmd_proposal
- ("create-proposal-1",
+ ("create-proposal-3",
twister_merchant_url,
is->ctx,
0,
@@ -281,6 +281,19 @@ run (void *cls,
\"value\":\"{EUR:5}\"} ] }",
NULL),
+
+ /**
+ * Cause a 404 Not Found response code.
+ */
+ TALER_TESTING_cmd_proposal
+ ("create-proposal-4",
+ twister_merchant_url,
+ is->ctx,
+ MHD_HTTP_NOT_FOUND,
+ "{\"amount\":\"EUR:5\",\
+ \"summary\": \"merchant-lib testcase\"}",
+ "non-existent-instance"),
+
/**** Covering /history lib ****/
/**