Skip to content

Commit

Permalink
feature: BKTCLT-3 upgrade to node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
miniscruff committed Jan 26, 2022
1 parent 4ed8f8b commit b420142
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 24 deletions.
2 changes: 1 addition & 1 deletion bin/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ logs.configure({
dump: 'error',
});

require('../lib/shell.js')();
require('../lib/shell')();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"agentkeepalive": "^4.1.4",
"arsenal": "scality/Arsenal#7.4.9.4",
"arsenal": "scality/Arsenal#feature/ARSN-21/UpgradeToNode16",
"werelogs": "scality/werelogs#8.1.0"
}
}
11 changes: 7 additions & 4 deletions tests/unit/simple_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const https = require('https');

const errors = require('arsenal').errors;

const RESTClient = require('../../index.js').RESTClient;
const RESTClient = require('../../index').RESTClient;

const existBucket = {
name: 'Zaphod',
Expand Down Expand Up @@ -92,15 +92,18 @@ Object.keys(env).forEach(key => {
let client;

beforeEach('start server', done => {
server = e.s(handler).listen(9000, done).on('error', done);
client = e.c;
server = e.s(handler).on('error', done).listen(9000, done);
});

afterEach('stop server', () => { server.close(); });
afterEach('stop server', done => {
client.agent.destroy();
server.close(done);
});

it('should create a new non-existing bucket', done => {
client.createBucket(nonExistBucket.name, reqUids,
'{ status: "dead" }', done);
'{ status: "dead" }', done);
});

it('should try to create an already existing bucket and fail', done => {
Expand Down
30 changes: 12 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ arraybuffer.slice@~0.0.7:
resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz#3bbc4275dd584cc1b10809b89d4e8b63a69e7675"
integrity sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==

arsenal@scality/Arsenal#7.4.9.4:
arsenal@scality/Arsenal#feature/ARSN-21/UpgradeToNode16:
version "7.4.13"
resolved "https://codeload.github.com/scality/Arsenal/tar.gz/f4f867d9fbe3b7c4be5ca95a179b5d7c19ffe784"
resolved "https://codeload.github.com/scality/Arsenal/tar.gz/8c3f304d9be7bf07e57a790b9ded70705300e93d"
dependencies:
"@hapi/joi" "^15.1.0"
JSONStream "^1.0.0"
Expand All @@ -239,10 +239,10 @@ arsenal@scality/Arsenal#7.4.9.4:
socket.io-client "~2.3.0"
utf8 "2.1.2"
uuid "^3.0.1"
werelogs scality/werelogs#0ff7ec82
werelogs scality/werelogs#8.1.0
xml2js "~0.4.23"
optionalDependencies:
ioctl "2.0.0"
ioctl "^2.0.2"

async-limiter@~1.0.0:
version "1.0.1"
Expand Down Expand Up @@ -298,7 +298,7 @@ binary-extensions@^2.0.0:
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==

bindings@^1.1.1:
bindings@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df"
integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==
Expand Down Expand Up @@ -1151,13 +1151,13 @@ inquirer@^0.12.0:
strip-ansi "^3.0.0"
through "^2.3.6"

[email protected].0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/ioctl/-/ioctl-2.0.0.tgz#2aacbd73eb6ff9ad01fdf3ecc3390ee57781100e"
integrity sha1-Kqy9c+tv+a0B/fPswzkO5XeBEA4=
ioctl@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/ioctl/-/ioctl-2.0.2.tgz#21543f661cb1b044761cbf721f5dde6be08ed060"
integrity sha512-GPEiU99bJb3Z50JDRujQ9t+q4JaRvc1UrD7F5/kHDVWlRA3L4TMwqbMw/XIu/BzqccFP8OfsK+JIXmlAvJDs1g==
dependencies:
bindings "^1.1.1"
nan "^2.3.2"
bindings "^1.5.0"
nan "^2.14.0"

[email protected]:
version "4.9.5"
Expand Down Expand Up @@ -1625,7 +1625,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0"
integrity sha1-j7+rsKmKJT0xhDMfno3rc3L6xsA=

nan@^2.14.0, nan@^2.3.2:
nan@^2.14.0:
version "2.15.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee"
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
Expand Down Expand Up @@ -2337,12 +2337,6 @@ uuid@^3.0.1:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==

werelogs@scality/werelogs#0ff7ec82:
version "7.4.0"
resolved "https://codeload.github.com/scality/werelogs/tar.gz/0ff7ec82f0deb1e472d8285fb7cc9ebde72c5f61"
dependencies:
safe-json-stringify "1.0.3"

werelogs@scality/werelogs#8.1.0:
version "8.1.0"
resolved "https://codeload.github.com/scality/werelogs/tar.gz/e8f828725642c54c511cdbe580b18f43d3589313"
Expand Down

0 comments on commit b420142

Please sign in to comment.