@webex/plugin-meetings 3.8.1-next.7 → 3.8.1-next.9

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.
@@ -2227,8 +2227,9 @@ describe('plugin-meetings', () => {
2227
2227
  someReachabilityMetric1: 'some value1',
2228
2228
  someReachabilityMetric2: 'some value2',
2229
2229
  selectedCandidatePairChanges: 2,
2230
- isSubnetReachable: null,
2231
- selectedCluster: null,
2230
+ subnet_reachable: null,
2231
+ selected_cluster: null,
2232
+ selected_subnet: null,
2232
2233
  numTransports: 1,
2233
2234
  iceCandidatesCount: 0,
2234
2235
  }
@@ -2275,8 +2276,9 @@ describe('plugin-meetings', () => {
2275
2276
  signalingState: 'unknown',
2276
2277
  connectionState: 'unknown',
2277
2278
  iceConnectionState: 'unknown',
2278
- isSubnetReachable: null,
2279
- selectedCluster: null,
2279
+ subnet_reachable: null,
2280
+ selected_cluster: null,
2281
+ selected_subnet: null,
2280
2282
  })
2281
2283
  );
2282
2284
 
@@ -2342,8 +2344,9 @@ describe('plugin-meetings', () => {
2342
2344
  selectedCandidatePairChanges: 2,
2343
2345
  numTransports: 1,
2344
2346
  iceCandidatesCount: 0,
2345
- isSubnetReachable: null,
2346
- selectedCluster: null,
2347
+ subnet_reachable: null,
2348
+ selected_cluster: null,
2349
+ selected_subnet: null,
2347
2350
  }
2348
2351
  );
2349
2352
  });
@@ -2401,8 +2404,9 @@ describe('plugin-meetings', () => {
2401
2404
  signalingState: 'have-local-offer',
2402
2405
  connectionState: 'connecting',
2403
2406
  iceConnectionState: 'checking',
2404
- isSubnetReachable: null,
2405
- selectedCluster: null,
2407
+ subnet_reachable: null,
2408
+ selected_cluster: null,
2409
+ selected_subnet: null,
2406
2410
  })
2407
2411
  );
2408
2412
 
@@ -2460,8 +2464,9 @@ describe('plugin-meetings', () => {
2460
2464
  signalingState: 'have-local-offer',
2461
2465
  connectionState: 'connecting',
2462
2466
  iceConnectionState: 'checking',
2463
- isSubnetReachable: null,
2464
- selectedCluster: null,
2467
+ subnet_reachable: null,
2468
+ selected_cluster: null,
2469
+ selected_subnet: null,
2465
2470
  })
2466
2471
  );
2467
2472
 
@@ -2983,8 +2988,9 @@ describe('plugin-meetings', () => {
2983
2988
  selectedCandidatePairChanges: 2,
2984
2989
  numTransports: 1,
2985
2990
  iceCandidatesCount: 0,
2986
- isSubnetReachable: null,
2987
- selectedCluster: null,
2991
+ subnet_reachable: null,
2992
+ selected_cluster: null,
2993
+ selected_subnet: null,
2988
2994
  },
2989
2995
  ]);
2990
2996
 
@@ -3191,8 +3197,9 @@ describe('plugin-meetings', () => {
3191
3197
  retriedWithTurnServer: true,
3192
3198
  isJoinWithMediaRetry: false,
3193
3199
  iceCandidatesCount: 0,
3194
- isSubnetReachable: null,
3195
- selectedCluster: null,
3200
+ subnet_reachable: null,
3201
+ selected_cluster: null,
3202
+ selected_subnet: null,
3196
3203
  },
3197
3204
  ]);
3198
3205
  meeting.roap.doTurnDiscovery;
@@ -3355,8 +3362,9 @@ describe('plugin-meetings', () => {
3355
3362
  iceCandidatesCount: 3,
3356
3363
  '701_error': 3,
3357
3364
  '701_turn_host_lookup_received_error': 1,
3358
- isSubnetReachable: null,
3359
- selectedCluster: 'some.cluster',
3365
+ subnet_reachable: null,
3366
+ selected_cluster: 'some.cluster',
3367
+ selected_subnet: null,
3360
3368
  }
3361
3369
  );
3362
3370
 
@@ -3419,8 +3427,9 @@ describe('plugin-meetings', () => {
3419
3427
  iceConnectionState: 'unknown',
3420
3428
  selectedCandidatePairChanges: 2,
3421
3429
  numTransports: 1,
3422
- isSubnetReachable: null,
3423
- selectedCluster: null,
3430
+ subnet_reachable: null,
3431
+ selected_cluster: null,
3432
+ selected_subnet: null,
3424
3433
  iceCandidatesCount: 0,
3425
3434
  }
3426
3435
  );
