@@ -89,6 +89,8 @@ describe("runs", () => {
8989 } ) ;
9090 getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
9191 capabilityValidatorStub = sandbox . stub ( ) ;
92+ setLocalStub = sandbox . stub ( ) ;
93+ setLocalIdentifierStub = sandbox . stub ( ) ;
9294 } ) ;
9395
9496 afterEach ( ( ) => {
@@ -110,7 +112,9 @@ describe("runs", () => {
110112 setUsername : setUsernameStub ,
111113 setAccessKey : setAccessKeyStub ,
112114 setBuildName : setBuildNameStub ,
113- getConfigPath : getConfigPathStub
115+ getConfigPath : getConfigPathStub ,
116+ setLocal : setLocalStub ,
117+ setLocalIdentifier : setLocalIdentifierStub
114118 } ,
115119 "../helpers/capabilityHelper" : {
116120 validate : capabilityValidatorStub ,
@@ -131,6 +135,8 @@ describe("runs", () => {
131135 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
132136 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
133137 sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
138+ sinon . assert . calledOnce ( setLocalStub ) ;
139+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
134140 sinon . assert . calledOnceWithExactly (
135141 sendUsageReportStub ,
136142 bsConfig ,
@@ -161,6 +167,8 @@ describe("runs", () => {
161167 capabilityValidatorStub = sandbox . stub ( ) ;
162168 archiverStub = sandbox . stub ( ) ;
163169 deleteZipStub = sandbox . stub ( ) ;
170+ setLocalStub = sandbox . stub ( ) ;
171+ setLocalIdentifierStub = sandbox . stub ( ) ;
164172 } ) ;
165173
166174 afterEach ( ( ) => {
@@ -182,7 +190,9 @@ describe("runs", () => {
182190 setAccessKey : setAccessKeyStub ,
183191 setBuildName : setBuildNameStub ,
184192 setUsageReportingFlag : setUsageReportingFlagStub ,
185- getConfigPath : getConfigPathStub
193+ getConfigPath : getConfigPathStub ,
194+ setLocal : setLocalStub ,
195+ setLocalIdentifier : setLocalIdentifierStub
186196 } ,
187197 "../helpers/capabilityHelper" : {
188198 validate : capabilityValidatorStub ,
@@ -206,7 +216,9 @@ describe("runs", () => {
206216 . catch ( ( error ) => {
207217 sinon . assert . calledOnce ( getConfigPathStub ) ;
208218 sinon . assert . calledOnce ( getConfigPathStub ) ;
209- sinon . assert . calledOnce ( setParallelsStub )
219+ sinon . assert . calledOnce ( setParallelsStub ) ;
220+ sinon . assert . calledOnce ( setLocalStub ) ;
221+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
210222 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
211223 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
212224 sinon . assert . calledOnce ( archiverStub ) ;
@@ -243,6 +255,8 @@ describe("runs", () => {
243255 archiverStub = sandbox . stub ( ) ;
244256 zipUploadStub = sandbox . stub ( ) ;
245257 deleteZipStub = sandbox . stub ( ) ;
258+ setLocalStub = sandbox . stub ( ) ;
259+ setLocalIdentifierStub = sandbox . stub ( ) ;
246260 } ) ;
247261
248262 afterEach ( ( ) => {
@@ -264,7 +278,9 @@ describe("runs", () => {
264278 setAccessKey : setAccessKeyStub ,
265279 setBuildName : setBuildNameStub ,
266280 setUsageReportingFlag : setUsageReportingFlagStub ,
267- getConfigPath : getConfigPathStub
281+ getConfigPath : getConfigPathStub ,
282+ setLocal : setLocalStub ,
283+ setLocalIdentifier : setLocalIdentifierStub
268284 } ,
269285 "../helpers/capabilityHelper" : {
270286 validate : capabilityValidatorStub ,
@@ -293,6 +309,8 @@ describe("runs", () => {
293309 sinon . assert . calledOnce ( getConfigPathStub ) ;
294310 sinon . assert . calledOnce ( getConfigPathStub ) ;
295311 sinon . assert . calledOnce ( setParallelsStub ) ;
312+ sinon . assert . calledOnce ( setLocalStub ) ;
313+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
296314 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
297315 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
298316 sinon . assert . calledOnce ( archiverStub ) ;
@@ -334,6 +352,8 @@ describe("runs", () => {
334352 zipUploadStub = sandbox . stub ( ) ;
335353 createBuildStub = sandbox . stub ( ) ;
336354 deleteZipStub = sandbox . stub ( ) ;
355+ setLocalStub = sandbox . stub ( ) ;
356+ setLocalIdentifierStub = sandbox . stub ( ) ;
337357 } ) ;
338358
339359 afterEach ( ( ) => {
@@ -355,7 +375,9 @@ describe("runs", () => {
355375 setAccessKey : setAccessKeyStub ,
356376 setBuildName : setBuildNameStub ,
357377 setUsageReportingFlag : setUsageReportingFlagStub ,
358- getConfigPath : getConfigPathStub
378+ getConfigPath : getConfigPathStub ,
379+ setLocal : setLocalStub ,
380+ setLocalIdentifier : setLocalIdentifierStub
359381 } ,
360382 "../helpers/capabilityHelper" : {
361383 validate : capabilityValidatorStub ,
@@ -392,6 +414,8 @@ describe("runs", () => {
392414 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
393415 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
394416 sinon . assert . calledOnce ( setParallelsStub ) ;
417+ sinon . assert . calledOnce ( setLocalStub ) ;
418+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
395419 sinon . assert . calledOnce ( archiverStub ) ;
396420 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
397421 sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -437,6 +461,8 @@ describe("runs", () => {
437461 createBuildStub = sandbox . stub ( ) ;
438462 deleteZipStub = sandbox . stub ( ) ;
439463 isUndefinedStub = sandbox . stub ( ) ;
464+ setLocalStub = sandbox . stub ( ) ;
465+ setLocalIdentifierStub = sandbox . stub ( ) ;
440466 } ) ;
441467
442468 afterEach ( ( ) => {
@@ -460,7 +486,9 @@ describe("runs", () => {
460486 setUsageReportingFlag : setUsageReportingFlagStub ,
461487 setParallels : setParallelsStub ,
462488 getConfigPath : getConfigPathStub ,
463- isUndefined : isUndefinedStub
489+ isUndefined : isUndefinedStub ,
490+ setLocal : setLocalStub ,
491+ setLocalIdentifier : setLocalIdentifierStub
464492 } ,
465493 "../helpers/capabilityHelper" : {
466494 validate : capabilityValidatorStub ,
@@ -500,6 +528,8 @@ describe("runs", () => {
500528 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
501529 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
502530 sinon . assert . calledOnce ( setParallelsStub ) ;
531+ sinon . assert . calledOnce ( setLocalStub ) ;
532+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
503533 sinon . assert . calledOnce ( archiverStub ) ;
504534 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
505535 sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments