@webex/internal-plugin-dss 3.0.0-next.1 → 3.0.0-next.10
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 +14 -12
package/dist/dss.js
CHANGED
package/package.json
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@webex/common": "3.0.0-next.
|
|
24
|
-
"@webex/common-timers": "3.0.0-next.
|
|
25
|
-
"@webex/internal-plugin-mercury": "3.0.0-next.
|
|
26
|
-
"@webex/webex-core": "3.0.0-next.
|
|
23
|
+
"@webex/common": "3.0.0-next.7",
|
|
24
|
+
"@webex/common-timers": "3.0.0-next.7",
|
|
25
|
+
"@webex/internal-plugin-mercury": "3.0.0-next.9",
|
|
26
|
+
"@webex/webex-core": "3.0.0-next.7",
|
|
27
27
|
"lodash": "^4.17.21",
|
|
28
28
|
"uuid": "^3.3.2"
|
|
29
29
|
},
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
34
34
|
"@webex/jest-config-legacy": "0.0.0",
|
|
35
35
|
"@webex/legacy-tools": "0.0.0",
|
|
36
|
-
"@webex/test-helper-chai": "3.0.0-next.
|
|
37
|
-
"@webex/test-helper-mock-webex": "3.0.0-next.
|
|
38
|
-
"@webex/test-helper-test-users": "3.0.0-next.
|
|
36
|
+
"@webex/test-helper-chai": "3.0.0-next.7",
|
|
37
|
+
"@webex/test-helper-mock-webex": "3.0.0-next.7",
|
|
38
|
+
"@webex/test-helper-test-users": "3.0.0-next.7",
|
|
39
39
|
"eslint": "^8.24.0",
|
|
40
40
|
"prettier": "^2.7.1",
|
|
41
41
|
"sinon": "^9.2.4"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"test:style": "eslint ./src/**/*.*",
|
|
50
50
|
"test:unit": "webex-legacy-tools test --unit --runner jest"
|
|
51
51
|
},
|
|
52
|
-
"version": "3.0.0-next.
|
|
52
|
+
"version": "3.0.0-next.10"
|
|
53
53
|
}
|
package/test/unit/spec/dss.ts
CHANGED
|
@@ -241,22 +241,24 @@ describe('plugin-dss', () => {
|
|
|
241
241
|
expect(result).to.be.null;
|
|
242
242
|
});
|
|
243
243
|
it('fails with default timeout when mercury does not respond', async () => {
|
|
244
|
-
|
|
244
|
+
const {promise} = await testMakeRequest({
|
|
245
245
|
method: 'lookupDetail',
|
|
246
246
|
resource: '/lookup/orgid/userOrgId/identity/test id/detail',
|
|
247
247
|
params: {id: 'test id'},
|
|
248
248
|
bodyParams: {},
|
|
249
|
-
}).then(async ({promise}) => {
|
|
250
|
-
promise.catch((err) => {
|
|
251
|
-
expect(err.toString()).equal(
|
|
252
|
-
'DssTimeoutError: The DSS did not respond within 6000 ms.' +
|
|
253
|
-
'\n Request Id: randomid' +
|
|
254
|
-
'\n Resource: /lookup/orgid/userOrgId/identity/test id/detail' +
|
|
255
|
-
'\n Params: undefined'
|
|
256
|
-
);
|
|
257
|
-
});
|
|
258
|
-
await clock.tickAsync(6000);
|
|
259
249
|
});
|
|
250
|
+
|
|
251
|
+
promise.catch(() => {}); // to prevent the test from failing due to unhandled promise rejection
|
|
252
|
+
|
|
253
|
+
await clock.tickAsync(6000);
|
|
254
|
+
|
|
255
|
+
return assert.isRejected(
|
|
256
|
+
promise,
|
|
257
|
+
'The DSS did not respond within 6000 ms.' +
|
|
258
|
+
'\n Request Id: randomid' +
|
|
259
|
+
'\n Resource: /lookup/orgid/userOrgId/identity/test id/detail' +
|
|
260
|
+
'\n Params: undefined'
|
|
261
|
+
);
|
|
260
262
|
});
|
|
261
263
|
|
|
262
264
|
it('does not fail with timeout when mercury response in time', async () => {
|
|
@@ -1155,7 +1157,7 @@ describe('plugin-dss', () => {
|
|
|
1155
1157
|
expect(Batcher.prototype.request.getCall(1).args).to.deep.equal(['id2']);
|
|
1156
1158
|
expect(result).to.equal(response2);
|
|
1157
1159
|
});
|
|
1158
|
-
// TODO
|
|
1160
|
+
// TODO - https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-518037
|
|
1159
1161
|
it.skip('fails fails when mercury does not respond, later batches can still pass ok', async () => {
|
|
1160
1162
|
// Batch 1
|
|
1161
1163
|
const {
|