commit 49a302a05b094f0e2e6d5dcf1c3b6594bcc6053b
parent c41e94915ffc7c7d441164df57485787d7262f3e
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 7 Aug 2026 11:12:01 +0200
adjust test to API change
Diffstat:
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/testing/test_donau_api.c b/src/testing/test_donau_api.c
@@ -71,6 +71,16 @@ run (void *cls,
TALER_TESTING_cmd_get_donau ("get-donau",
cred.cfg,
true),
+ TALER_TESTING_cmd_charity_post ("post-charity-transient",
+ "example",
+ "https://example.com/",
+ "EUR:10", // max_per_year
+ &bearer,
+ MHD_HTTP_CREATED),
+ TALER_TESTING_cmd_charity_delete ("delete-charity-transient",
+ "post-charity-transient", // cmd trait reference
+ &bearer,
+ MHD_HTTP_NO_CONTENT),
TALER_TESTING_cmd_charity_post ("post-charity",
"example",
"https://example.com/",
@@ -109,10 +119,11 @@ run (void *cls,
TALER_TESTING_cmd_donation_statement_get ("donation-statement",
GNUNET_TIME_get_current_year (),
MHD_HTTP_OK),
+ /* cannot delete anymore: this would delete data we need to keep */
TALER_TESTING_cmd_charity_delete ("delete-charity",
"patch-charity", // cmd trait reference
&bearer,
- MHD_HTTP_NO_CONTENT),
+ MHD_HTTP_CONFLICT),
/* End the suite. */
TALER_TESTING_cmd_end ()
};