test: update test descriptions to reflect room member token usage for recording access

This commit is contained in:
juancarmore 2026-01-23 19:15:03 +01:00
parent e580843b3a
commit 503db6c2cb
3 changed files with 7 additions and 9 deletions

View File

@ -112,13 +112,13 @@ describe('Recording API Tests', () => {
expect(deleteResponse.status).toBe(200);
});
it('should only delete recordings belonging to the room when using a recording token', async () => {
it('should only delete recordings belonging to the room when using a room member token', async () => {
// Create a room and start a recording
const roomData = await setupSingleRoomWithRecording(true);
const roomId = roomData.room.roomId;
const recordingId = roomData.recordingId!;
// Generate a recording token for the room
// Generate a room member token
const roomMemberToken = await generateRoomMemberToken(roomId, { secret: roomData.moderatorSecret });
// Create another room and start a recording
@ -135,9 +135,7 @@ describe('Recording API Tests', () => {
failed: [
{
recordingId: otherRecordingId,
error: expect.stringContaining(
`Recording '${otherRecordingId}' does not belong to room '${roomId}'`
)
error: expect.stringContaining('Insufficient permissions to access this resource')
}
]
});

View File

@ -55,7 +55,7 @@ describe('Recording API Tests', () => {
});
});
it('should only include recordings from the room when using a recording token', async () => {
it('should only include recordings from the room when using a room member token', async () => {
const roomData = await setupSingleRoomWithRecording(true);
const roomId = roomData.room.roomId;
const recordingId = roomData.recordingId!;
@ -84,7 +84,7 @@ describe('Recording API Tests', () => {
expect(res.status).toBe(400);
expect(res.body).toHaveProperty('error');
expect(res.body.message).toContain(`None of the provided recording IDs belong to room '${roomId}'`);
expect(res.body.message).toContain('None of the provided recordings are available for ZIP download');
});
});

View File

@ -54,12 +54,12 @@ describe('Recordings API Tests', () => {
expectSuccessListRecordingResponse(response, 1, false, false);
});
it('should return a list of recordings belonging to the room when using recording token', async () => {
it('should return a list of recordings belonging to the room when using room member token', async () => {
// Create a room and start a recording
let roomData = await setupSingleRoomWithRecording(true);
const roomId = roomData.room.roomId;
// Generate a recording token for the room
// Generate a room member token for the room
const roomMemberToken = await generateRoomMemberToken(roomId, { secret: roomData.speakerSecret });
// Create a new room and start a recording