summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-31 20:45:26 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-31 20:45:26 +0200
commitbd9eed9ddec559375ab2b54af3e25c0189efd5bf (patch)
tree780ff7930c684a7594dd204f21f79220e740d56b
parent552e5882589fe22838bd2519a2491d4b4d2cdce3 (diff)
downloadmerchant-bd9eed9ddec559375ab2b54af3e25c0189efd5bf.tar.gz
merchant-bd9eed9ddec559375ab2b54af3e25c0189efd5bf.tar.bz2
merchant-bd9eed9ddec559375ab2b54af3e25c0189efd5bf.zip
comment out /track/deposit test from marcello, as code is incomplete
-rw-r--r--src/lib/merchant_api_track.c7
-rw-r--r--src/lib/test_merchant_api.c6
2 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/merchant_api_track.c b/src/lib/merchant_api_track.c
index 118da638..b0fd5745 100644
--- a/src/lib/merchant_api_track.c
+++ b/src/lib/merchant_api_track.c
@@ -93,13 +93,15 @@ handle_trackdeposit_finished (void *cls,
case MHD_HTTP_OK:
{
/* Work out argument for external callback from the body .. */
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "200 returned from /track/deposit");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "200 returned from /track/deposit\n");
}
break;
case MHD_HTTP_NOT_FOUND:
/* Nothing really to verify, this should never
happen, we should pass the JSON reply to the application */
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "track deposit URI not found");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "track deposit URI not found\n");
break;
case MHD_HTTP_INTERNAL_SERVER_ERROR:
/* Server had an internal issue; we should retry, but this API
@@ -166,6 +168,7 @@ TALER_MERCHANT_track_deposit (struct GNUNET_CURL_Context *ctx,
return tdo;
}
+
/**
* Cancel a /track/deposit request. This function cannot be used
* on a request handle if a response is already served for it.
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index 6e357c6a..34efb37f 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -1265,7 +1265,7 @@ interpreter_run (void *cls)
return;
case OC_TRACK_DEPOSIT:
TALER_MERCHANT_track_deposit (ctx,
- MERCHANT_URI "/track/deposit",
+ MERCHANT_URI "track/deposit",
cmd->details.track_deposit.wtid,
EXCHANGE_URI,
track_deposit_cb,
@@ -1478,14 +1478,14 @@ run (void *cls)
struct InterpreterState *is;
static struct Command commands[] =
{
-
+#if NEW_MARCELLO_CODE
{ .oc = OC_TRACK_DEPOSIT,
.label = "track-deposit-1",
.expected_response_code = MHD_HTTP_OK,
.details.track_deposit.wtid = "TESTWTID"},
{ .oc = OC_END },
-
+#endif
/* Fill reserve with EUR:5.01, as withdraw fee is 1 ct per config */
{ .oc = OC_ADMIN_ADD_INCOMING,
.label = "create-reserve-1",