@webex/plugin-meetings 2.29.3 → 2.30.0

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.
@@ -1,6 +0,0 @@
1
- {
2
- "rules": {
3
- "no-underscore-dangle": "off",
4
- "prefer-arrow-callback": "off"
5
- }
6
- }
@@ -1,84 +0,0 @@
1
-
2
- import {assert} from '@webex/test-helper-chai';
3
- import sinon from 'sinon';
4
- import ReachabilityRequest from '@webex/plugin-meetings/src/reachability/request';
5
-
6
- describe('ReachabilityRequest', () => {
7
- let webex;
8
- let reachabilityRequest;
9
-
10
- const VIDEO_MESH_NODE_0 = '111-222-333-some-vmn';
11
- const VIDEO_MESH_NODE_1 = '444-555-666-some-vmn';
12
-
13
- const CLOUD_NODE_0 = 'some-public-node-1.somewhere';
14
- const CLOUD_NODE_1 = 'some-public-node-2.somewhere';
15
-
16
- const vmnClusterUrls = [{
17
- tcp: ['some vmn node 0 tcp url', 'another vmn node 0 tcp url'],
18
- udp: ['some vmn node 0 udp url', 'another vmn node 0 udp url']
19
- }, {
20
- tcp: ['some vmn node 1 tcp url', 'another vmn node 1 tcp url'],
21
- udp: ['some vmn node 1 udp url', 'another vmn node 1 udp url']
22
- }
23
- ];
24
-
25
- const cloudClusterUrls = [{
26
- tcp: ['some public node 0 tcp url', 'another public node 0 tcp url'],
27
- udp: ['some public node 0 udp url', 'another public node 0 udp url']
28
- }, {
29
- tcp: ['some public node 1 tcp url', 'another public node 1 tcp url'],
30
- udp: ['some public node 1 udp url', 'another public node 1 udp url']
31
- }
32
- ];
33
-
34
- beforeEach(() => {
35
- webex = {
36
- request: sinon.stub()
37
- };
38
- reachabilityRequest = new ReachabilityRequest(webex);
39
- });
40
-
41
- describe('getClusters', () => {
42
- beforeEach(() => {
43
- webex.request = sinon.fake.resolves({
44
- body: {
45
- clusterClasses: {
46
- ocpCloud: [],
47
- publicCloud: [],
48
- hybridMedia: [VIDEO_MESH_NODE_0, VIDEO_MESH_NODE_1]
49
- },
50
- clusters: {
51
- [VIDEO_MESH_NODE_0]: vmnClusterUrls[0],
52
- [VIDEO_MESH_NODE_1]: vmnClusterUrls[1],
53
- [CLOUD_NODE_0]: cloudClusterUrls[0],
54
- [CLOUD_NODE_1]: cloudClusterUrls[1],
55
- }
56
- }
57
- });
58
- });
59
-
60
- it('marks video mesh clusters correctly', async () => {
61
- const clusters = await reachabilityRequest.getClusters(false);
62
-
63
- assert.deepEqual(clusters, {
64
- [VIDEO_MESH_NODE_0]: {
65
- ...vmnClusterUrls[0],
66
- isVideoMesh: true,
67
- },
68
- [VIDEO_MESH_NODE_1]: {
69
- ...vmnClusterUrls[1],
70
- isVideoMesh: true,
71
- },
72
- [CLOUD_NODE_0]: {
73
- ...cloudClusterUrls[0],
74
- isVideoMesh: false,
75
- },
76
- [CLOUD_NODE_1]: {
77
- ...cloudClusterUrls[1],
78
- isVideoMesh: false,
79
- },
80
- });
81
- });
82
- });
83
- });
84
-