@@ -51,7 +51,7 @@ describe("runs", () => {
5151 } ,
5252 } ) ;
5353
54- validateBstackJsonStub . returns ( Promise . reject ( { message : "random-error" } ) ) ;
54+ validateBstackJsonStub . returns ( Promise . reject ( { message : "random-error" } ) ) ;
5555
5656 return runs ( args )
5757 . then ( function ( _bsConfig ) {
@@ -92,6 +92,8 @@ describe("runs", () => {
9292 } ) ;
9393 getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
9494 capabilityValidatorStub = sandbox . stub ( ) ;
95+ setLocalStub = sandbox . stub ( ) ;
96+ setLocalIdentifierStub = sandbox . stub ( ) ;
9597 deleteResultsStub = sandbox . stub ( ) ;
9698 } ) ;
9799
@@ -115,6 +117,8 @@ describe("runs", () => {
115117 setAccessKey : setAccessKeyStub ,
116118 setBuildName : setBuildNameStub ,
117119 getConfigPath : getConfigPathStub ,
120+ setLocal : setLocalStub ,
121+ setLocalIdentifier : setLocalIdentifierStub ,
118122 deleteResults : deleteResultsStub
119123 } ,
120124 "../helpers/capabilityHelper" : {
@@ -136,6 +140,8 @@ describe("runs", () => {
136140 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
137141 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
138142 sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
143+ sinon . assert . calledOnce ( setLocalStub ) ;
144+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
139145 sinon . assert . calledOnce ( deleteResultsStub ) ;
140146 sinon . assert . calledOnceWithExactly (
141147 sendUsageReportStub ,
@@ -167,6 +173,8 @@ describe("runs", () => {
167173 capabilityValidatorStub = sandbox . stub ( ) ;
168174 archiverStub = sandbox . stub ( ) ;
169175 deleteZipStub = sandbox . stub ( ) ;
176+ setLocalStub = sandbox . stub ( ) ;
177+ setLocalIdentifierStub = sandbox . stub ( ) ;
170178 deleteResultsStub = sandbox . stub ( ) ;
171179 } ) ;
172180
@@ -190,6 +198,8 @@ describe("runs", () => {
190198 setBuildName : setBuildNameStub ,
191199 setUsageReportingFlag : setUsageReportingFlagStub ,
192200 getConfigPath : getConfigPathStub ,
201+ setLocal : setLocalStub ,
202+ setLocalIdentifier : setLocalIdentifierStub ,
193203 deleteResults : deleteResultsStub
194204 } ,
195205 "../helpers/capabilityHelper" : {
@@ -214,7 +224,9 @@ describe("runs", () => {
214224 . catch ( ( error ) => {
215225 sinon . assert . calledOnce ( getConfigPathStub ) ;
216226 sinon . assert . calledOnce ( getConfigPathStub ) ;
217- sinon . assert . calledOnce ( setParallelsStub )
227+ sinon . assert . calledOnce ( setParallelsStub ) ;
228+ sinon . assert . calledOnce ( setLocalStub ) ;
229+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
218230 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
219231 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
220232 sinon . assert . calledOnce ( archiverStub ) ;
@@ -252,6 +264,8 @@ describe("runs", () => {
252264 archiverStub = sandbox . stub ( ) ;
253265 zipUploadStub = sandbox . stub ( ) ;
254266 deleteZipStub = sandbox . stub ( ) ;
267+ setLocalStub = sandbox . stub ( ) ;
268+ setLocalIdentifierStub = sandbox . stub ( ) ;
255269 deleteResultsStub = sandbox . stub ( ) ;
256270 } ) ;
257271
@@ -275,6 +289,8 @@ describe("runs", () => {
275289 setBuildName : setBuildNameStub ,
276290 setUsageReportingFlag : setUsageReportingFlagStub ,
277291 getConfigPath : getConfigPathStub ,
292+ setLocal : setLocalStub ,
293+ setLocalIdentifier : setLocalIdentifierStub ,
278294 deleteResults : deleteResultsStub
279295 } ,
280296 "../helpers/capabilityHelper" : {
@@ -304,6 +320,8 @@ describe("runs", () => {
304320 sinon . assert . calledOnce ( getConfigPathStub ) ;
305321 sinon . assert . calledOnce ( getConfigPathStub ) ;
306322 sinon . assert . calledOnce ( setParallelsStub ) ;
323+ sinon . assert . calledOnce ( setLocalStub ) ;
324+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
307325 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
308326 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
309327 sinon . assert . calledOnce ( archiverStub ) ;
@@ -345,6 +363,8 @@ describe("runs", () => {
345363 zipUploadStub = sandbox . stub ( ) ;
346364 createBuildStub = sandbox . stub ( ) ;
347365 deleteZipStub = sandbox . stub ( ) ;
366+ setLocalStub = sandbox . stub ( ) ;
367+ setLocalIdentifierStub = sandbox . stub ( ) ;
348368 deleteResultsStub = sandbox . stub ( ) ;
349369 } ) ;
350370
@@ -368,6 +388,8 @@ describe("runs", () => {
368388 setBuildName : setBuildNameStub ,
369389 setUsageReportingFlag : setUsageReportingFlagStub ,
370390 getConfigPath : getConfigPathStub ,
391+ setLocal : setLocalStub ,
392+ setLocalIdentifier : setLocalIdentifierStub ,
371393 deleteResults : deleteResultsStub
372394 } ,
373395 "../helpers/capabilityHelper" : {
@@ -405,6 +427,8 @@ describe("runs", () => {
405427 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
406428 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
407429 sinon . assert . calledOnce ( setParallelsStub ) ;
430+ sinon . assert . calledOnce ( setLocalStub ) ;
431+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
408432 sinon . assert . calledOnce ( archiverStub ) ;
409433 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
410434 sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -453,6 +477,8 @@ describe("runs", () => {
453477 exportResultsStub = sandbox . stub ( ) ;
454478 deleteResultsStub = sandbox . stub ( ) ;
455479 isUndefinedStub = sandbox . stub ( ) ;
480+ setLocalStub = sandbox . stub ( ) ;
481+ setLocalIdentifierStub = sandbox . stub ( ) ;
456482 } ) ;
457483
458484 afterEach ( ( ) => {
@@ -476,6 +502,8 @@ describe("runs", () => {
476502 setUsageReportingFlag : setUsageReportingFlagStub ,
477503 setParallels : setParallelsStub ,
478504 getConfigPath : getConfigPathStub ,
505+ setLocal : setLocalStub ,
506+ setLocalIdentifier : setLocalIdentifierStub ,
479507 exportResults : exportResultsStub ,
480508 deleteResults : deleteResultsStub ,
481509 isUndefined : isUndefinedStub
@@ -518,6 +546,8 @@ describe("runs", () => {
518546 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
519547 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
520548 sinon . assert . calledOnce ( setParallelsStub ) ;
549+ sinon . assert . calledOnce ( setLocalStub ) ;
550+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
521551 sinon . assert . calledOnce ( archiverStub ) ;
522552 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
523553 sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments