Triggering 409 Conflict for /refresh/reveal
This commit is contained in:
parent
08824870e6
commit
8ec523afbb
@ -142,13 +142,15 @@ run (void *cls,
|
|||||||
|
|
||||||
struct TALER_TESTING_Command commands[] = {
|
struct TALER_TESTING_Command commands[] = {
|
||||||
|
|
||||||
CMD_TRANSFER_TO_EXCHANGE ("refresh-create-reserve",
|
CMD_TRANSFER_TO_EXCHANGE
|
||||||
"EUR:5.01"),
|
("refresh-create-reserve",
|
||||||
|
"EUR:5.01"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make previous command effective.
|
* Make previous command effective.
|
||||||
*/
|
*/
|
||||||
CMD_EXEC_WIREWATCH ("wirewatch"),
|
CMD_EXEC_WIREWATCH
|
||||||
|
("wirewatch"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Withdraw EUR:5.
|
* Withdraw EUR:5.
|
||||||
@ -184,10 +186,18 @@ run (void *cls,
|
|||||||
"refresh-withdraw-coin",
|
"refresh-withdraw-coin",
|
||||||
MHD_HTTP_OK),
|
MHD_HTTP_OK),
|
||||||
|
|
||||||
/**
|
/* Trigger 409 Conflict. */
|
||||||
* End the suite. Fixme: better to have a label for this
|
TALER_TESTING_cmd_flip_upload
|
||||||
* too, as it shows a "(null)" token on logs.
|
("flip-upload",
|
||||||
*/
|
CONFIG_FILE,
|
||||||
|
"transfer_privs.0"),
|
||||||
|
|
||||||
|
TALER_TESTING_cmd_refresh_reveal
|
||||||
|
("refresh-(flipped-)reveal",
|
||||||
|
is->exchange,
|
||||||
|
"refresh-melt",
|
||||||
|
MHD_HTTP_CONFLICT),
|
||||||
|
|
||||||
TALER_TESTING_cmd_end ()
|
TALER_TESTING_cmd_end ()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -49,8 +49,6 @@ lookahead_sign = 32 weeks 1 day
|
|||||||
# ahead of time?
|
# ahead of time?
|
||||||
lookahead_provide = 4 weeks 1 day
|
lookahead_provide = 4 weeks 1 day
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
|
|
||||||
# HTTP port the exchange listens to
|
# HTTP port the exchange listens to
|
||||||
@ -67,7 +65,7 @@ DB = postgres
|
|||||||
# connection addressed to the exchange. In fact, the presence
|
# connection addressed to the exchange. In fact, the presence
|
||||||
# of the twister is 100% transparent to the test case, as it
|
# of the twister is 100% transparent to the test case, as it
|
||||||
# only seeks the exchange/BASE_URL URL to connect to the exchange.
|
# only seeks the exchange/BASE_URL URL to connect to the exchange.
|
||||||
BASE_URL = "http://localhost:8081/"
|
BASE_URL = "http://localhost:8888/"
|
||||||
|
|
||||||
[exchangedb-postgres]
|
[exchangedb-postgres]
|
||||||
DB_CONN_STR = "postgres:///talercheck"
|
DB_CONN_STR = "postgres:///talercheck"
|
||||||
|
@ -530,7 +530,7 @@ enum TALER_ErrorCode
|
|||||||
TALER_EC_REFRESH_REVEAL_SIGNING_ERROR = 1351,
|
TALER_EC_REFRESH_REVEAL_SIGNING_ERROR = 1351,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The exchange is unaware of the refresh sessino specified in
|
* The exchange is unaware of the refresh session specified in
|
||||||
* the request.
|
* the request.
|
||||||
* This response is provided with HTTP status code
|
* This response is provided with HTTP status code
|
||||||
* MHD_HTTP_BAD_REQUEST.
|
* MHD_HTTP_BAD_REQUEST.
|
||||||
|
Loading…
Reference in New Issue
Block a user