Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(tests): Adds property to override room name.
damenchob7529a7ae480
diff --git a/tests/env.example b/tests/env.exampleindex c37ebfd2f6..ef88a3cab4 100644--- a/tests/env.example+++ b/tests/env.example@@ -54,6 +54,9 @@# The format is "MAP example.com 1.2.3.4"#RESOLVER_RULES=+# Fixed room name to use, overrides generated name (including prefix/suffix)+#ROOM_NAME=+# Room name prefix to use when creating new room names#ROOM_NAME_PREFIX=diff --git a/tests/helpers/TestsConfig.ts b/tests/helpers/TestsConfig.tsindex 6fca2d5993..0365a184d0 100644--- a/tests/helpers/TestsConfig.ts+++ b/tests/helpers/TestsConfig.ts@@ -57,6 +57,8 @@ export const config = {privateKeyPath: process.env.JWT_PRIVATE_KEY_PATH?.trim()},roomName: {+ /** Optional fixed room name that overrides the generated one entirely. */+ name: process.env.ROOM_NAME?.trim(),/** Optional prefix for room names used for tests. */prefix: process.env.ROOM_NAME_PREFIX?.trim(),/** Optional suffix for room names used for tests. */diff --git a/tests/helpers/utils.ts b/tests/helpers/utils.tsindex 934631ac3d..e47d7340fe 100644--- a/tests/helpers/utils.ts+++ b/tests/helpers/utils.ts@@ -3,6 +3,10 @@ import { config as testsConfig } from './TestsConfig';const https = require('https');export function generateRoomName(testName: string) {+ if (testsConfig.roomName.name) {+ return testsConfig.roomName.name;+ }+const rand = (Math.floor(Math.random() * 400) + 1).toString();let roomName = `${testName}-${rand}`;