@webex/plugin-meetings 3.0.0-beta.95 → 3.0.0-beta.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -1
- package/dist/meeting/index.js +79 -27
- package/dist/meeting/index.js.map +1 -1
- package/dist/metrics/index.js +5 -2
- package/dist/metrics/index.js.map +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/meeting/index.d.ts +17 -6
- package/package.json +20 -20
- package/src/constants.ts +1 -0
- package/src/meeting/index.ts +79 -25
- package/src/metrics/index.ts +5 -2
- package/test/unit/spec/meeting/index.js +17 -2
- package/test/unit/spec/meetings/index.js +55 -0
|
@@ -1614,5 +1614,60 @@ describe('plugin-meetings', () => {
|
|
|
1614
1614
|
assert.equal(result, false);
|
|
1615
1615
|
});
|
|
1616
1616
|
});
|
|
1617
|
+
|
|
1618
|
+
describe('#getAnalyzerMetricsPrePayload', () => {
|
|
1619
|
+
it('userType & userLogin & environment testing for CA data', async () => {
|
|
1620
|
+
const FAKE_LOCUS_MEETING = {
|
|
1621
|
+
conversationUrl: 'locusConvURL',
|
|
1622
|
+
url: 'locusUrl',
|
|
1623
|
+
info: {
|
|
1624
|
+
webExMeetingId: 'locusMeetingId',
|
|
1625
|
+
sipUri: 'locusSipUri',
|
|
1626
|
+
owner: 'locusOwner',
|
|
1627
|
+
},
|
|
1628
|
+
meeting: {
|
|
1629
|
+
startTime: "",
|
|
1630
|
+
},
|
|
1631
|
+
fullState: {
|
|
1632
|
+
active: false,
|
|
1633
|
+
},
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
const meeting = await webex.meetings.createMeeting(
|
|
1637
|
+
FAKE_LOCUS_MEETING,
|
|
1638
|
+
'test type',
|
|
1639
|
+
true
|
|
1640
|
+
);
|
|
1641
|
+
meeting.roles = ['MODERATOR','COHOST','ATTENDEE'];
|
|
1642
|
+
meeting.guest = true;
|
|
1643
|
+
const options = {
|
|
1644
|
+
event: 'event',
|
|
1645
|
+
trackingId: 'trackingId',
|
|
1646
|
+
locus: {},
|
|
1647
|
+
mediaConnections: null,
|
|
1648
|
+
errors: {}
|
|
1649
|
+
};
|
|
1650
|
+
webex.internal.services.get = sinon.stub();
|
|
1651
|
+
webex.canAuthorize = true;
|
|
1652
|
+
webex.credentials = {isUnverifiedGuest: true};
|
|
1653
|
+
meeting.getAnalyzerMetricsPrePayload(options);
|
|
1654
|
+
assert.equal(options.userType, 'host');
|
|
1655
|
+
assert.equal(options.loginType, 'unverified-guest');
|
|
1656
|
+
meeting.roles = ['COHOST','ATTENDEE'];
|
|
1657
|
+
meeting.guest = false;
|
|
1658
|
+
webex.canAuthorize = true;
|
|
1659
|
+
webex.credentials = {isUnverifiedGuest: false};
|
|
1660
|
+
meeting.getAnalyzerMetricsPrePayload(options);
|
|
1661
|
+
assert.equal(options.userType, 'cohost');
|
|
1662
|
+
assert.equal(options.loginType, 'login-ci');
|
|
1663
|
+
meeting.roles = ['ATTENDEE'];
|
|
1664
|
+
meeting.getAnalyzerMetricsPrePayload(options);
|
|
1665
|
+
assert.equal(options.userType, 'attendee');
|
|
1666
|
+
meeting.environment = "prod";
|
|
1667
|
+
meeting.getAnalyzerMetricsPrePayload(options);
|
|
1668
|
+
assert.equal(options.environment, 'prod');
|
|
1669
|
+
});
|
|
1670
|
+
});
|
|
1671
|
+
|
|
1617
1672
|
});
|
|
1618
1673
|
});
|