summaryrefslogtreecommitdiff
path: root/src/include/taler_testing_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-17 20:06:34 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-17 20:06:34 +0200
commit0453ef45df3970247975f7adef957a8c787a0fc9 (patch)
tree15e73f375c6738eb3a825106745ed00b728ea1e8 /src/include/taler_testing_lib.h
parentda25913e61ff72c6a4bebae1ee093046c9419218 (diff)
downloadexchange-0453ef45df3970247975f7adef957a8c787a0fc9.tar.gz
exchange-0453ef45df3970247975f7adef957a8c787a0fc9.tar.bz2
exchange-0453ef45df3970247975f7adef957a8c787a0fc9.zip
add ability to change Authorization header in via interpreter command (#6778)
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r--src/include/taler_testing_lib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 49767534..c0a76c44 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -575,6 +575,7 @@ TALER_TESTING_interpreter_lookup_command (struct TALER_TESTING_Interpreter *is,
struct GNUNET_CURL_Context *
TALER_TESTING_interpreter_get_context (struct TALER_TESTING_Interpreter *is);
+
/**
* Obtain label of the command being now run.
*
@@ -932,6 +933,21 @@ TALER_TESTING_has_in_name (const char *prog,
/**
+ * Command to modify authorization header used in the CURL context.
+ * This will destroy the existing CURL context and create a fresh
+ * one. The command will fail (badly) if the existing CURL context
+ * still has active HTTP requests associated with it.
+ *
+ * @param label command label.
+ * @param auth_token auth token to use henceforth, can be NULL
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_set_authorization (const char *label,
+ const char *auth_token);
+
+
+/**
* Make a credit "history" CMD.
*
* @param label command label.