@@ -51,7 +51,7 @@ describe("runs", () => {
51
51
} ,
52
52
} ) ;
53
53
54
- validateBstackJsonStub . returns ( Promise . reject ( { message : "random-error" } ) ) ;
54
+ validateBstackJsonStub . returns ( Promise . reject ( { message : "random-error" } ) ) ;
55
55
56
56
return runs ( args )
57
57
. then ( function ( _bsConfig ) {
@@ -92,6 +92,8 @@ describe("runs", () => {
92
92
} ) ;
93
93
getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
94
94
capabilityValidatorStub = sandbox . stub ( ) ;
95
+ setLocalStub = sandbox . stub ( ) ;
96
+ setLocalIdentifierStub = sandbox . stub ( ) ;
95
97
deleteResultsStub = sandbox . stub ( ) ;
96
98
} ) ;
97
99
@@ -115,6 +117,8 @@ describe("runs", () => {
115
117
setAccessKey : setAccessKeyStub ,
116
118
setBuildName : setBuildNameStub ,
117
119
getConfigPath : getConfigPathStub ,
120
+ setLocal : setLocalStub ,
121
+ setLocalIdentifier : setLocalIdentifierStub ,
118
122
deleteResults : deleteResultsStub
119
123
} ,
120
124
"../helpers/capabilityHelper" : {
@@ -136,6 +140,8 @@ describe("runs", () => {
136
140
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
137
141
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
138
142
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
143
+ sinon . assert . calledOnce ( setLocalStub ) ;
144
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
139
145
sinon . assert . calledOnce ( deleteResultsStub ) ;
140
146
sinon . assert . calledOnceWithExactly (
141
147
sendUsageReportStub ,
@@ -167,6 +173,8 @@ describe("runs", () => {
167
173
capabilityValidatorStub = sandbox . stub ( ) ;
168
174
archiverStub = sandbox . stub ( ) ;
169
175
deleteZipStub = sandbox . stub ( ) ;
176
+ setLocalStub = sandbox . stub ( ) ;
177
+ setLocalIdentifierStub = sandbox . stub ( ) ;
170
178
deleteResultsStub = sandbox . stub ( ) ;
171
179
} ) ;
172
180
@@ -190,6 +198,8 @@ describe("runs", () => {
190
198
setBuildName : setBuildNameStub ,
191
199
setUsageReportingFlag : setUsageReportingFlagStub ,
192
200
getConfigPath : getConfigPathStub ,
201
+ setLocal : setLocalStub ,
202
+ setLocalIdentifier : setLocalIdentifierStub ,
193
203
deleteResults : deleteResultsStub
194
204
} ,
195
205
"../helpers/capabilityHelper" : {
@@ -214,7 +224,9 @@ describe("runs", () => {
214
224
. catch ( ( error ) => {
215
225
sinon . assert . calledOnce ( getConfigPathStub ) ;
216
226
sinon . assert . calledOnce ( getConfigPathStub ) ;
217
- sinon . assert . calledOnce ( setParallelsStub )
227
+ sinon . assert . calledOnce ( setParallelsStub ) ;
228
+ sinon . assert . calledOnce ( setLocalStub ) ;
229
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
218
230
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
219
231
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
220
232
sinon . assert . calledOnce ( archiverStub ) ;
@@ -252,6 +264,8 @@ describe("runs", () => {
252
264
archiverStub = sandbox . stub ( ) ;
253
265
zipUploadStub = sandbox . stub ( ) ;
254
266
deleteZipStub = sandbox . stub ( ) ;
267
+ setLocalStub = sandbox . stub ( ) ;
268
+ setLocalIdentifierStub = sandbox . stub ( ) ;
255
269
deleteResultsStub = sandbox . stub ( ) ;
256
270
} ) ;
257
271
@@ -275,6 +289,8 @@ describe("runs", () => {
275
289
setBuildName : setBuildNameStub ,
276
290
setUsageReportingFlag : setUsageReportingFlagStub ,
277
291
getConfigPath : getConfigPathStub ,
292
+ setLocal : setLocalStub ,
293
+ setLocalIdentifier : setLocalIdentifierStub ,
278
294
deleteResults : deleteResultsStub
279
295
} ,
280
296
"../helpers/capabilityHelper" : {
@@ -304,6 +320,8 @@ describe("runs", () => {
304
320
sinon . assert . calledOnce ( getConfigPathStub ) ;
305
321
sinon . assert . calledOnce ( getConfigPathStub ) ;
306
322
sinon . assert . calledOnce ( setParallelsStub ) ;
323
+ sinon . assert . calledOnce ( setLocalStub ) ;
324
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
307
325
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
308
326
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
309
327
sinon . assert . calledOnce ( archiverStub ) ;
@@ -345,6 +363,8 @@ describe("runs", () => {
345
363
zipUploadStub = sandbox . stub ( ) ;
346
364
createBuildStub = sandbox . stub ( ) ;
347
365
deleteZipStub = sandbox . stub ( ) ;
366
+ setLocalStub = sandbox . stub ( ) ;
367
+ setLocalIdentifierStub = sandbox . stub ( ) ;
348
368
deleteResultsStub = sandbox . stub ( ) ;
349
369
} ) ;
350
370
@@ -368,6 +388,8 @@ describe("runs", () => {
368
388
setBuildName : setBuildNameStub ,
369
389
setUsageReportingFlag : setUsageReportingFlagStub ,
370
390
getConfigPath : getConfigPathStub ,
391
+ setLocal : setLocalStub ,
392
+ setLocalIdentifier : setLocalIdentifierStub ,
371
393
deleteResults : deleteResultsStub
372
394
} ,
373
395
"../helpers/capabilityHelper" : {
@@ -405,6 +427,8 @@ describe("runs", () => {
405
427
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
406
428
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
407
429
sinon . assert . calledOnce ( setParallelsStub ) ;
430
+ sinon . assert . calledOnce ( setLocalStub ) ;
431
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
408
432
sinon . assert . calledOnce ( archiverStub ) ;
409
433
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
410
434
sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -453,6 +477,8 @@ describe("runs", () => {
453
477
exportResultsStub = sandbox . stub ( ) ;
454
478
deleteResultsStub = sandbox . stub ( ) ;
455
479
isUndefinedStub = sandbox . stub ( ) ;
480
+ setLocalStub = sandbox . stub ( ) ;
481
+ setLocalIdentifierStub = sandbox . stub ( ) ;
456
482
} ) ;
457
483
458
484
afterEach ( ( ) => {
@@ -476,6 +502,8 @@ describe("runs", () => {
476
502
setUsageReportingFlag : setUsageReportingFlagStub ,
477
503
setParallels : setParallelsStub ,
478
504
getConfigPath : getConfigPathStub ,
505
+ setLocal : setLocalStub ,
506
+ setLocalIdentifier : setLocalIdentifierStub ,
479
507
exportResults : exportResultsStub ,
480
508
deleteResults : deleteResultsStub ,
481
509
isUndefined : isUndefinedStub
@@ -518,6 +546,8 @@ describe("runs", () => {
518
546
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
519
547
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
520
548
sinon . assert . calledOnce ( setParallelsStub ) ;
549
+ sinon . assert . calledOnce ( setLocalStub ) ;
550
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
521
551
sinon . assert . calledOnce ( archiverStub ) ;
522
552
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
523
553
sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments