@@ -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 ) {
@@ -94,6 +94,8 @@ describe("runs", () => {
94
94
} ) ;
95
95
getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
96
96
capabilityValidatorStub = sandbox . stub ( ) ;
97
+ setLocalStub = sandbox . stub ( ) ;
98
+ setLocalIdentifierStub = sandbox . stub ( ) ;
97
99
deleteResultsStub = sandbox . stub ( ) ;
98
100
} ) ;
99
101
@@ -119,6 +121,8 @@ describe("runs", () => {
119
121
setUserSpecs : setUserSpecsStub ,
120
122
setTestEnvs : setTestEnvsStub ,
121
123
getConfigPath : getConfigPathStub ,
124
+ setLocal : setLocalStub ,
125
+ setLocalIdentifier : setLocalIdentifierStub ,
122
126
deleteResults : deleteResultsStub
123
127
} ,
124
128
"../helpers/capabilityHelper" : {
@@ -140,6 +144,8 @@ describe("runs", () => {
140
144
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
141
145
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
142
146
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
147
+ sinon . assert . calledOnce ( setLocalStub ) ;
148
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
143
149
sinon . assert . calledOnce ( deleteResultsStub ) ;
144
150
sinon . assert . calledOnceWithExactly (
145
151
sendUsageReportStub ,
@@ -173,6 +179,8 @@ describe("runs", () => {
173
179
capabilityValidatorStub = sandbox . stub ( ) ;
174
180
archiverStub = sandbox . stub ( ) ;
175
181
deleteZipStub = sandbox . stub ( ) ;
182
+ setLocalStub = sandbox . stub ( ) ;
183
+ setLocalIdentifierStub = sandbox . stub ( ) ;
176
184
deleteResultsStub = sandbox . stub ( ) ;
177
185
} ) ;
178
186
@@ -198,6 +206,8 @@ describe("runs", () => {
198
206
setTestEnvs : setTestEnvsStub ,
199
207
setUsageReportingFlag : setUsageReportingFlagStub ,
200
208
getConfigPath : getConfigPathStub ,
209
+ setLocal : setLocalStub ,
210
+ setLocalIdentifier : setLocalIdentifierStub ,
201
211
deleteResults : deleteResultsStub
202
212
} ,
203
213
"../helpers/capabilityHelper" : {
@@ -222,7 +232,9 @@ describe("runs", () => {
222
232
. catch ( ( error ) => {
223
233
sinon . assert . calledOnce ( getConfigPathStub ) ;
224
234
sinon . assert . calledOnce ( getConfigPathStub ) ;
225
- sinon . assert . calledOnce ( setParallelsStub )
235
+ sinon . assert . calledOnce ( setParallelsStub ) ;
236
+ sinon . assert . calledOnce ( setLocalStub ) ;
237
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
226
238
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
227
239
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
228
240
sinon . assert . calledOnce ( archiverStub ) ;
@@ -262,6 +274,8 @@ describe("runs", () => {
262
274
archiverStub = sandbox . stub ( ) ;
263
275
zipUploadStub = sandbox . stub ( ) ;
264
276
deleteZipStub = sandbox . stub ( ) ;
277
+ setLocalStub = sandbox . stub ( ) ;
278
+ setLocalIdentifierStub = sandbox . stub ( ) ;
265
279
deleteResultsStub = sandbox . stub ( ) ;
266
280
} ) ;
267
281
@@ -287,6 +301,8 @@ describe("runs", () => {
287
301
setTestEnvs : setTestEnvsStub ,
288
302
setUsageReportingFlag : setUsageReportingFlagStub ,
289
303
getConfigPath : getConfigPathStub ,
304
+ setLocal : setLocalStub ,
305
+ setLocalIdentifier : setLocalIdentifierStub ,
290
306
deleteResults : deleteResultsStub
291
307
} ,
292
308
"../helpers/capabilityHelper" : {
@@ -316,6 +332,8 @@ describe("runs", () => {
316
332
sinon . assert . calledOnce ( getConfigPathStub ) ;
317
333
sinon . assert . calledOnce ( getConfigPathStub ) ;
318
334
sinon . assert . calledOnce ( setParallelsStub ) ;
335
+ sinon . assert . calledOnce ( setLocalStub ) ;
336
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
319
337
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
320
338
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
321
339
sinon . assert . calledOnce ( archiverStub ) ;
@@ -359,6 +377,8 @@ describe("runs", () => {
359
377
zipUploadStub = sandbox . stub ( ) ;
360
378
createBuildStub = sandbox . stub ( ) ;
361
379
deleteZipStub = sandbox . stub ( ) ;
380
+ setLocalStub = sandbox . stub ( ) ;
381
+ setLocalIdentifierStub = sandbox . stub ( ) ;
362
382
deleteResultsStub = sandbox . stub ( ) ;
363
383
} ) ;
364
384
@@ -384,6 +404,8 @@ describe("runs", () => {
384
404
setTestEnvs : setTestEnvsStub ,
385
405
setUsageReportingFlag : setUsageReportingFlagStub ,
386
406
getConfigPath : getConfigPathStub ,
407
+ setLocal : setLocalStub ,
408
+ setLocalIdentifier : setLocalIdentifierStub ,
387
409
deleteResults : deleteResultsStub
388
410
} ,
389
411
"../helpers/capabilityHelper" : {
@@ -421,6 +443,8 @@ describe("runs", () => {
421
443
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
422
444
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
423
445
sinon . assert . calledOnce ( setParallelsStub ) ;
446
+ sinon . assert . calledOnce ( setLocalStub ) ;
447
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
424
448
sinon . assert . calledOnce ( archiverStub ) ;
425
449
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
426
450
sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -471,6 +495,8 @@ describe("runs", () => {
471
495
exportResultsStub = sandbox . stub ( ) ;
472
496
deleteResultsStub = sandbox . stub ( ) ;
473
497
isUndefinedStub = sandbox . stub ( ) ;
498
+ setLocalStub = sandbox . stub ( ) ;
499
+ setLocalIdentifierStub = sandbox . stub ( ) ;
474
500
} ) ;
475
501
476
502
afterEach ( ( ) => {
@@ -496,6 +522,8 @@ describe("runs", () => {
496
522
setUsageReportingFlag : setUsageReportingFlagStub ,
497
523
setParallels : setParallelsStub ,
498
524
getConfigPath : getConfigPathStub ,
525
+ setLocal : setLocalStub ,
526
+ setLocalIdentifier : setLocalIdentifierStub ,
499
527
exportResults : exportResultsStub ,
500
528
deleteResults : deleteResultsStub ,
501
529
isUndefined : isUndefinedStub
@@ -538,6 +566,8 @@ describe("runs", () => {
538
566
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
539
567
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
540
568
sinon . assert . calledOnce ( setParallelsStub ) ;
569
+ sinon . assert . calledOnce ( setLocalStub ) ;
570
+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
541
571
sinon . assert . calledOnce ( archiverStub ) ;
542
572
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
543
573
sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments