From 3dd987035bcdbe4656ee77c62795f79dd591fc96 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 28 Jan 2019 16:51:13 +0100 Subject: Extend auditor testing-lib. Add method to check whether a exchange (URL) belongs to the list of audited exchanges. --- src/include/taler_testing_auditor_lib.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_testing_auditor_lib.h b/src/include/taler_testing_auditor_lib.h index 65f50b776..090a1210c 100644 --- a/src/include/taler_testing_auditor_lib.h +++ b/src/include/taler_testing_auditor_lib.h @@ -122,6 +122,23 @@ TALER_TESTING_cmd_exchanges unsigned int expected_response_code); +/** + * Create a "list exchanges" command and check whether + * a particular exchange belongs to the returned bundle. + * + * @param label command label. + * @param auditor auditor connection. + * @param expected_response_code expected HTTP response code. + * @param exchange_url URL of the exchange supposed to + * be included in the response. + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_exchanges_with_url + (const char *label, + unsigned int expected_response_code, + const char *exchange_url); + /** * Modify an exchanges command to enable retries when we get * transient errors from the auditor. -- cgit v1.2.3