diff --git a/tests/functional/utils/S3UtilsMongoClient.js b/tests/functional/utils/S3UtilsMongoClient.js index 1da08337..e560364a 100644 --- a/tests/functional/utils/S3UtilsMongoClient.js +++ b/tests/functional/utils/S3UtilsMongoClient.js @@ -153,6 +153,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -163,6 +164,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'us-east-1': { @@ -176,6 +178,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -186,6 +189,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -203,6 +207,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -213,6 +218,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -228,6 +234,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -238,6 +245,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -311,6 +319,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -321,6 +330,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'us-east-1': { @@ -334,6 +344,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -344,6 +355,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -361,6 +373,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -371,6 +384,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -386,6 +400,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -396,6 +411,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -464,6 +480,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -474,6 +491,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'us-east-1': { @@ -487,6 +505,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -497,6 +516,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -514,6 +534,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -524,6 +545,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -539,6 +561,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -549,6 +572,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -625,6 +649,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -635,6 +660,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'us-east-1': { @@ -648,6 +674,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 10, @@ -658,6 +685,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'completed': { @@ -671,6 +699,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 10, @@ -681,6 +710,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -698,6 +728,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -708,6 +739,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -723,6 +755,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 10, @@ -733,6 +766,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'completed': { @@ -746,6 +780,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 10, @@ -756,6 +791,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -846,6 +882,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -856,6 +893,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'us-east-1': { @@ -869,6 +907,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -879,6 +918,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'completed': { @@ -892,6 +932,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 10, @@ -902,6 +943,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -919,6 +961,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -929,6 +972,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -944,6 +988,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -954,6 +999,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'completed': { @@ -967,6 +1013,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 10, @@ -977,6 +1024,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1094,6 +1142,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -1104,6 +1153,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'us-east-1': { @@ -1117,6 +1167,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -1127,6 +1178,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1144,6 +1196,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -1154,6 +1207,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1169,6 +1223,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -1179,6 +1234,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1331,6 +1387,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 1, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1341,6 +1398,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 10, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -1354,6 +1412,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 1, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1364,6 +1423,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 10, + _incompleteMPUParts: 0, }, }, }, @@ -1377,6 +1437,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 1, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1387,6 +1448,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 10, + _incompleteMPUParts: 0, }, }, }, @@ -1402,6 +1464,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 1, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1412,6 +1475,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 10, + _incompleteMPUParts: 0, }, }, }, @@ -1427,6 +1491,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 1, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1437,6 +1502,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 10, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -1450,6 +1516,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 1, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1460,6 +1527,7 @@ describe('S3UtilsMongoClient::getObjectMDStats', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 10, + _incompleteMPUParts: 0, }, }, }, diff --git a/tests/unit/CountItems/CountManager.js b/tests/unit/CountItems/CountManager.js index fd8b774f..ef07ff38 100644 --- a/tests/unit/CountItems/CountManager.js +++ b/tests/unit/CountItems/CountManager.js @@ -92,6 +92,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -102,6 +103,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { location1: { @@ -115,6 +117,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -125,6 +128,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -142,6 +146,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -152,6 +157,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -167,6 +173,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -177,6 +184,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -195,6 +203,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -206,6 +215,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { location1: { @@ -219,6 +229,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -230,6 +241,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -247,6 +259,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -258,6 +271,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -273,6 +287,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -284,6 +299,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -316,6 +332,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -327,6 +344,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { location1: { @@ -340,6 +358,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -351,6 +370,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -368,6 +388,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -379,6 +400,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -394,6 +416,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -405,6 +428,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -423,6 +447,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -434,6 +459,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { location1: { @@ -447,6 +473,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -458,6 +485,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -475,6 +503,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -486,6 +515,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -501,6 +531,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -512,6 +543,7 @@ describe('CountItems::CountManager', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, diff --git a/tests/unit/CountItems/utils/utils.js b/tests/unit/CountItems/utils/utils.js index 12a8e913..3142921d 100644 --- a/tests/unit/CountItems/utils/utils.js +++ b/tests/unit/CountItems/utils/utils.js @@ -12,6 +12,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, objectCount: { current: 0, @@ -23,6 +24,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }; @@ -37,6 +39,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, objectCount: { current: 10, @@ -48,6 +51,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }; @@ -62,6 +66,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, objectCount: { current: 20, @@ -73,6 +78,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }; @@ -87,6 +93,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, objectCount: { current: 20, @@ -98,6 +105,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }; @@ -112,6 +120,7 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, objectCount: { current: 40, @@ -123,6 +132,61 @@ describe('CountItems::utils::consolidateDataMetrics', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, + }, + }; + + const exampleWithMPU = { + usedCapacity: { + current: 20, + nonCurrent: 20, + _inflightsPreScan: 0, + _currentCold: 0, + _nonCurrentCold: 0, + _currentRestored: 0, + _currentRestoring: 0, + _nonCurrentRestored: 0, + _nonCurrentRestoring: 0, + _incompleteMPUParts: 100, + }, + objectCount: { + current: 20, + nonCurrent: 20, + deleteMarker: 20, + _currentCold: 0, + _nonCurrentCold: 0, + _currentRestored: 0, + _currentRestoring: 0, + _nonCurrentRestored: 0, + _nonCurrentRestoring: 0, + _incompleteMPUParts: 10, + }, + }; + + const expectedConsolidatedMPU = { + usedCapacity: { + current: 220, + nonCurrent: 30, + _inflightsPreScan: 0, + _currentCold: 0, + _nonCurrentCold: 0, + _currentRestored: 0, + _currentRestoring: 0, + _nonCurrentRestored: 0, + _nonCurrentRestoring: 0, + _incompleteMPUParts: 200, + }, + objectCount: { + current: 40, + nonCurrent: 21, + deleteMarker: 21, + _currentCold: 0, + _nonCurrentCold: 0, + _currentRestored: 0, + _currentRestoring: 0, + _nonCurrentRestored: 0, + _nonCurrentRestoring: 0, + _incompleteMPUParts: 20, }, }; @@ -174,4 +238,35 @@ describe('CountItems::utils::consolidateDataMetrics', () => { const res = consolidateDataMetrics(target, source); expect(res).toEqual(expectedResponseWithInflights); }); + + test('should consolidate MPUs', () => { + const source = { + usedCapacity: { + current: 100, + nonCurrent: 10, + _inflightsPreScan: 0, + _currentCold: 0, + _nonCurrentCold: 0, + _currentRestored: 0, + _currentRestoring: 0, + _nonCurrentRestored: 0, + _nonCurrentRestoring: 0, + _incompleteMPUParts: 100, + }, + objectCount: { + current: 10, + nonCurrent: 1, + deleteMarker: 1, + _currentCold: 0, + _nonCurrentCold: 0, + _currentRestored: 0, + _currentRestoring: 0, + _nonCurrentRestored: 0, + _nonCurrentRestoring: 0, + _incompleteMPUParts: 10, + }, + }; + const res = consolidateDataMetrics(exampleWithMPU, source); + expect(res).toEqual(expectedConsolidatedMPU); + }); }); diff --git a/tests/unit/utils/S3UtilsMongoClient.js b/tests/unit/utils/S3UtilsMongoClient.js index f16449fb..3ca84a22 100644 --- a/tests/unit/utils/S3UtilsMongoClient.js +++ b/tests/unit/utils/S3UtilsMongoClient.js @@ -139,6 +139,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 40, @@ -149,6 +150,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -164,6 +166,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -174,6 +177,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, location2: { @@ -187,6 +191,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -197,6 +202,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -212,6 +218,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 40, @@ -222,6 +229,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { location1: { @@ -235,6 +243,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -245,6 +254,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, location2: { @@ -258,6 +268,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -268,6 +279,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -303,6 +315,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 40, @@ -313,6 +326,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -328,6 +342,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -338,6 +353,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, location2: { @@ -351,6 +367,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -361,6 +378,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -376,6 +394,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 40, @@ -386,6 +405,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { location1: { @@ -399,6 +419,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -409,6 +430,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, location2: { @@ -422,6 +444,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 20, @@ -432,6 +455,7 @@ describe('S3UtilsMongoClient::_handleResults', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -479,7 +503,6 @@ describe('S3UtilsMongoClient::_handleResults', () => { describe('S3UtilsMongoClient::_processEntryData', () => { const testBucketName = 'testBucket'; const objectMdTemp = { - 'last-modified': new Date(), 'replicationInfo': { status: 'PENDING', backends: [], @@ -1175,6 +1198,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -1185,6 +1209,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'rep-loc-1': { @@ -1198,6 +1223,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1208,6 +1234,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -1221,6 +1248,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -1231,6 +1259,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1248,6 +1277,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -1258,6 +1288,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1273,6 +1304,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1283,6 +1315,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -1296,6 +1329,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -1306,6 +1340,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1364,6 +1399,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -1374,6 +1410,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'us-east-1': { @@ -1387,6 +1424,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -1397,6 +1435,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1414,6 +1453,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -1424,6 +1464,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1439,6 +1480,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -1449,6 +1491,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1527,6 +1570,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -1537,6 +1581,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'rep-loc-1': { @@ -1550,6 +1595,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1560,6 +1606,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -1573,6 +1620,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -1583,6 +1631,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1600,6 +1649,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -1610,6 +1660,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1625,6 +1676,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1635,6 +1687,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -1648,6 +1701,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -1658,6 +1712,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1757,6 +1812,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -1767,6 +1823,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'rep-loc-1': { @@ -1780,6 +1837,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1790,6 +1848,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -1803,6 +1862,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -1813,6 +1873,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'cold-location': { @@ -1826,6 +1887,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1836,6 +1898,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1853,6 +1916,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -1863,6 +1927,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1878,6 +1943,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1888,6 +1954,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -1901,6 +1968,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 100, @@ -1911,6 +1979,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'cold-location': { @@ -1924,6 +1993,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -1934,6 +2004,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -1991,6 +2062,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -2001,6 +2073,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'cold-location': { @@ -2014,6 +2087,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -2024,6 +2098,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -2037,6 +2112,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -2047,6 +2123,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -2064,6 +2141,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -2074,6 +2152,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -2089,6 +2168,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -2099,6 +2179,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'cold-location': { @@ -2112,6 +2193,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 1, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -2122,6 +2204,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 100, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -2203,6 +2286,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -2213,6 +2297,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, locations: { 'rep-loc-1': { @@ -2226,6 +2311,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -2236,6 +2322,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -2249,6 +2336,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -2259,6 +2347,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -2277,6 +2366,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -2288,6 +2378,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -2303,6 +2394,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 0, @@ -2313,6 +2405,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, 'us-east-1': { @@ -2326,6 +2419,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, usedCapacity: { current: 200, @@ -2336,6 +2430,7 @@ describe('S3UtilsMongoClient, tests', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, }, }, }, @@ -2408,6 +2503,7 @@ describe('S3UtilsMongoClient, update inflight deltas', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, _inflightsPreScan: 100, _inflight: 100, }, @@ -2420,6 +2516,7 @@ describe('S3UtilsMongoClient, update inflight deltas', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, deleteMarker: 0, }, }, @@ -2436,6 +2533,7 @@ describe('S3UtilsMongoClient, update inflight deltas', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, _inflightsPreScan: 1500, _inflight: 1500, }, @@ -2448,6 +2546,7 @@ describe('S3UtilsMongoClient, update inflight deltas', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, deleteMarker: 0, }, }, @@ -2463,6 +2562,7 @@ describe('S3UtilsMongoClient, update inflight deltas', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, _inflight: 0, }, objectCount: { @@ -2474,6 +2574,7 @@ describe('S3UtilsMongoClient, update inflight deltas', () => { _currentRestoring: 0, _nonCurrentRestored: 0, _nonCurrentRestoring: 0, + _incompleteMPUParts: 0, deleteMarker: 0, }, },