summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_patch_instance.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-02 12:20:43 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-02 12:20:43 +0100
commit96726fd5ab6dc067af4957c3d1826f9fd2745c95 (patch)
tree0aceccf83f16d0f1bde0b2dd0bfd41a795b9c1a0 /src/testing/testing_api_cmd_patch_instance.c
parent0232c377c39611f4c476ec9464356f0ae40497d9 (diff)
downloadmerchant-96726fd5ab6dc067af4957c3d1826f9fd2745c95.tar.gz
merchant-96726fd5ab6dc067af4957c3d1826f9fd2745c95.tar.bz2
merchant-96726fd5ab6dc067af4957c3d1826f9fd2745c95.zip
extend client and testing libs to support setting authentication tokens (#6731)
Diffstat (limited to 'src/testing/testing_api_cmd_patch_instance.c')
-rw-r--r--src/testing/testing_api_cmd_patch_instance.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_patch_instance.c b/src/testing/testing_api_cmd_patch_instance.c
index 3a93b543..2248c1ac 100644
--- a/src/testing/testing_api_cmd_patch_instance.c
+++ b/src/testing/testing_api_cmd_patch_instance.c
@@ -80,6 +80,11 @@ struct PatchInstanceState
json_t *jurisdiction;
/**
+ * Authentication token to require, can be NULL.
+ */
+ const char *auth_token;
+
+ /**
* Wire fee to use.
*/
struct TALER_Amount default_max_wire_fee;
@@ -177,6 +182,7 @@ patch_instance_run (void *cls,
&pis->default_max_deposit_fee,
pis->default_wire_transfer_delay,
pis->default_pay_delay,
+ pis->auth_token,
&patch_instance_cb,
pis);
GNUNET_assert (NULL != pis->iph);
@@ -279,6 +285,7 @@ TALER_TESTING_cmd_merchant_patch_instance (
const char *default_max_deposit_fee,
struct GNUNET_TIME_Relative default_wire_transfer_delay,
struct GNUNET_TIME_Relative default_pay_delay,
+ const char *auth_token,
unsigned int http_status)
{
struct PatchInstanceState *pis;
@@ -305,6 +312,7 @@ TALER_TESTING_cmd_merchant_patch_instance (
&pis->default_max_deposit_fee));
pis->default_wire_transfer_delay = default_wire_transfer_delay;
pis->default_pay_delay = default_pay_delay;
+ pis->auth_token = auth_token;
{
struct TALER_TESTING_Command cmd = {
.cls = pis,