From 55214876d8a9883de3abd388bad77fc026669028 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Tue, 14 Mar 2023 10:07:16 +0000 Subject: [PATCH] Improve tenant generation --- qa-core/src/config/internal-api/fixtures/accounts.ts | 3 ++- qa-core/src/config/public-api/fixtures/accounts.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qa-core/src/config/internal-api/fixtures/accounts.ts b/qa-core/src/config/internal-api/fixtures/accounts.ts index dbeabae928..64b6d51f44 100644 --- a/qa-core/src/config/internal-api/fixtures/accounts.ts +++ b/qa-core/src/config/internal-api/fixtures/accounts.ts @@ -5,7 +5,8 @@ import { Hosting } from "@budibase/types" export const generateAccount = (): Partial => { const randomGuid = generator.guid() - let tenant: string = "a" + randomGuid + //Needs to start with a letter + let tenant: string = "tenant" + randomGuid tenant = tenant.replace(/-/g, "") return { diff --git a/qa-core/src/config/public-api/fixtures/accounts.ts b/qa-core/src/config/public-api/fixtures/accounts.ts index dbeabae928..64b6d51f44 100644 --- a/qa-core/src/config/public-api/fixtures/accounts.ts +++ b/qa-core/src/config/public-api/fixtures/accounts.ts @@ -5,7 +5,8 @@ import { Hosting } from "@budibase/types" export const generateAccount = (): Partial => { const randomGuid = generator.guid() - let tenant: string = "a" + randomGuid + //Needs to start with a letter + let tenant: string = "tenant" + randomGuid tenant = tenant.replace(/-/g, "") return {