@webex/internal-plugin-dss 3.0.0-next.1 → 3.0.0-next.11

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 CHANGED
@@ -388,7 +388,7 @@ var DSS = _webexCore.WebexPlugin.extend({
388
388
  return _promise.default.reject(error);
389
389
  });
390
390
  },
391
- version: "3.0.0-next.1"
391
+ version: "3.0.0-next.11"
392
392
  });
393
393
  var _default = exports.default = DSS;
394
394
  //# sourceMappingURL=dss.js.map
package/package.json CHANGED
@@ -20,10 +20,10 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@webex/common": "3.0.0-next.1",
24
- "@webex/common-timers": "3.0.0-next.1",
25
- "@webex/internal-plugin-mercury": "3.0.0-next.1",
26
- "@webex/webex-core": "3.0.0-next.1",
23
+ "@webex/common": "3.0.0-next.8",
24
+ "@webex/common-timers": "3.0.0-next.8",
25
+ "@webex/internal-plugin-mercury": "3.0.0-next.10",
26
+ "@webex/webex-core": "3.0.0-next.8",
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.1",
37
- "@webex/test-helper-mock-webex": "3.0.0-next.1",
38
- "@webex/test-helper-test-users": "3.0.0-next.1",
36
+ "@webex/test-helper-chai": "3.0.0-next.8",
37
+ "@webex/test-helper-mock-webex": "3.0.0-next.8",
38
+ "@webex/test-helper-test-users": "3.0.0-next.8",
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.1"
52
+ "version": "3.0.0-next.11"
53
53
  }
@@ -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
- return testMakeRequest({
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 {