teraslice 2.16.3 → 2.17.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.
@@ -109,7 +109,7 @@ describe('k8s', () => {
109
109
  .query({ labelSelector: 'app=teraslice' })
110
110
  .reply(200, { items: [] });
111
111
  await expect(k8s.nonEmptyList('app=teraslice', 'jobs'))
112
- .rejects.toThrowError('Teraslice jobs matching the following selector was not found: app=teraslice (retriable)');
112
+ .rejects.toThrow('Teraslice jobs matching the following selector was not found: app=teraslice (retriable)');
113
113
  });
114
114
  });
115
115
  describe('->post', () => {
@@ -166,7 +166,7 @@ describe('Node master', () => {
166
166
  });
167
167
  afterAll(() => fakeClusterMaster.close());
168
168
  it('can load without throwing', () => {
169
- expect(() => setUpNodeMaster()).not.toThrowError();
169
+ expect(() => setUpNodeMaster()).not.toThrow();
170
170
  });
171
171
  it('can remove workers', async () => {
172
172
  setUpNodeMaster();
@@ -7,19 +7,19 @@ describe('elastic_utils', () => {
7
7
  it('dateOptions returns a string used for the moment library', () => {
8
8
  expect(() => {
9
9
  dateOptions('Day');
10
- }).toThrowError();
10
+ }).toThrow();
11
11
  expect(dateOptions('day')).toEqual('d');
12
12
  });
13
13
  it('dateOptions will throw a new error if not given correct values', () => {
14
14
  expect(() => {
15
15
  dateOptions('hourz');
16
- }).toThrowError();
16
+ }).toThrow();
17
17
  expect(() => {
18
18
  dateOptions(3);
19
- }).toThrowError();
19
+ }).toThrow();
20
20
  expect(() => {
21
21
  dateOptions({ some: 'obj' });
22
- }).toThrowError();
22
+ }).toThrow();
23
23
  });
24
24
  });
25
25
  //# sourceMappingURL=elastic_utils-spec.js.map
@@ -239,7 +239,7 @@ describe('ExecutionController', () => {
239
239
  setTimeout(() => {
240
240
  exController.events.emit('worker:shutdown:complete', new Error('Uh oh'));
241
241
  });
242
- await expect(exController.shutdown()).rejects.toThrowError('Uh oh');
242
+ await expect(exController.shutdown()).rejects.toThrow('Uh oh');
243
243
  });
244
244
  });
245
245
  describe('when everything errors', () => {
@@ -320,13 +320,13 @@ describe('Slice', () => {
320
320
  });
321
321
  it('should throw an error when marking it as failed', async () => {
322
322
  // @ts-expect-error
323
- await expect(slice._markFailed(new Error('some error'))).rejects.toThrowError(/Failure to update error state/);
323
+ await expect(slice._markFailed(new Error('some error'))).rejects.toThrow(/Failure to update error state/);
324
324
  // @ts-expect-error
325
- await expect(slice._markFailed()).rejects.toThrowError(/Failure to update error state/);
325
+ await expect(slice._markFailed()).rejects.toThrow(/Failure to update error state/);
326
326
  });
327
327
  it('should throw an error when marking it as complete', async () => {
328
328
  // @ts-expect-error
329
- await expect(slice._markCompleted()).rejects.toThrowError(/Failure to update completed state/);
329
+ await expect(slice._markCompleted()).rejects.toThrow(/Failure to update completed state/);
330
330
  });
331
331
  });
332
332
  });
@@ -310,7 +310,7 @@ describe('Worker', () => {
310
310
  setTimeout(() => {
311
311
  worker.events.emit('worker:shutdown:complete', new Error('Uh oh'));
312
312
  });
313
- await expect(worker.shutdown()).rejects.toThrowError('Uh oh');
313
+ await expect(worker.shutdown()).rejects.toThrow('Uh oh');
314
314
  });
315
315
  });
