@@ -3,7 +3,6 @@ const async = require('async');
33const werelogs = require ( 'werelogs' ) ;
44const { BucketInfo, ObjectMD } = require ( 'arsenal' ) . models ;
55const { constants } = require ( 'arsenal' ) ;
6- const sinon = require ( 'sinon' ) ;
76const S3UtilsMongoClient = require ( '../../utils/S3UtilsMongoClient' ) ;
87const CountMaster = require ( '../../CountItems/CountMaster' ) ;
98const CountManager = require ( '../../CountItems/CountManager' ) ;
@@ -34,67 +33,67 @@ const expectedCountItems = {
3433} ;
3534const expectedDataMetrics = {
3635 [ `account_${ testAccountCanonicalId } ` ] : {
37- objectCount : { current : 90 , deleteMarker : 0 , nonCurrent : 60 } ,
38- usedCapacity : { current : 9000 , nonCurrent : 6000 } ,
36+ objectCount : { current : 90n , deleteMarker : 0n , nonCurrent : 60n } ,
37+ usedCapacity : { current : 9000n , nonCurrent : 6000n } ,
3938 locations : {
4039 'secondary-location-1' : {
41- objectCount : { current : 30 , deleteMarker : 0 , nonCurrent : 30 } ,
42- usedCapacity : { current : 3000 , nonCurrent : 3000 } ,
40+ objectCount : { current : 30n , deleteMarker : 0n , nonCurrent : 30n } ,
41+ usedCapacity : { current : 3000n , nonCurrent : 3000n } ,
4342 } ,
4443 'secondary-location-2' : {
45- objectCount : { current : 30 , deleteMarker : 0 , nonCurrent : 30 } ,
46- usedCapacity : { current : 3000 , nonCurrent : 3000 } ,
44+ objectCount : { current : 30n , deleteMarker : 0n , nonCurrent : 30n } ,
45+ usedCapacity : { current : 3000n , nonCurrent : 3000n } ,
4746 } ,
4847 'us-east-1' : {
49- objectCount : { current : 90 , deleteMarker : 0 , nonCurrent : 60 } ,
50- usedCapacity : { current : 9000 , nonCurrent : 6000 } ,
48+ objectCount : { current : 90n , deleteMarker : 0n , nonCurrent : 60n } ,
49+ usedCapacity : { current : 9000n , nonCurrent : 6000n } ,
5150 } ,
5251 } ,
5352 } ,
5453 [ `bucket_test-bucket-0_${ testBucketCreationDate } ` ] : {
55- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 0 } ,
56- usedCapacity : { current : 1000 , nonCurrent : 0 } ,
54+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 0n } ,
55+ usedCapacity : { current : 1000n , nonCurrent : 0n } ,
5756 } ,
5857 [ `bucket_test-bucket-1_${ testBucketCreationDate } ` ] : {
59- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 0 } ,
60- usedCapacity : { current : 1000 , nonCurrent : 0 } ,
58+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 0n } ,
59+ usedCapacity : { current : 1000n , nonCurrent : 0n } ,
6160 } ,
6261 [ `bucket_test-bucket-2_${ testBucketCreationDate } ` ] : {
63- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 0 } ,
64- usedCapacity : { current : 1000 , nonCurrent : 0 } ,
62+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 0n } ,
63+ usedCapacity : { current : 1000n , nonCurrent : 0n } ,
6564 } ,
6665 [ `bucket_test-bucket-3_${ testBucketCreationDate } ` ] : {
67- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 10 } ,
68- usedCapacity : { current : 1000 , nonCurrent : 1000 } ,
66+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 10n } ,
67+ usedCapacity : { current : 1000n , nonCurrent : 1000n } ,
6968 } ,
7069 [ `bucket_test-bucket-4_${ testBucketCreationDate } ` ] : {
71- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 10 } ,
72- usedCapacity : { current : 1000 , nonCurrent : 1000 } ,
70+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 10n } ,
71+ usedCapacity : { current : 1000n , nonCurrent : 1000n } ,
7372 } ,
7473 [ `bucket_test-bucket-5_${ testBucketCreationDate } ` ] : {
75- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 10 } ,
76- usedCapacity : { current : 1000 , nonCurrent : 1000 } ,
74+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 10n } ,
75+ usedCapacity : { current : 1000n , nonCurrent : 1000n } ,
7776 } ,
7877 [ `bucket_test-bucket-6_${ testBucketCreationDate } ` ] : {
79- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 10 } ,
80- usedCapacity : { current : 1000 , nonCurrent : 1000 } ,
78+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 10n } ,
79+ usedCapacity : { current : 1000n , nonCurrent : 1000n } ,
8180 } ,
8281 [ `bucket_test-bucket-7_${ testBucketCreationDate } ` ] : {
83- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 10 } ,
84- usedCapacity : { current : 1000 , nonCurrent : 1000 } ,
82+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 10n } ,
83+ usedCapacity : { current : 1000n , nonCurrent : 1000n } ,
8584 } ,
8685 [ `bucket_test-bucket-8_${ testBucketCreationDate } ` ] : {
87- objectCount : { current : 10 , deleteMarker : 0 , nonCurrent : 10 } ,
88- usedCapacity : { current : 1000 , nonCurrent : 1000 } ,
86+ objectCount : { current : 10n , deleteMarker : 0n , nonCurrent : 10n } ,
87+ usedCapacity : { current : 1000n , nonCurrent : 1000n } ,
8988 } ,
9089 'location_secondary-location-1' : {
91- objectCount : { current : 30 , deleteMarker : 0 , nonCurrent : 30 } , usedCapacity : { current : 3000 , nonCurrent : 3000 } ,
90+ objectCount : { current : 30n , deleteMarker : 0n , nonCurrent : 30n } , usedCapacity : { current : 3000n , nonCurrent : 3000n } ,
9291 } ,
9392 'location_secondary-location-2' : {
94- objectCount : { current : 30 , deleteMarker : 0 , nonCurrent : 30 } , usedCapacity : { current : 3000 , nonCurrent : 3000 } ,
93+ objectCount : { current : 30n , deleteMarker : 0n , nonCurrent : 30n } , usedCapacity : { current : 3000n , nonCurrent : 3000n } ,
9594 } ,
9695 'location_us-east-1' : {
97- objectCount : { current : 90 , deleteMarker : 0 , nonCurrent : 60 } , usedCapacity : { current : 9000 , nonCurrent : 6000 } ,
96+ objectCount : { current : 90n , deleteMarker : 0n , nonCurrent : 60n } , usedCapacity : { current : 9000n , nonCurrent : 6000n } ,
9897 } ,
9998} ;
10099
0 commit comments