@@ -3482,8 +3491,9 @@ describe('plugin-meetings', () => {
3482
3491
  numTransports: 1,
3483
3492
  '701_error': 2,
3484
3493
  '701_turn_host_lookup_received_error': 1,
3485
- isSubnetReachable: null,
3486
- selectedCluster: null,
3494
+ subnet_reachable: null,
3495
+ selected_cluster: null,
3496
+ selected_subnet: null,
3487
3497
  iceCandidatesCount: 0,
3488
3498
  }
3489
3499
  );
@@ -3491,7 +3501,7 @@ describe('plugin-meetings', () => {
3491
3501
  assert.isOk(errorThrown);
3492
3502
  });
3493
3503
 
3494
- it('should send valid isSubnetReachability if media connection success', async () => {
3504
+ it('should send subnet reachablity metrics if media connection success', async () => {
3495
3505
  meeting.roap.doTurnDiscovery = sinon.stub().returns({
3496
3506
  turnServerInfo: undefined,
3497
3507
  turnDiscoverySkippedReason: undefined,
@@ -3505,6 +3515,12 @@ describe('plugin-meetings', () => {
3505
3515
  stopReachability: sinon.stub(),
3506
3516
  isSubnetReachable: sinon.stub().returns(false),
3507
3517
  };
3518
+ meeting.mediaServerIp = '1.2.3.4';
3519
+ meeting.mediaConnections = [
3520
+ {
3521
+ mediaAgentCluster: 'some.cluster',
3522
+ }
3523
+ ]
3508
3524
 
3509
3525
  const forceRtcMetricsSend = sinon.stub().resolves();
3510
3526
  const closeMediaConnectionStub = sinon.stub();
@@ -3532,12 +3548,13 @@ describe('plugin-meetings', () => {
3532
3548
  isJoinWithMediaRetry: false,
3533
3549
  iceCandidatesCount: 0,
3534
3550
  reachability_public_udp_success: 5,
3535
- isSubnetReachable: false,
3536
- selectedCluster: null,
3551
+ subnet_reachable: false,
3552
+ selected_cluster: 'some.cluster',
3553
+ selected_subnet: '1.X.X.X',
3537
3554
  });
3538
3555
  });
3539
3556
 
3540
- it('should send valid isSubnetReachability if media connection fails', async () => {
3557
+ it('should send subnet reachablity metrics if media connection fails', async () => {
3541
3558
  let errorThrown = undefined;
3542
3559
 
3543
3560
  meeting.roap.doTurnDiscovery = sinon.stub().returns({
@@ -3553,6 +3570,12 @@ describe('plugin-meetings', () => {
3553
3570
  stopReachability: sinon.stub(),
3554
3571
  isSubnetReachable: sinon.stub().returns(true),
3555
3572
  };
3573
+ meeting.mediaServerIp = '1.2.3.4';
3574
+ meeting.mediaConnections = [
3575
+ {
3576
+ mediaAgentCluster: 'some.cluster',
3577
+ }
3578
+ ]
3556
3579
 
3557
3580
  const forceRtcMetricsSend = sinon.stub().resolves();
3558
3581
  const closeMediaConnectionStub = sinon.stub();
@@ -3594,8 +3617,9 @@ describe('plugin-meetings', () => {
3594
3617
  selectedCandidatePairChanges: 2,
3595
3618
  numTransports: 1,
3596
3619
  reachability_public_udp_success: 5,
3597
- isSubnetReachable: true,
3598
- selectedCluster: null,
3620
+ subnet_reachable: true,
3621
+ selected_cluster: 'some.cluster',
3622
+ selected_subnet: '1.X.X.X',
3599
3623
  iceCandidatesCount: 0,
3600
3624
  }
3601
3625
  );
@@ -2764,14 +2764,10 @@ describe('isSubnetReachable', () => {
2764
2764
  });
2765
2765
 
2766
2766
  it('returns true if the subnet is reachable', () => {
2767
- assert(reachability.isSubnetReachable('1.2.3.4'));
2767
+ assert(reachability.isSubnetReachable('1'));
2768
2768
  });
2769
2769
 
2770
2770
  it(`returns false if the subnet is unreachable`, () => {
2771
- assert(!reachability.isSubnetReachable('11.2.3.4'));
2772
- });
2773
-
2774
- it('returns null if the subnet is not provided', () => {
2775
- assert.isNull(reachability.isSubnetReachable(undefined));
2771
+ assert(!reachability.isSubnetReachable('11'));
2776
2772
  });
2777
2773
  });