From 916ce31151b9bbc3f829d953a92eaa0195fc0e6f Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Wed, 22 Jan 2025 16:12:05 +0100 Subject: [PATCH] fixup --- package.json | 4 ++-- tests/functional/utils/S3UtilsMongoClient.js | 14 +++++++------- yarn.lock | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index d9f9abfd..5bf176af 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "lint": "eslint $(git ls-files '*.js')", "test:unit": "LOCATION_CONFIG_FILE='tests/conf/locationConfig.json' yarn jest --verbose --logHeapUsage --projects jest.config.js --coverage --testPathPattern='tests/unit/[\\w/-]+\\.[tj]s'", - "test:functional": "LOCATION_CONFIG_FILE='tests/conf/locationConfig.json' yarn jest --verbose --logHeapUsage --projects jest.config.js --coverage --testPathPattern='tests/functional/utils/S3UtilsMongoClient.js'" + "test:functional": "LOCATION_CONFIG_FILE='tests/conf/locationConfig.json' yarn jest --verbose --logHeapUsage --projects jest.config.js --coverage --testPathPattern='tests/functional/[\\w/-]+\\.[tj]s'" }, "repository": { "type": "git", @@ -28,7 +28,7 @@ "dependencies": { "@senx/warp10": "^1.1.2", "JSONStream": "^1.3.5", - "arsenal": "git+https://github.com/scality/arsenal#c3c3c10f71d1513f704f1b22886fb9eaaf5f5ac2", + "arsenal": "git+https://github.com/scality/arsenal#3c8219beb3785a66d1a5d74b4dff14eda869348f", "async": "^2.6.4", "aws-sdk": "^2.1005.0", "bucketclient": "git+https://github.com/scality/bucketclient#8.1.5", diff --git a/tests/functional/utils/S3UtilsMongoClient.js b/tests/functional/utils/S3UtilsMongoClient.js index 805d8563..b37106a2 100644 --- a/tests/functional/utils/S3UtilsMongoClient.js +++ b/tests/functional/utils/S3UtilsMongoClient.js @@ -297,7 +297,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { afterEach(done => client.deleteBucket(BUCKET_NAME, logger, done)); - it.only(`Should get correct results ${variation.it}`, done => { + it(`Should get correct results ${variation.it}`, done => { const expected = { versions: BigInt(1), objects: BigInt(2), @@ -1636,9 +1636,9 @@ describe('S3UtilsMongoClient::updateBucketCapacityInfo', () => { it(`Should correctly update CapacityInfo attributes ${variation.it}`, done => { const startTime = new Date(); const capacityInfo = { - Capacity: 30, - Available: 10, - Used: 10, + Capacity: BigInt(30), + Available: BigInt(10), + Used: BigInt(10), }; async.series([ next => client.createBucket(BUCKET_NAME, bucketMD, logger, next), @@ -1651,9 +1651,9 @@ describe('S3UtilsMongoClient::updateBucketCapacityInfo', () => { const { Capacity, Available, Used, LastModified, } = bucketInfo.getCapabilities().VeeamSOSApi.CapacityInfo; - assert.strictEqual(Capacity, 30); - assert.strictEqual(Available, 10); - assert.strictEqual(Used, 10); + assert.strictEqual(Capacity, BigInt(30)); + assert.strictEqual(Available, BigInt(10)); + assert.strictEqual(Used, BigInt(10)); assert(new Date(LastModified) > startTime); assert(new Date(LastModified) < new Date()); next(); diff --git a/yarn.lock b/yarn.lock index d8a810ea..1798cff9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1593,9 +1593,9 @@ arrify@^1.0.1: optionalDependencies: ioctl "^2.0.2" -"arsenal@git+https://github.com/scality/arsenal#c3c3c10f71d1513f704f1b22886fb9eaaf5f5ac2": +"arsenal@git+https://github.com/scality/arsenal#3c8219beb3785a66d1a5d74b4dff14eda869348f": version "8.1.145" - resolved "git+https://github.com/scality/arsenal#c3c3c10f71d1513f704f1b22886fb9eaaf5f5ac2" + resolved "git+https://github.com/scality/arsenal#3c8219beb3785a66d1a5d74b4dff14eda869348f" dependencies: "@azure/identity" "^3.1.1" "@azure/storage-blob" "^12.12.0"