commit e47836718d6540aa1fc6a2f5bfbfd3d5136a1505
parent 8af81daf63b1c9771785a36a8e5be8820720e884
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 30 Oct 2026 10:23:38 +0100
use build-in unit, now that unit-existence is enforced
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/packages/taler-harness/src/integrationtests/test-payment-template.ts b/packages/taler-harness/src/integrationtests/test-payment-template.ts
@@ -203,11 +203,15 @@ export async function runTemplatePickupTimeTest(t: GlobalTestState) {
merchant.makeInstanceBaseUrl(),
);
succeedOrThrow(
+ // "Piece" is a builtin unit slug. The backend resolves a product's unit
+ // against the unit tables and answers 404 MERCHANT_GENERIC_UNIT_UNKNOWN
+ // for anything it does not know; "piece" is the builtin's long name, not
+ // its slug, so it does not resolve.
await api.addProduct(merchantAdminAccessToken, {
product_id: "article",
description: "Article",
price: "TESTKUDOS:1",
- unit: "piece",
+ unit: "Piece",
total_stock: -1,
}),
);