@@ -37,7 +37,7 @@ describe('fetchCapacityMetrics', () => {
3737 it ( 'should call UtilizationService with the correct bucket key' , async ( ) => {
3838 utilizationStub . callsArgWith ( 4 , null , { } ) ;
3939
40- await fetchCapacityMetrics ( bucketMd , request , log , 'testMethod' ) ;
40+ await fetchCapacityMetrics ( bucketMd , request , log ) ;
4141
4242 const expectedKey = `test-bucket_${ new Date ( '2024-01-01T00:00:00.000Z' ) . getTime ( ) } ` ;
4343 assert . strictEqual ( utilizationStub . getCall ( 0 ) . args [ 0 ] , 'bucket' ) ;
@@ -48,7 +48,7 @@ describe('fetchCapacityMetrics', () => {
4848 const bucketMetrics = { bytesTotal : 42 , date : '2026-03-26T19:00:08.996Z' } ;
4949 utilizationStub . callsArgWith ( 4 , null , bucketMetrics ) ;
5050
51- const metrics = await fetchCapacityMetrics ( bucketMd , request , log , 'testMethod' ) ;
51+ const metrics = await fetchCapacityMetrics ( bucketMd , request , log ) ;
5252
5353 assert . strictEqual ( metrics , bucketMetrics ) ;
5454 assert ( ! logWarnSpy . called ) ;
@@ -60,7 +60,7 @@ describe('fetchCapacityMetrics', () => {
6060 error404 . response = { status : 404 } ;
6161 utilizationStub . callsArgWith ( 4 , error404 ) ;
6262
63- const metrics = await fetchCapacityMetrics ( bucketMd , request , log , 'testMethod' ) ;
63+ const metrics = await fetchCapacityMetrics ( bucketMd , request , log ) ;
6464
6565 assert ( metrics && metrics . date instanceof Date , 'metrics should have a Date for date' ) ;
6666 assert ( logWarnSpy . calledOnce ) ;
@@ -75,7 +75,7 @@ describe('fetchCapacityMetrics', () => {
7575 error404 . statusCode = 404 ;
7676 utilizationStub . callsArgWith ( 4 , error404 ) ;
7777
78- const metrics = await fetchCapacityMetrics ( bucketMd , request , log , 'testMethod' ) ;
78+ const metrics = await fetchCapacityMetrics ( bucketMd , request , log ) ;
7979
8080 assert ( metrics && metrics . date instanceof Date , 'metrics should have a Date for date' ) ;
8181 assert ( logWarnSpy . calledOnce ) ;
@@ -87,7 +87,7 @@ describe('fetchCapacityMetrics', () => {
8787 utilizationStub . callsArgWith ( 4 , error500 ) ;
8888
8989 await assert . rejects (
90- fetchCapacityMetrics ( bucketMd , request , log , 'testMethod' ) ,
90+ fetchCapacityMetrics ( bucketMd , request , log ) ,
9191 err => err === error500 ,
9292 ) ;
9393
@@ -104,7 +104,7 @@ describe('fetchCapacityMetrics', () => {
104104 utilizationStub . callsArgWith ( 4 , connError ) ;
105105
106106 await assert . rejects (
107- fetchCapacityMetrics ( bucketMd , request , log , 'testMethod' ) ,
107+ fetchCapacityMetrics ( bucketMd , request , log ) ,
108108 err => err === connError ,
109109 ) ;
110110
@@ -174,7 +174,7 @@ describe('buildVeeamFileData', () => {
174174 metadataStub . callsArgWith ( 2 , new Error ( 'DB error' ) ) ;
175175
176176 await assert . rejects (
177- buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log , 'test' ) ,
177+ buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log ) ,
178178 err => err . code === 500 ,
179179 ) ;
180180 } ) ;
@@ -183,7 +183,7 @@ describe('buildVeeamFileData', () => {
183183 metadataStub . callsArgWith ( 2 , null , { _capabilities : { } } ) ;
184184
185185 await assert . rejects (
186- buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log , 'test' ) ,
186+ buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log ) ,
187187 err => err . code === 404 ,
188188 ) ;
189189 } ) ;
@@ -195,7 +195,7 @@ describe('buildVeeamFileData', () => {
195195 utilizationStub . callsArgWith ( 4 , error500 ) ;
196196
197197 await assert . rejects (
198- buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log , 'test' ) ,
198+ buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log ) ,
199199 err => err . code === 500 ,
200200 ) ;
201201 } ) ;
@@ -205,7 +205,7 @@ describe('buildVeeamFileData', () => {
205205 metadataStub . callsArgWith ( 2 , null , bucketMd ) ;
206206 utilizationStub . callsArgWith ( 4 , null , { date : metricsDate , bytesTotal : 100 } ) ;
207207
208- const result = await buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log , 'test' ) ;
208+ const result = await buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log ) ;
209209
210210 assert . strictEqual ( result . modified , metricsDate ) ;
211211 assert ( result . xmlContent . includes ( 'CapacityInfo' ) ) ;
@@ -223,7 +223,7 @@ describe('buildVeeamFileData', () => {
223223 error404 . response = { status : 404 } ;
224224 utilizationStub . callsArgWith ( 4 , error404 ) ;
225225
226- const result = await buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log , 'test' ) ;
226+ const result = await buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMd , log ) ;
227227
228228 assert ( result . modified instanceof Date ) ;
229229 assert ( result . modified . getTime ( ) >= before ) ;
@@ -234,7 +234,7 @@ describe('buildVeeamFileData', () => {
234234 metadataStub . callsArgWith ( 2 , null , bucketMdWithSystem ) ;
235235 const before = Date . now ( ) ;
236236
237- const result = await buildVeeamFileData ( createRequest ( systemObjectKey ) , bucketMdWithSystem , log , 'test' ) ;
237+ const result = await buildVeeamFileData ( createRequest ( systemObjectKey ) , bucketMdWithSystem , log ) ;
238238
239239 assert ( ! utilizationStub . called , 'should not call UtilizationService for system.xml' ) ;
240240 assert ( result . modified instanceof Date ) ;
@@ -261,7 +261,7 @@ describe('buildVeeamFileData', () => {
261261 metadataStub . callsArgWith ( 2 , null , bucketMdWithUsed ) ;
262262 utilizationStub . callsArgWith ( 4 , null , { date : new Date ( ) , bytesTotal : 999 } ) ;
263263
264- const result = await buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMdWithUsed , log , 'test' ) ;
264+ const result = await buildVeeamFileData ( createRequest ( capacityObjectKey ) , bucketMdWithUsed , log ) ;
265265
266266 assert ( result . xmlContent . includes ( '<Used>400</Used>' ) , 'should keep existing Used value' ) ;
267267 } ) ;
0 commit comments