diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-17 19:36:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-17 19:36:12 +0200 |
commit | 657d5ba149cad6c24704a3544994f1200caf639e (patch) | |
tree | 2bed638eb30d93f4b61163b1519a5e39917f1938 /src/include/taler_merchant_testing_lib.h | |
parent | 4087bfb43d20c2e7ffb553ce3823f497b307647d (diff) | |
download | merchant-657d5ba149cad6c24704a3544994f1200caf639e.tar.gz merchant-657d5ba149cad6c24704a3544994f1200caf639e.tar.bz2 merchant-657d5ba149cad6c24704a3544994f1200caf639e.zip |
add command to test /instance/auth operation (#6778/6779)
Diffstat (limited to 'src/include/taler_merchant_testing_lib.h')
-rw-r--r-- | src/include/taler_merchant_testing_lib.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h index 9bd7396b..bfc407cb 100644 --- a/src/include/taler_merchant_testing_lib.h +++ b/src/include/taler_merchant_testing_lib.h @@ -121,6 +121,25 @@ TALER_TESTING_cmd_merchant_post_instances (const char *label, /** + * Define a "POST /private/auth" CMD. + * + * @param label command label. + * @param merchant_url base URL of the merchant serving the + * POST /instances request. + * @param instance_id the ID of the instance, or NULL + * @param auth_token new auth token to use, can be NULL for no auth + * @param http_status expected HTTP response code. + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_merchant_post_instance_auth (const char *label, + const char *merchant_url, + const char *instance_id, + const char *auth_token, + unsigned int http_status); + + +/** * Define a "POST /instances" CMD. Comprehensive version. * * @param label command label. |