aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/test_exchange_api_twisted.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-05-16 13:18:23 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-05-16 13:18:23 +0200
commit8ec523afbba274a0979eb2c0696c30c3e13fc919 (patch)
treef52bc94a6dcdb5b7f8b8e833ba69d714aaab1f75 /src/exchange-lib/test_exchange_api_twisted.c
parent08824870e6cb6b91bf43936357361d82f8017dc6 (diff)
downloadexchange-8ec523afbba274a0979eb2c0696c30c3e13fc919.tar.xz
Triggering 409 Conflict for /refresh/reveal
Diffstat (limited to 'src/exchange-lib/test_exchange_api_twisted.c')
-rw-r--r--src/exchange-lib/test_exchange_api_twisted.c24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/exchange-lib/test_exchange_api_twisted.c b/src/exchange-lib/test_exchange_api_twisted.c
index 3b875cd5e..762f124b3 100644
--- a/src/exchange-lib/test_exchange_api_twisted.c
+++ b/src/exchange-lib/test_exchange_api_twisted.c
@@ -142,13 +142,15 @@ run (void *cls,
struct TALER_TESTING_Command commands[] = {
- CMD_TRANSFER_TO_EXCHANGE ("refresh-create-reserve",
- "EUR:5.01"),
+ CMD_TRANSFER_TO_EXCHANGE
+ ("refresh-create-reserve",
+ "EUR:5.01"),
/**
* Make previous command effective.
*/
- CMD_EXEC_WIREWATCH ("wirewatch"),
+ CMD_EXEC_WIREWATCH
+ ("wirewatch"),
/**
* Withdraw EUR:5.
@@ -184,10 +186,18 @@ run (void *cls,
"refresh-withdraw-coin",
MHD_HTTP_OK),
- /**
- * End the suite. Fixme: better to have a label for this
- * too, as it shows a "(null)" token on logs.
- */
+ /* Trigger 409 Conflict. */
+ TALER_TESTING_cmd_flip_upload
+ ("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 ()
};