From 96726fd5ab6dc067af4957c3d1826f9fd2745c95 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 2 Feb 2021 12:20:43 +0100 Subject: extend client and testing libs to support setting authentication tokens (#6731) --- src/testing/testing_api_cmd_patch_instance.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/testing/testing_api_cmd_patch_instance.c') 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 @@ -79,6 +79,11 @@ struct PatchInstanceState */ json_t *jurisdiction; + /** + * Authentication token to require, can be NULL. + */ + const char *auth_token; + /** * Wire fee to use. */ @@ -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, -- cgit v1.2.3