Skip to content

Commit e38df3c

Browse files
committed
fix: update room creation endpoint and auth
1 parent 3a9f86a commit e38df3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bots/test-bot/src/test-scenarios.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,13 @@ export class TestScenarios {
191191
const randomStr = Math.random().toString(36).substring(2, 8);
192192
const roomJid = `testroom_${timestamp}_${randomStr}@conference.dev.xmpp.ethoradev.com`;
193193

194-
const response = await axios.post<RoomResponse>(`${this.config.apiUrl}/v1/chat/room`, {
194+
const response = await axios.post<RoomResponse>(`${this.config.apiUrl}/v1/room`, {
195195
name: 'Test Room',
196196
description: 'Room for automated testing',
197-
userId,
198-
isPrivate: false,
199197
roomJid
200198
}, {
201199
headers: {
202-
'Authorization': this.botUser?.accessToken || '',
200+
'x-custom-token': `JWT ${this.createServerToken()}`,
203201
'x-app-id': this.config.appId
204202
}
205203
});

0 commit comments

Comments
 (0)