teraslice 2.14.1 → 2.14.2

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.
@@ -194,7 +194,7 @@ export class ApiService {
194
194
  // @ts-expect-error
195
195
  requestHandler(() => this.clusterService.getClusterState());
196
196
  });
197
- v1routes.route('/assets*')
197
+ v1routes.route('/assets{*splat}')
198
198
  .delete((req, res) => {
199
199
  assetRedirect(req, res);
200
200
  })
@@ -411,7 +411,7 @@ export class ApiService {
411
411
  // backwards compatibility for /v1 routes
412
412
  this.app.use(v1routes);
413
413
  this.app.use('/v1', v1routes);
414
- this.app.route('/txt/assets*')
414
+ this.app.route('/txt/assets{*splat}')
415
415
  // @ts-expect-error
416
416
  .get(assetRedirect);
417
417
  this.app.get('/txt/workers', (req, res) => {
@@ -491,7 +491,7 @@ export class ApiService {
491
491
  });
492
492
  });
493
493
  // This is a catch all, any none supported api endpoints will return an error
494
- this.app.route('*')
494
+ this.app.route('*splat')
495
495
  .all((req, res) => {
496
496
  sendError(res, 405, `cannot ${req.method} endpoint ${req.originalUrl}`);
497
497
  });
@@ -29,7 +29,6 @@ describe('HTTP API', () => {
29
29
  api = new ApiService(context, { assetsUrl, app });
30
30
  await api.initialize();
31
31
  await new Promise((resolve, reject) => {
32
- // @ts-expect-error
33
32
  server = app.listen(port, (err) => {
34
33
  if (err)
35
34
  reject(err);
@@ -33,6 +33,17 @@ describe('S3 backend test', () => {
33
33
  }
34
34
  }
35
35
  };
36
+ describe('->S3Store', () => {
37
+ it('should throw when given an invalid bucket name', async () => {
38
+ s3Backend = new S3Store({
39
+ context,
40
+ terafoundation: context.sysconfig.terafoundation,
41
+ connection: 'default',
42
+ bucket: 'Invalid-Bucket-Name@'
43
+ });
44
+ await expect(s3Backend.initialize()).rejects.toThrow('Bucket name does not follow S3 naming rules: The specified bucket is not valid.');
45
+ });
46
+ });
36
47
  describe('->verifyClient', () => {
37
48
  beforeEach(async () => {
38
49
  s3Backend = new S3Store({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "teraslice",
3
3
  "displayName": "Teraslice",
4
- "version": "2.14.1",
4
+ "version": "2.14.2",
5
5
  "description": "Distributed computing platform for processing JSON data",
6
6
  "homepage": "https://github.com/terascope/teraslice#readme",
7
7
  "bugs": {
@@ -39,18 +39,18 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@kubernetes/client-node": "~0.22.3",
42
- "@terascope/elasticsearch-api": "~4.8.5",
43
- "@terascope/job-components": "~1.9.8",
44
- "@terascope/teraslice-messaging": "~1.10.8",
42
+ "@terascope/elasticsearch-api": "~4.8.6",
43
+ "@terascope/job-components": "~1.9.9",
44
+ "@terascope/teraslice-messaging": "~1.10.9",
45
45
  "@terascope/types": "~1.4.1",
46
- "@terascope/utils": "~1.7.7",
46
+ "@terascope/utils": "~1.7.8",
47
47
  "async-mutex": "~0.5.0",
48
48
  "barbe": "~3.0.17",
49
- "body-parser": "~1.20.3",
49
+ "body-parser": "~2.2.0",
50
50
  "decompress": "~4.2.1",
51
51
  "easy-table": "~1.2.0",
52
52
  "event-loop-stats": "~1.4.1",
53
- "express": "~4.21.2",
53
+ "express": "~5.1.0",
54
54
  "fs-extra": "~11.3.0",
55
55
  "gc-stats": "1.4.1",
56
56
  "get-port": "~7.1.0",
@@ -58,16 +58,16 @@
58
58
  "ip": "~2.0.1",
59
59
  "kubernetes-client": "~9.0.0",
60
60
  "ms": "~2.1.3",
61
- "nanoid": "~5.1.3",
61
+ "nanoid": "~5.1.5",
62
62
  "semver": "~7.7.1",
63
63
  "socket.io": "~1.7.4",
64
64
  "socket.io-client": "~1.7.4",
65
- "terafoundation": "~1.11.1",
65
+ "terafoundation": "~1.11.2",
66
66
  "uuid": "~11.1.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/archiver": "~6.0.3",
70
- "@types/express": "~4.17.21",
70
+ "@types/express": "~5.0.1",
71
71
  "@types/gc-stats": "~1.4.3",
72
72
  "archiver": "~7.0.1",
73
73
  "bufferstreams": "~3.0.0",