@@ -40,8 +40,8 @@ describe("runs", () => {
40
40
let messageType = Constants . messageTypes . ERROR ;
41
41
let errorCode = "random-error-code" ;
42
42
43
- const runs = proxyquire ( " ../../../../bin/commands/runs" , {
44
- " ../helpers/utils" : {
43
+ const runs = proxyquire ( ' ../../../../bin/commands/runs' , {
44
+ ' ../helpers/utils' : {
45
45
validateBstackJson : validateBstackJsonStub ,
46
46
getErrorCodeFromErr : getErrorCodeFromErrStub ,
47
47
sendUsageReport : sendUsageReportStub ,
@@ -98,6 +98,7 @@ describe("runs", () => {
98
98
setLocalStub = sandbox . stub ( ) ;
99
99
setLocalIdentifierStub = sandbox . stub ( ) ;
100
100
deleteResultsStub = sandbox . stub ( ) ;
101
+ defaultAuthHashStub = sandbox . stub ( ) ;
101
102
} ) ;
102
103
103
104
afterEach ( ( ) => {
@@ -110,8 +111,8 @@ describe("runs", () => {
110
111
let messageType = Constants . messageTypes . ERROR ;
111
112
let errorCode = "random-error-code" ;
112
113
113
- const runs = proxyquire ( " ../../../../bin/commands/runs" , {
114
- " ../helpers/utils" : {
114
+ const runs = proxyquire ( ' ../../../../bin/commands/runs' , {
115
+ ' ../helpers/utils' : {
115
116
validateBstackJson : validateBstackJsonStub ,
116
117
getErrorCodeFromMsg : getErrorCodeFromMsgStub ,
117
118
sendUsageReport : sendUsageReportStub ,
@@ -125,9 +126,10 @@ describe("runs", () => {
125
126
getConfigPath : getConfigPathStub ,
126
127
setLocal : setLocalStub ,
127
128
setLocalIdentifier : setLocalIdentifierStub ,
128
- deleteResults : deleteResultsStub
129
+ deleteResults : deleteResultsStub ,
130
+ defaultAuthHash : defaultAuthHashStub
129
131
} ,
130
- " ../helpers/capabilityHelper" : {
132
+ ' ../helpers/capabilityHelper' : {
131
133
validate : capabilityValidatorStub ,
132
134
} ,
133
135
} ) ;
@@ -149,6 +151,7 @@ describe("runs", () => {
149
151
sinon . assert . calledOnce ( setLocalStub ) ;
150
152
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
151
153
sinon . assert . calledOnce ( deleteResultsStub ) ;
154
+ sinon . assert . calledOnce ( defaultAuthHashStub ) ;
152
155
sinon . assert . calledOnceWithExactly (
153
156
sendUsageReportStub ,
154
157
bsConfig ,
@@ -185,6 +188,7 @@ describe("runs", () => {
185
188
setLocalStub = sandbox . stub ( ) ;
186
189
setLocalIdentifierStub = sandbox . stub ( ) ;
187
190
deleteResultsStub = sandbox . stub ( ) ;
191
+ defaultAuthHashStub = sandbox . stub ( ) ;
188
192
} ) ;
189
193
190
194
afterEach ( ( ) => {
@@ -197,8 +201,8 @@ describe("runs", () => {
197
201
let messageType = Constants . messageTypes . ERROR ;
198
202
let errorCode = "zip_creation_failed" ;
199
203
200
- const runs = proxyquire ( " ../../../../bin/commands/runs" , {
201
- " ../helpers/utils" : {
204
+ const runs = proxyquire ( ' ../../../../bin/commands/runs' , {
205
+ ' ../helpers/utils' : {
202
206
validateBstackJson : validateBstackJsonStub ,
203
207
sendUsageReport : sendUsageReportStub ,
204
208
setParallels : setParallelsStub ,
@@ -212,17 +216,18 @@ describe("runs", () => {
212
216
getConfigPath : getConfigPathStub ,
213
217
setLocal : setLocalStub ,
214
218
setLocalIdentifier : setLocalIdentifierStub ,
215
- deleteResults : deleteResultsStub
219
+ deleteResults : deleteResultsStub ,
220
+ defaultAuthHash : defaultAuthHashStub
216
221
} ,
217
- " ../helpers/capabilityHelper" : {
222
+ ' ../helpers/capabilityHelper' : {
218
223
validate : capabilityValidatorStub ,
219
224
} ,
220
- " ../helpers/archiver" : {
225
+ ' ../helpers/archiver' : {
221
226
archive : archiverStub ,
222
227
} ,
223
- " ../helpers/fileHelpers" : {
224
- deleteZip : deleteZipStub
225
- }
228
+ ' ../helpers/fileHelpers' : {
229
+ deleteZip : deleteZipStub ,
230
+ } ,
226
231
} ) ;
227
232
228
233
validateBstackJsonStub . returns ( Promise . resolve ( bsConfig ) ) ;
@@ -245,6 +250,7 @@ describe("runs", () => {
245
250
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
246
251
sinon . assert . calledOnce ( deleteZipStub ) ;
247
252
sinon . assert . calledOnce ( deleteResultsStub ) ;
253
+ sinon . assert . calledOnce ( defaultAuthHashStub ) ;
248
254
sinon . assert . calledOnceWithExactly (
249
255
sendUsageReportStub ,
250
256
bsConfig ,
@@ -282,6 +288,7 @@ describe("runs", () => {
282
288
setLocalStub = sandbox . stub ( ) ;
283
289
setLocalIdentifierStub = sandbox . stub ( ) ;
284
290
deleteResultsStub = sandbox . stub ( ) ;
291
+ defaultAuthHashStub = sandbox . stub ( ) ;
285
292
} ) ;
286
293
287
294
afterEach ( ( ) => {
@@ -294,8 +301,8 @@ describe("runs", () => {
294
301
let messageType = Constants . messageTypes . ERROR ;
295
302
let errorCode = "zip_upload_failed" ;
296
303
297
- const runs = proxyquire ( " ../../../../bin/commands/runs" , {
298
- " ../helpers/utils" : {
304
+ const runs = proxyquire ( ' ../../../../bin/commands/runs' , {
305
+ ' ../helpers/utils' : {
299
306
validateBstackJson : validateBstackJsonStub ,
300
307
sendUsageReport : sendUsageReportStub ,
301
308
setParallels : setParallelsStub ,
@@ -309,18 +316,19 @@ describe("runs", () => {
309
316
getConfigPath : getConfigPathStub ,
310
317
setLocal : setLocalStub ,
311
318
setLocalIdentifier : setLocalIdentifierStub ,
312
- deleteResults : deleteResultsStub
319
+ deleteResults : deleteResultsStub ,
320
+ defaultAuthHash : defaultAuthHashStub
313
321
} ,
314
- " ../helpers/capabilityHelper" : {
322
+ ' ../helpers/capabilityHelper' : {
315
323
validate : capabilityValidatorStub ,
316
324
} ,
317
- " ../helpers/archiver" : {
325
+ ' ../helpers/archiver' : {
318
326
archive : archiverStub ,
319
327
} ,
320
- " ../helpers/fileHelpers" : {
328
+ ' ../helpers/fileHelpers' : {
321
329
deleteZip : deleteZipStub ,
322
330
} ,
323
- " ../helpers/zipUpload" : {
331
+ ' ../helpers/zipUpload' : {
324
332
zipUpload : zipUploadStub ,
325
333
} ,
326
334
} ) ;
@@ -346,6 +354,7 @@ describe("runs", () => {
346
354
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
347
355
sinon . assert . calledOnce ( zipUploadStub ) ;
348
356
sinon . assert . calledOnce ( deleteResultsStub ) ;
357
+ sinon . assert . calledOnce ( defaultAuthHashStub ) ;
349
358
sinon . assert . calledOnceWithExactly (
350
359
sendUsageReportStub ,
351
360
bsConfig ,
@@ -387,6 +396,7 @@ describe("runs", () => {
387
396
setLocalStub = sandbox . stub ( ) ;
388
397
setLocalIdentifierStub = sandbox . stub ( ) ;
389
398
deleteResultsStub = sandbox . stub ( ) ;
399
+ defaultAuthHashStub = sandbox . stub ( ) ;
390
400
} ) ;
391
401
392
402
afterEach ( ( ) => {
@@ -399,8 +409,8 @@ describe("runs", () => {
399
409
let messageType = Constants . messageTypes . ERROR ;
400
410
let errorCode = "build_failed" ;
401
411
402
- const runs = proxyquire ( " ../../../../bin/commands/runs" , {
403
- " ../helpers/utils" : {
412
+ const runs = proxyquire ( ' ../../../../bin/commands/runs' , {
413
+ ' ../helpers/utils' : {
404
414
validateBstackJson : validateBstackJsonStub ,
405
415
sendUsageReport : sendUsageReportStub ,
406
416
setParallels : setParallelsStub ,
@@ -414,21 +424,22 @@ describe("runs", () => {
414
424
getConfigPath : getConfigPathStub ,
415
425
setLocal : setLocalStub ,
416
426
setLocalIdentifier : setLocalIdentifierStub ,
417
- deleteResults : deleteResultsStub
427
+ deleteResults : deleteResultsStub ,
428
+ defaultAuthHash : defaultAuthHashStub
418
429
} ,
419
- " ../helpers/capabilityHelper" : {
430
+ ' ../helpers/capabilityHelper' : {
420
431
validate : capabilityValidatorStub ,
421
432
} ,
422
- " ../helpers/archiver" : {
433
+ ' ../helpers/archiver' : {
423
434
archive : archiverStub ,
424
435
} ,
425
- " ../helpers/fileHelpers" : {
436
+ ' ../helpers/fileHelpers' : {
426
437
deleteZip : deleteZipStub ,
427
438
} ,
428
- " ../helpers/zipUpload" : {
439
+ ' ../helpers/zipUpload' : {
429
440
zipUpload : zipUploadStub ,
430
441
} ,
431
- " ../helpers/build" : {
442
+ ' ../helpers/build' : {
432
443
createBuild : createBuildStub ,
433
444
} ,
434
445
} ) ;
@@ -460,6 +471,7 @@ describe("runs", () => {
460
471
461
472
sinon . assert . calledOnce ( sendUsageReportStub ) ;
462
473
sinon . assert . calledOnce ( deleteResultsStub ) ;
474
+ sinon . assert . calledOnce ( defaultAuthHashStub ) ;
463
475
464
476
sinon . assert . calledOnceWithExactly (
465
477
sendUsageReportStub ,
@@ -503,6 +515,7 @@ describe("runs", () => {
503
515
deleteZipStub = sandbox . stub ( ) ;
504
516
exportResultsStub = sandbox . stub ( ) ;
505
517
deleteResultsStub = sandbox . stub ( ) ;
518
+ defaultAuthHashStub = sandbox . stub ( ) ;
506
519
isUndefinedStub = sandbox . stub ( ) ;
507
520
setLocalStub = sandbox . stub ( ) ;
508
521
setLocalIdentifierStub = sandbox . stub ( ) ;
@@ -536,6 +549,7 @@ describe("runs", () => {
536
549
setLocalIdentifier : setLocalIdentifierStub ,
537
550
exportResults : exportResultsStub ,
538
551
deleteResults : deleteResultsStub ,
552
+ defaultAuthHash : defaultAuthHashStub ,
539
553
isUndefined : isUndefinedStub
540
554
} ,
541
555
"../helpers/capabilityHelper" : {
@@ -584,6 +598,7 @@ describe("runs", () => {
584
598
sinon . assert . calledOnce ( createBuildStub ) ;
585
599
sinon . assert . calledOnce ( exportResultsStub ) ;
586
600
sinon . assert . calledOnce ( deleteResultsStub ) ;
601
+ sinon . assert . calledOnce ( defaultAuthHashStub ) ;
587
602
sinon . assert . calledOnceWithExactly (
588
603
sendUsageReportStub ,
589
604
bsConfig ,
0 commit comments