diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-02-02 15:07:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-02-02 15:07:24 +0100 |
commit | 068433c5e7c99866a58d6be146fe25b36bb4d5b8 (patch) | |
tree | ff7b102d567a96c0bd83b38b6e5e22b5d8d67168 /src/testing/test_merchant_api.c | |
parent | 96726fd5ab6dc067af4957c3d1826f9fd2745c95 (diff) | |
download | merchant-068433c5e7c99866a58d6be146fe25b36bb4d5b8.tar.gz merchant-068433c5e7c99866a58d6be146fe25b36bb4d5b8.tar.bz2 merchant-068433c5e7c99866a58d6be146fe25b36bb4d5b8.zip |
add rudimentary test logic for #6731
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r-- | src/testing/test_merchant_api.c | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c index 9a69f121..b1932cd6 100644 --- a/src/testing/test_merchant_api.c +++ b/src/testing/test_merchant_api.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014-2020 Taler Systems SA + Copyright (C) 2014-2021 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -1251,6 +1251,41 @@ run (void *cls, PAYTO_I1, "USD", MHD_HTTP_CONFLICT), + TALER_TESTING_cmd_merchant_post_instances2 ("instance-create-ACL", + merchant_url, + "i-acl", + 0, NULL, + "controlled instance", + json_pack ("{s:s}", "city", + "shopcity"), + json_pack ("{s:s}", "city", + "lawyercity"), + "EUR:0.1", + 42, + "EUR:0.2", + GNUNET_TIME_UNIT_MINUTES, + GNUNET_TIME_UNIT_MINUTES, + RFC_8959_PREFIX "EXAMPLE", + MHD_HTTP_NO_CONTENT), + TALER_TESTING_cmd_merchant_patch_instance ("instance-patch-ACL", + merchant_url, + "i-acl", + 1, + payto_uris, + "controlled instance", + json_pack ("{s:s}", + "street", + "bobstreet"), + json_pack ("{s:s}", + "street", + "bobjuryst"), + "EUR:0.1", + 4, + "EUR:0.5", + GNUNET_TIME_UNIT_MINUTES, + GNUNET_TIME_UNIT_MINUTES, + RFC_8959_PREFIX "SANDBOX", + MHD_HTTP_NO_CONTENT), TALER_TESTING_cmd_merchant_post_instances ("instance-create-i2", merchant_url, "i2", |