commit 43e30079167ee186cfc5a35175ebd3eb630366cb
parent 22b48adaf32946e447cecd1422d9e38bfbdc2f84
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 6 Feb 2026 21:12:55 +0100
expand test to cover new API from #10965
Diffstat:
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/src/testing/test_merchant_transfer_tracking.sh b/src/testing/test_merchant_transfer_tracking.sh
@@ -1,6 +1,6 @@
#!/bin/bash
# This file is part of TALER
-# Copyright (C) 2014-2024 Taler Systems SA
+# Copyright (C) 2014-2026 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
@@ -766,7 +766,28 @@ then
exit_fail ".wired false, expected true"
fi
+EXPECTED_TRANSFER_SERIAL=$(jq -r .wire_details[0].expected_transfer_serial_id < "$LAST_RESPONSE")
+
echo " OK"
+echo -n "Checking reconciliation details ..."
+STATUS=$(curl "http://localhost:9966/instances/test/private/incoming/${EXPECTED_TRANSFER_SERIAL}" \
+ -w "%{http_code}" -s -o "$LAST_RESPONSE")
+
+if [ "$STATUS" != "200" ]
+then
+ jq . < "$LAST_RESPONSE"
+ exit_fail "Expected 200 ok. got: $STATUS"
+fi
+SETTLED_ORDER_ID=$(jq -r .reconciliation_details[0].order_id < "$LAST_RESPONSE")
+
+if [ "$SETTLED_ORDER_ID" != "$ORDER_ID" ]
+then
+ jq . < "$LAST_RESPONSE"
+ exit_fail ".order_id false, expected $ORDER_ID, got $SETTLED_ORDER_ID"
+fi
+
+echo " OK"
+echo "TEST PASSED"
exit 0