commit 24e9dcac42c7f9648b52237af1016f39990b66f1
parent d199cbb5795a294dbba7fc533afc2d51bab7586d
Author: Florian Dold <florian@dold.me>
Date: Sat, 18 Jul 2026 00:15:41 +0200
harness: confirm that special characters in instance name are not allowed
Diffstat:
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/packages/taler-harness/src/integrationtests/test-merchant-self-provision-casing.ts b/packages/taler-harness/src/integrationtests/test-merchant-self-provision-casing.ts
@@ -44,9 +44,7 @@ export const logger = new Logger("test-merchant-self-provision-activation.ts");
* Regression test for bad case normalization in the
* self onboarding.
*/
-export async function runMerchantSelfProvisionCasingTest(
- t: GlobalTestState,
-) {
+export async function runMerchantSelfProvisionCasingTest(t: GlobalTestState) {
// Set up test environment
const instanceInfo = {
@@ -96,6 +94,16 @@ export async function runMerchantSelfProvisionCasingTest(
t.assertDeepEqual(r.instances.length, 2);
}
+ {
+ // Special characters in instance name should not be allowed
+ t.assertThrowsTalerErrorAsync(async () => {
+ await merchantClient.createInstanceSelfProvision({
+ ...instanceInfo,
+ id: "löl",
+ });
+ });
+ }
+
const signupStart = alternativeOrThrow(
await merchantClient.createInstanceSelfProvision(instanceInfo),
HttpStatusCode.Accepted,