summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_traits.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-06-25 13:59:47 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-06-25 13:59:47 +0200
commit75733ee00efc6d5342ed8b4fccd637efaebdce06 (patch)
tree68d2c58ed44001ad4ae297ebf0795c54ae56a2dc /src/testing/testing_api_traits.c
parente2f44ea7b3b745ae349a69ac45b3217dc44dd43a (diff)
downloadexchange-75733ee00efc6d5342ed8b4fccd637efaebdce06.tar.gz
exchange-75733ee00efc6d5342ed8b4fccd637efaebdce06.tar.bz2
exchange-75733ee00efc6d5342ed8b4fccd637efaebdce06.zip
more work on atomizing exchange API: deposit
Diffstat (limited to 'src/testing/testing_api_traits.c')
-rw-r--r--src/testing/testing_api_traits.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/testing/testing_api_traits.c b/src/testing/testing_api_traits.c
index 27eef5a5b..d00a8d8ca 100644
--- a/src/testing/testing_api_traits.c
+++ b/src/testing/testing_api_traits.c
@@ -129,4 +129,32 @@ TALER_TESTING_get_exchange_url (struct TALER_TESTING_Interpreter *is)
}
+struct TALER_EXCHANGE_Keys *
+TALER_TESTING_get_keys (
+ struct TALER_TESTING_Interpreter *is)
+{
+ struct TALER_EXCHANGE_Keys *keys;
+ const struct TALER_TESTING_Command *exchange_cmd;
+
+ exchange_cmd
+ = TALER_TESTING_interpreter_get_command (is,
+ "exchange");
+ if (NULL == exchange_cmd)
+ {
+ GNUNET_break (0);
+ TALER_TESTING_interpreter_fail (is);
+ return NULL;
+ }
+ if (GNUNET_OK !=
+ TALER_TESTING_get_trait_keys (exchange_cmd,
+ &keys))
+ {
+ GNUNET_break (0);
+ TALER_TESTING_interpreter_fail (is);
+ return NULL;
+ }
+ return keys;
+}
+
+
/* end of testing_api_traits.c */