@webex/internal-plugin-dss 3.0.0-beta.414 → 3.0.0-beta.415
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/dss.js +1 -1
- package/package.json +8 -8
- package/test/unit/spec/dss.ts +11 -2
package/dist/dss.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/internal-plugin-dss",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.415",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colin Read <coread@cisco.com>",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@webex/common": "3.0.0-beta.
|
|
25
|
-
"@webex/common-timers": "3.0.0-beta.
|
|
26
|
-
"@webex/internal-plugin-mercury": "3.0.0-beta.
|
|
27
|
-
"@webex/webex-core": "3.0.0-beta.
|
|
24
|
+
"@webex/common": "3.0.0-beta.415",
|
|
25
|
+
"@webex/common-timers": "3.0.0-beta.415",
|
|
26
|
+
"@webex/internal-plugin-mercury": "3.0.0-beta.415",
|
|
27
|
+
"@webex/webex-core": "3.0.0-beta.415",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"uuid": "^3.3.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@webex/internal-plugin-dss": "3.0.0-beta.
|
|
33
|
-
"@webex/test-helper-chai": "3.0.0-beta.
|
|
34
|
-
"@webex/test-helper-mock-webex": "3.0.0-beta.
|
|
32
|
+
"@webex/internal-plugin-dss": "3.0.0-beta.415",
|
|
33
|
+
"@webex/test-helper-chai": "3.0.0-beta.415",
|
|
34
|
+
"@webex/test-helper-mock-webex": "3.0.0-beta.415",
|
|
35
35
|
"sinon": "^9.2.4"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/test/unit/spec/dss.ts
CHANGED
|
@@ -240,7 +240,6 @@ describe('plugin-dss', () => {
|
|
|
240
240
|
|
|
241
241
|
expect(result).to.be.null;
|
|
242
242
|
});
|
|
243
|
-
|
|
244
243
|
it('fails with default timeout when mercury does not respond', async () => {
|
|
245
244
|
const {promise} = await testMakeRequest({
|
|
246
245
|
method: 'lookupDetail',
|
|
@@ -249,6 +248,8 @@ describe('plugin-dss', () => {
|
|
|
249
248
|
bodyParams: {},
|
|
250
249
|
});
|
|
251
250
|
|
|
251
|
+
promise.catch(() => {}); // to prevent the test from failing due to unhandled promise rejection
|
|
252
|
+
|
|
252
253
|
await clock.tickAsync(6000);
|
|
253
254
|
|
|
254
255
|
return assert.isRejected(
|
|
@@ -626,6 +627,8 @@ describe('plugin-dss', () => {
|
|
|
626
627
|
bodyParams: {lookupValues: ['id1']},
|
|
627
628
|
});
|
|
628
629
|
|
|
630
|
+
promise.catch(() => {}); // to prevent the test from failing due to unhandled promise rejection
|
|
631
|
+
|
|
629
632
|
await clock.tickAsync(6000);
|
|
630
633
|
|
|
631
634
|
return assert.isRejected(
|
|
@@ -725,6 +728,8 @@ describe('plugin-dss', () => {
|
|
|
725
728
|
bodyParams: {lookupValues: ['email1']},
|
|
726
729
|
});
|
|
727
730
|
|
|
731
|
+
promise.catch(() => {}); // to prevent the test from failing due to unhandled promise rejection
|
|
732
|
+
|
|
728
733
|
await clock.tickAsync(6000);
|
|
729
734
|
|
|
730
735
|
return assert.isRejected(
|
|
@@ -827,6 +832,8 @@ describe('plugin-dss', () => {
|
|
|
827
832
|
},
|
|
828
833
|
});
|
|
829
834
|
|
|
835
|
+
promise.catch(() => {}); // to prevent the test from failing due to unhandled promise rejection
|
|
836
|
+
|
|
830
837
|
await clock.tickAsync(6000);
|
|
831
838
|
|
|
832
839
|
return assert.isRejected(
|
|
@@ -892,6 +899,8 @@ describe('plugin-dss', () => {
|
|
|
892
899
|
createData(requestId, 0, false, 'directoryEntities', ['data0'])
|
|
893
900
|
);
|
|
894
901
|
|
|
902
|
+
promise.catch(() => {}); // to prevent the test from failing due to unhandled promise rejection
|
|
903
|
+
|
|
895
904
|
await clock.tickAsync(6000);
|
|
896
905
|
|
|
897
906
|
return assert.isRejected(
|
|
@@ -907,7 +916,7 @@ describe('plugin-dss', () => {
|
|
|
907
916
|
describe('#_request', () => {
|
|
908
917
|
it('handles a request correctly', async () => {
|
|
909
918
|
webex.request = sinon.stub();
|
|
910
|
-
uuid.v4
|
|
919
|
+
uuid.v4();
|
|
911
920
|
const promise = webex.internal.dss._request({
|
|
912
921
|
resource: '/search/orgid/userOrgId/entities',
|
|
913
922
|
params: {some: 'param'},
|