teraslice 2.16.2 → 2.16.4
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/test/lib/cluster/services/cluster/backends/kubernetes/k8s-spec.js +1 -1
- package/dist/test/node_master-spec.js +1 -1
- package/dist/test/utils/elastic_utils-spec.js +4 -4
- package/dist/test/workers/execution-controller/execution-controller-spec.js +1 -1
- package/dist/test/workers/worker/slice-spec.js +3 -3
- package/dist/test/workers/worker/worker-spec.js +1 -1
- package/package.json +15 -15
|
@@ -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.
|
|
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.
|
|
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
|
-
}).
|
|
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
|
-
}).
|
|
16
|
+
}).toThrow();
|
|
17
17
|
expect(() => {
|
|
18
18
|
dateOptions(3);
|
|
19
|
-
}).
|
|
19
|
+
}).toThrow();
|
|
20
20
|
expect(() => {
|
|
21
21
|
dateOptions({ some: 'obj' });
|
|
22
|
-
}).
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
4
|
+
"version": "2.16.4",
|
|
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,13 @@
|
|
|
25
25
|
"build": "tsc --build",
|
|
26
26
|
"build:watch": "yarn build --watch",
|
|
27
27
|
"start": "node service.js",
|
|
28
|
-
"test": "TEST_ELASTICSEARCH='true'
|
|
29
|
-
"test:debug": "TEST_ELASTICSEARCH='true'
|
|
30
|
-
"test:elasticsearch6": "TEST_ELASTICSEARCH='true' ELASTICSEARCH_VERSION='6.8.6'
|
|
31
|
-
"test:elasticsearch7": "TEST_ELASTICSEARCH='true' ELASTICSEARCH_VERSION='7.9.3'
|
|
32
|
-
"test:opensearch1": "TEST_OPENSEARCH='true'
|
|
33
|
-
"test:opensearch2": "TEST_OPENSEARCH='true' OPENSEARCH_VERSION='2.15.0'
|
|
34
|
-
"test:watch": "TEST_ELASTICSEARCH='true'
|
|
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:watch": "TEST_ELASTICSEARCH='true' node ../scripts/bin/ts-scripts test --watch ../teraslice --"
|
|
35
35
|
},
|
|
36
36
|
"resolutions": {
|
|
37
37
|
"debug": "~4.4.1",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@kubernetes/client-node": "~1.3.0",
|
|
42
|
-
"@terascope/elasticsearch-api": "~4.9.
|
|
43
|
-
"@terascope/job-components": "~1.10.
|
|
44
|
-
"@terascope/teraslice-messaging": "~1.11.
|
|
42
|
+
"@terascope/elasticsearch-api": "~4.9.3",
|
|
43
|
+
"@terascope/job-components": "~1.10.3",
|
|
44
|
+
"@terascope/teraslice-messaging": "~1.11.3",
|
|
45
45
|
"@terascope/types": "~1.4.1",
|
|
46
|
-
"@terascope/utils": "~1.8.
|
|
46
|
+
"@terascope/utils": "~1.8.3",
|
|
47
47
|
"async-mutex": "~0.5.0",
|
|
48
48
|
"barbe": "~3.0.17",
|
|
49
49
|
"body-parser": "~2.2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"fs-extra": "~11.3.0",
|
|
55
55
|
"gc-stats": "1.4.1",
|
|
56
56
|
"get-port": "~7.1.0",
|
|
57
|
-
"got": "~
|
|
57
|
+
"got": "~14.4.7",
|
|
58
58
|
"ip": "~2.0.1",
|
|
59
59
|
"kubernetes-client": "~9.0.0",
|
|
60
60
|
"ms": "~2.1.3",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"semver": "~7.7.2",
|
|
63
63
|
"socket.io": "~1.7.4",
|
|
64
64
|
"socket.io-client": "~1.7.4",
|
|
65
|
-
"terafoundation": "~1.12.
|
|
65
|
+
"terafoundation": "~1.12.6",
|
|
66
66
|
"uuid": "~11.1.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/archiver": "~6.0.3",
|
|
70
|
-
"@types/express": "~5.0.
|
|
70
|
+
"@types/express": "~5.0.3",
|
|
71
71
|
"@types/gc-stats": "~1.4.3",
|
|
72
72
|
"archiver": "~7.0.1",
|
|
73
73
|
"bufferstreams": "~3.0.0",
|