Skip to content

Commit 6e42e95

Browse files
Update binary download links to new S3 bucket
1 parent 799fb57 commit 6e42e95

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/LocalBinary.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ function LocalBinary(){
1313

1414
this.getDownloadPath = function () {
1515
if(this.hostOS.match(/darwin|mac os/i)){
16-
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-darwin-x64';
16+
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-darwin-x64';
1717
} else if(this.hostOS.match(/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)) {
1818
this.windows = true;
19-
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal.exe';
19+
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal.exe';
2020
} else {
2121
if(this.isAlpine()) {
2222
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine';
2323
} else {
2424
if(this.is64bits)
25-
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-linux-x64';
25+
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64';
2626
else
27-
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-linux-ia32';
27+
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32';
2828
}
2929
}
3030
};

test/local.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,30 +325,30 @@ describe('LocalBinary', function () {
325325
var osNames = ['darwin', 'mac os'];
326326
osNames.forEach(function(os) {
327327
sandBox.stub(localBinary, 'hostOS', os);
328-
expect(localBinary.getDownloadPath()).to.equal('https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-darwin-x64');
328+
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-darwin-x64');
329329
});
330330
});
331331

332332
it('should return download path of exe binary', function() {
333333
var osNames = ['mswin', 'msys', 'mingw', 'cygwin', 'bccwin', 'wince', 'emc', 'win32'];
334334
osNames.forEach(function(os) {
335335
sandBox.stub(localBinary, 'hostOS', os);
336-
expect(localBinary.getDownloadPath()).to.equal('https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal.exe');
336+
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal.exe');
337337
});
338338
});
339339

340340
it('should return download path of linux 64 arch binary', function() {
341341
sandBox.stub(localBinary, 'hostOS', 'linux');
342342
sandBox.stub(localBinary, 'is64bits', true);
343343
localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(false);
344-
expect(localBinary.getDownloadPath()).to.equal('https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-linux-x64');
344+
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64');
345345
});
346346

347347
it('should return download path of linux 32 arch binary', function() {
348348
sandBox.stub(localBinary, 'hostOS', 'linux');
349349
sandBox.stub(localBinary, 'is64bits', false);
350350
localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(false);
351-
expect(localBinary.getDownloadPath()).to.equal('https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-linux-ia32');
351+
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32');
352352
});
353353

354354
it('should return download path of alpine linux binary', function() {

0 commit comments

Comments
 (0)