From 068433c5e7c99866a58d6be146fe25b36bb4d5b8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 2 Feb 2021 15:07:24 +0100 Subject: add rudimentary test logic for #6731 --- src/testing/test_merchant_api.c | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'src/testing/test_merchant_api.c') 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", -- cgit v1.2.3