-expand p2p tests with purse long poller
This commit is contained in:
parent
fb8349a7e3
commit
fed8353c67
@ -157,6 +157,13 @@ run (void *cls,
|
|||||||
"withdraw-coin-1",
|
"withdraw-coin-1",
|
||||||
"EUR:1.01",
|
"EUR:1.01",
|
||||||
NULL),
|
NULL),
|
||||||
|
TALER_TESTING_cmd_purse_poll (
|
||||||
|
"poll-purse-before-merge",
|
||||||
|
MHD_HTTP_OK,
|
||||||
|
"purse-with-deposit",
|
||||||
|
"EUR:1",
|
||||||
|
true,
|
||||||
|
GNUNET_TIME_UNIT_MINUTES),
|
||||||
TALER_TESTING_cmd_contract_get (
|
TALER_TESTING_cmd_contract_get (
|
||||||
"push-get-contract",
|
"push-get-contract",
|
||||||
MHD_HTTP_OK,
|
MHD_HTTP_OK,
|
||||||
@ -167,7 +174,13 @@ run (void *cls,
|
|||||||
MHD_HTTP_OK,
|
MHD_HTTP_OK,
|
||||||
"push-get-contract",
|
"push-get-contract",
|
||||||
"create-reserve-1"),
|
"create-reserve-1"),
|
||||||
// FIXME: long-poll purse status
|
TALER_TESTING_cmd_purse_poll_finish (
|
||||||
|
"merge-purse-poll-finish",
|
||||||
|
GNUNET_TIME_relative_multiply (
|
||||||
|
GNUNET_TIME_UNIT_SECONDS,
|
||||||
|
5),
|
||||||
|
"poll-purse-before-merge"),
|
||||||
|
// FIXME: trigger p2p job
|
||||||
// FIXME: check reserve history!
|
// FIXME: check reserve history!
|
||||||
TALER_TESTING_cmd_end ()
|
TALER_TESTING_cmd_end ()
|
||||||
};
|
};
|
||||||
@ -184,6 +197,13 @@ run (void *cls,
|
|||||||
MHD_HTTP_OK,
|
MHD_HTTP_OK,
|
||||||
false, /* for deposit */
|
false, /* for deposit */
|
||||||
"purse-create-with-reserve"),
|
"purse-create-with-reserve"),
|
||||||
|
TALER_TESTING_cmd_purse_poll (
|
||||||
|
"poll-purse-before-deposit",
|
||||||
|
MHD_HTTP_OK,
|
||||||
|
"purse-create-with-reserve",
|
||||||
|
"EUR:1",
|
||||||
|
false,
|
||||||
|
GNUNET_TIME_UNIT_MINUTES),
|
||||||
TALER_TESTING_cmd_purse_deposit_coins (
|
TALER_TESTING_cmd_purse_deposit_coins (
|
||||||
"purse-deposit-coins",
|
"purse-deposit-coins",
|
||||||
MHD_HTTP_OK,
|
MHD_HTTP_OK,
|
||||||
@ -192,7 +212,13 @@ run (void *cls,
|
|||||||
"withdraw-coin-1",
|
"withdraw-coin-1",
|
||||||
"EUR:1.01",
|
"EUR:1.01",
|
||||||
NULL),
|
NULL),
|
||||||
// FIXME: long-poll purse status
|
TALER_TESTING_cmd_purse_poll_finish (
|
||||||
|
"deposit-purse-poll-finish",
|
||||||
|
GNUNET_TIME_relative_multiply (
|
||||||
|
GNUNET_TIME_UNIT_SECONDS,
|
||||||
|
5),
|
||||||
|
"poll-purse-before-deposit"),
|
||||||
|
// FIXME: trigger p2p job
|
||||||
// FIXME: check reserve history!
|
// FIXME: check reserve history!
|
||||||
TALER_TESTING_cmd_end ()
|
TALER_TESTING_cmd_end ()
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user