diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-07 17:05:32 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-07 17:05:32 -0400 |
commit | 0203e5d83d55d7eed0b6cc669af8750116c4448e (patch) | |
tree | 31c101606463a7438c11da06bfaaae16defbfa63 /src/include | |
parent | 5eb0a2e98faecfec89add4845f817548b3fee86b (diff) | |
download | merchant-0203e5d83d55d7eed0b6cc669af8750116c4448e.tar.gz merchant-0203e5d83d55d7eed0b6cc669af8750116c4448e.tar.bz2 merchant-0203e5d83d55d7eed0b6cc669af8750116c4448e.zip |
tests for merchant account inactivation
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_merchant_testing_lib.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h index 83201005..e1908fdd 100644 --- a/src/include/taler_merchant_testing_lib.h +++ b/src/include/taler_merchant_testing_lib.h @@ -217,6 +217,35 @@ TALER_TESTING_cmd_merchant_get_instance (const char *label, /** + * Define a "GET instance" CMD that compares accounts returned. + * + * @param label command label. + * @param merchant_url base URL of the merchant serving the + * GET /instances/$ID request. + * @param instance_id the ID of the instance to query + * @param http_status expected HTTP response code. + * @param instance_reference reference to a "POST /instances" or "PATCH /instances/$ID" CMD + * that will provide what we expect the backend to return to us + * @param active_accounts the accounts the merchant is actively using. + * @param active_accounts_length length of @e active_accounts. + * @param inactive_accounts the accounts the merchant is no longer using. + * @param inactive_accounts_length length of @e inactive_accounts. + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_merchant_get_instance2 (const char *label, + const char *merchant_url, + const char *instance_id, + unsigned int http_status, + const char *instance_reference, + const char *active_accounts[], + unsigned int active_accounts_length, + const char *inactive_accounts[], + unsigned int + inactive_accounts_length); + + +/** * Define a "PURGE instance" CMD. * * @param label command label. |