316
316
  describe('when everything errors', () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "teraslice",
3
3
  "displayName": "Teraslice",
4
- "version": "2.16.3",
4
+ "version": "2.17.0",
5
5
  "description": "Distributed computing platform for processing JSON data",
6
6
  "homepage": "https://github.com/terascope/teraslice#readme",
7
7
  "bugs": {
@@ -25,13 +25,14 @@
25
25
  "build": "tsc --build",
26
26
  "build:watch": "yarn build --watch",
27
27
  "start": "node service.js",
28
- "test": "TEST_ELASTICSEARCH='true' yarn workspace @terascope/scripts ts-scripts test ../teraslice --",
29
- "test:debug": "TEST_ELASTICSEARCH='true' yarn workspace @terascope/scripts ts-scripts test --debug ../teraslice --",
30
- "test:elasticsearch6": "TEST_ELASTICSEARCH='true' ELASTICSEARCH_VERSION='6.8.6' yarn workspace @terascope/scripts ts-scripts test ../teraslice --",
31
- "test:elasticsearch7": "TEST_ELASTICSEARCH='true' ELASTICSEARCH_VERSION='7.9.3' yarn workspace @terascope/scripts ts-scripts test ../teraslice --",
32
- "test:opensearch1": "TEST_OPENSEARCH='true' yarn workspace @terascope/scripts ts-scripts test ../teraslice --",
33
- "test:opensearch2": "TEST_OPENSEARCH='true' OPENSEARCH_VERSION='2.15.0' yarn workspace @terascope/scripts ts-scripts test ../teraslice --",
34
- "test:watch": "TEST_ELASTICSEARCH='true' yarn workspace @terascope/scripts ts-scripts test --watch ../teraslice --"
28
+ "test": "TEST_ELASTICSEARCH='true' node ../scripts/bin/ts-scripts test ../teraslice --",
29
+ "test:debug": "TEST_ELASTICSEARCH='true' node ../scripts/bin/ts-scripts test --debug ../teraslice --",
30
+ "test:elasticsearch6": "TEST_ELASTICSEARCH='true' ELASTICSEARCH_VERSION='6.8.6' node ../scripts/bin/ts-scripts test ../teraslice --",
31
+ "test:elasticsearch7": "TEST_ELASTICSEARCH='true' ELASTICSEARCH_VERSION='7.9.3' node ../scripts/bin/ts-scripts test ../teraslice --",
32
+ "test:opensearch1": "TEST_OPENSEARCH='true' node ../scripts/bin/ts-scripts test ../teraslice --",
33
+ "test:opensearch2": "TEST_OPENSEARCH='true' OPENSEARCH_VERSION='2.15.0' node ../scripts/bin/ts-scripts test ../teraslice --",
34
+ "test:opensearch3": "TEST_OPENSEARCH='true' OPENSEARCH_VERSION='3.1.0' node ../scripts/bin/ts-scripts test ../teraslice --",
35
+ "test:watch": "TEST_ELASTICSEARCH='true' node ../scripts/bin/ts-scripts test --watch ../teraslice --"
35
36
  },
36
37
  "resolutions": {
37
38
  "debug": "~4.4.1",
@@ -39,11 +40,11 @@
39
40
  },
40
41
  "dependencies": {
41
42
  "@kubernetes/client-node": "~1.3.0",
42
- "@terascope/elasticsearch-api": "~4.9.2",
43
- "@terascope/job-components": "~1.10.2",
44
- "@terascope/teraslice-messaging": "~1.11.2",
45
- "@terascope/types": "~1.4.1",
46
- "@terascope/utils": "~1.8.2",
43
+ "@terascope/elasticsearch-api": "~4.11.0",
44
+ "@terascope/job-components": "~1.11.3",
45
+ "@terascope/teraslice-messaging": "~1.12.3",
46
+ "@terascope/types": "~1.4.3",
47
+ "@terascope/utils": "~1.9.3",
47
48
  "async-mutex": "~0.5.0",
48
49
  "barbe": "~3.0.17",
49
50
  "body-parser": "~2.2.0",
@@ -62,12 +63,12 @@
62
63
  "semver": "~7.7.2",
63
64
  "socket.io": "~1.7.4",
64
65
  "socket.io-client": "~1.7.4",
65
- "terafoundation": "~1.12.5",
66
+ "terafoundation": "~1.14.0",
66
67
  "uuid": "~11.1.0"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@types/archiver": "~6.0.3",
70
- "@types/express": "~5.0.2",
71
+ "@types/express": "~5.0.3",
71
72
  "@types/gc-stats": "~1.4.3",
72
73
  "archiver": "~7.0.1",
73
74
  "bufferstreams": "~3.0.0",