@@ -89,6 +89,8 @@ describe("runs", () => {
89
89
} ) ;
90
90
getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
91
91
capabilityValidatorStub = sandbox . stub ( ) ;
92
+ setLocalStub = sandbox . stub ( ) ;
93
+ setLocalIdentifierStub = sandbox . stub ( ) ;
92
94
} ) ;
93
95
94
96
afterEach ( ( ) => {
@@ -110,7 +112,9 @@ describe("runs", () => {
110
112
setUsername : setUsernameStub ,
111
113
setAccessKey : setAccessKeyStub ,
112
114
setBuildName : setBuildNameStub ,
113
- getConfigPath : getConfigPathStub
115
+ getConfigPath : getConfigPathStub ,
116
+ setLocal : setLocalStub ,
117
+ setLocalIdentifier : setLocalIdentifierStub
114
118
} ,
115
119
"../helpers/capabilityHelper" : {
116
120
validate : capabilityValidatorStub ,
@@ -131,6 +135,8 @@ describe("runs", () => {
131
135
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
132
136
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
133
137
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
138
+ sinon . assert . calledOnce ( setLocalStub ) ;
139
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
134
140
sinon . assert . calledOnceWithExactly (
135
141
sendUsageReportStub ,
136
142
bsConfig ,
@@ -161,6 +167,8 @@ describe("runs", () => {
161
167
capabilityValidatorStub = sandbox . stub ( ) ;
162
168
archiverStub = sandbox . stub ( ) ;
163
169
deleteZipStub = sandbox . stub ( ) ;
170
+ setLocalStub = sandbox . stub ( ) ;
171
+ setLocalIdentifierStub = sandbox . stub ( ) ;
164
172
} ) ;
165
173
166
174
afterEach ( ( ) => {
@@ -182,7 +190,9 @@ describe("runs", () => {
182
190
setAccessKey : setAccessKeyStub ,
183
191
setBuildName : setBuildNameStub ,
184
192
setUsageReportingFlag : setUsageReportingFlagStub ,
185
- getConfigPath : getConfigPathStub
193
+ getConfigPath : getConfigPathStub ,
194
+ setLocal : setLocalStub ,
195
+ setLocalIdentifier : setLocalIdentifierStub
186
196
} ,
187
197
"../helpers/capabilityHelper" : {
188
198
validate : capabilityValidatorStub ,
@@ -206,7 +216,9 @@ describe("runs", () => {
206
216
. catch ( ( error ) => {
207
217
sinon . assert . calledOnce ( getConfigPathStub ) ;
208
218
sinon . assert . calledOnce ( getConfigPathStub ) ;
209
- sinon . assert . calledOnce ( setParallelsStub )
219
+ sinon . assert . calledOnce ( setParallelsStub ) ;
220
+ sinon . assert . calledOnce ( setLocalStub ) ;
221
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
210
222
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
211
223
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
212
224
sinon . assert . calledOnce ( archiverStub ) ;
@@ -243,6 +255,8 @@ describe("runs", () => {
243
255
archiverStub = sandbox . stub ( ) ;
244
256
zipUploadStub = sandbox . stub ( ) ;
245
257
deleteZipStub = sandbox . stub ( ) ;
258
+ setLocalStub = sandbox . stub ( ) ;
259
+ setLocalIdentifierStub = sandbox . stub ( ) ;
246
260
} ) ;
247
261
248
262
afterEach ( ( ) => {
@@ -264,7 +278,9 @@ describe("runs", () => {
264
278
setAccessKey : setAccessKeyStub ,
265
279
setBuildName : setBuildNameStub ,
266
280
setUsageReportingFlag : setUsageReportingFlagStub ,
267
- getConfigPath : getConfigPathStub
281
+ getConfigPath : getConfigPathStub ,
282
+ setLocal : setLocalStub ,
283
+ setLocalIdentifier : setLocalIdentifierStub
268
284
} ,
269
285
"../helpers/capabilityHelper" : {
270
286
validate : capabilityValidatorStub ,
@@ -293,6 +309,8 @@ describe("runs", () => {
293
309
sinon . assert . calledOnce ( getConfigPathStub ) ;
294
310
sinon . assert . calledOnce ( getConfigPathStub ) ;
295
311
sinon . assert . calledOnce ( setParallelsStub ) ;
312
+ sinon . assert . calledOnce ( setLocalStub ) ;
313
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
296
314
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
297
315
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
298
316
sinon . assert . calledOnce ( archiverStub ) ;
@@ -334,6 +352,8 @@ describe("runs", () => {
334
352
zipUploadStub = sandbox . stub ( ) ;
335
353
createBuildStub = sandbox . stub ( ) ;
336
354
deleteZipStub = sandbox . stub ( ) ;
355
+ setLocalStub = sandbox . stub ( ) ;
356
+ setLocalIdentifierStub = sandbox . stub ( ) ;
337
357
} ) ;
338
358
339
359
afterEach ( ( ) => {
@@ -355,7 +375,9 @@ describe("runs", () => {
355
375
setAccessKey : setAccessKeyStub ,
356
376
setBuildName : setBuildNameStub ,
357
377
setUsageReportingFlag : setUsageReportingFlagStub ,
358
- getConfigPath : getConfigPathStub
378
+ getConfigPath : getConfigPathStub ,
379
+ setLocal : setLocalStub ,
380
+ setLocalIdentifier : setLocalIdentifierStub
359
381
} ,
360
382
"../helpers/capabilityHelper" : {
361
383
validate : capabilityValidatorStub ,
@@ -392,6 +414,8 @@ describe("runs", () => {
392
414
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
393
415
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
394
416
sinon . assert . calledOnce ( setParallelsStub ) ;
417
+ sinon . assert . calledOnce ( setLocalStub ) ;
418
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
395
419
sinon . assert . calledOnce ( archiverStub ) ;
396
420
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
397
421
sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -437,6 +461,8 @@ describe("runs", () => {
437
461
createBuildStub = sandbox . stub ( ) ;
438
462
deleteZipStub = sandbox . stub ( ) ;
439
463
isUndefinedStub = sandbox . stub ( ) ;
464
+ setLocalStub = sandbox . stub ( ) ;
465
+ setLocalIdentifierStub = sandbox . stub ( ) ;
440
466
} ) ;
441
467
442
468
afterEach ( ( ) => {
@@ -460,7 +486,9 @@ describe("runs", () => {
460
486
setUsageReportingFlag : setUsageReportingFlagStub ,
461
487
setParallels : setParallelsStub ,
462
488
getConfigPath : getConfigPathStub ,
463
- isUndefined : isUndefinedStub
489
+ isUndefined : isUndefinedStub ,
490
+ setLocal : setLocalStub ,
491
+ setLocalIdentifier : setLocalIdentifierStub
464
492
} ,
465
493
"../helpers/capabilityHelper" : {
466
494
validate : capabilityValidatorStub ,
@@ -500,6 +528,8 @@ describe("runs", () => {
500
528
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
501
529
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
502
530
sinon . assert . calledOnce ( setParallelsStub ) ;
531
+ sinon . assert . calledOnce ( setLocalStub ) ;
532
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
503
533
sinon . assert . calledOnce ( archiverStub ) ;
504
534
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
505
535
sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments