From 88a61d8a95857ba9ca08732c3cdd727c0f45db2b Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 11 Aug 2025 10:52:13 -0400 Subject: [PATCH] SWI-8402 Add New `StartStream` Attributes --- models/bxml/verbs/StartStream.ts | 2 ++ tests/unit/models/bxml/verbs/StartStream.test.ts | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/models/bxml/verbs/StartStream.ts b/models/bxml/verbs/StartStream.ts index dddf013..dcda92c 100644 --- a/models/bxml/verbs/StartStream.ts +++ b/models/bxml/verbs/StartStream.ts @@ -6,6 +6,8 @@ export interface StartStreamAttributes { mode?: string; tracks?: string; destination?: string; + destinationUsername?: string; + destinationPassword?: string; streamEventUrl?: string; streamEventMethod?: string; username?: string; diff --git a/tests/unit/models/bxml/verbs/StartStream.test.ts b/tests/unit/models/bxml/verbs/StartStream.test.ts index 350ca6a..4132510 100644 --- a/tests/unit/models/bxml/verbs/StartStream.test.ts +++ b/tests/unit/models/bxml/verbs/StartStream.test.ts @@ -8,6 +8,8 @@ describe('StartStream', () => { mode: 'unidirectional', tracks: 'inbound', destination: 'https://initial.com', + destinationUsername: 'initialDestUsername', + destinationPassword: 'initialDestPassword', streamEventUrl: 'https://initial.com', streamEventMethod: 'POST', username: 'initialUsername', @@ -19,7 +21,7 @@ describe('StartStream', () => { test('should create a StartStream Verb', () => { const startStream = new StartStream(attributes); - const expected = ''; + const expected = ''; expect(startStream).toBeInstanceOf(StartStream); expect(startStream).toBeInstanceOf(Verb); @@ -28,9 +30,9 @@ describe('StartStream', () => { test('should create a StartStream Verb with nested StreamParams', () => { let startStream = new StartStream(attributes, streamParam1); - const expected = ''; - const expectedSingle = ''; - const expectedMultiple = ''; + const expected = ''; + const expectedSingle = ''; + const expectedMultiple = ''; expect(startStream).toBeInstanceOf(StartStream); expect(startStream).toBeInstanceOf(Verb); @@ -45,7 +47,7 @@ describe('StartStream', () => { test('should test the addStreamParams method when no verbs are initially nested', () => { const startStream = new StartStream(attributes); - const expected = ''; + const expected = ''; startStream.addStreamParams(streamParam1); expect(startStream.toBxml()).toBe(expected);