Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#48): use download site instead of cloudfront #49

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export const hiddenStyleList = `
export const protocol = 'aspera://';

/** @ignore */
export const installerUrl = 'https://d3gcli72yxqn2z.cloudfront.net/downloads/desktop/latest/stable';
export const installerUrl = 'https://downloads.ibmaspera.com/downloads/desktop/latest/stable';
2 changes: 1 addition & 1 deletion src/models/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface InstallerOptions {
/**
* Custom URL to fetch Aspera installers from. Generally this is only
* needed when self-hosting the installers rather than using the installers
* hosted on CloudFront.
* hosted by IBM.
*
* This URL should point to the directory containing the `latest.json` file that
* contains the installer information.
Expand Down
12 changes: 6 additions & 6 deletions tests/installer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,36 @@ describe('getInstallerInfo', () => {
'platform': 'macos',
'type': 'dmg',
'arch': 'universal',
'url': 'https://d3gcli72yxqn2z.cloudfront.net/downloads/desktop/macos/1.2.0/stable/universal/ibm-aspera-sdk_1.2.0_macos.dmg'
'url': 'https://downloads.ibmaspera.com/downloads/desktop/macos/1.2.0/stable/universal/ibm-aspera-sdk_1.2.0_macos.dmg'
},
{
'version': '1.2.0',
'platform': 'windows',
'type': 'msi',
'arch': 'x64',
'url': 'https://d3gcli72yxqn2z.cloudfront.net/downloads/desktop/windows/1.2.0/stable/x64/ibm-aspera-sdk_1.2.0.msi'
'url': 'https://downloads.ibmaspera.com/downloads/desktop/windows/1.2.0/stable/x64/ibm-aspera-sdk_1.2.0.msi'
},
{
'version': '1.1.9',
'platform': 'linux',
'type': 'rpm',
'arch': 'x64',
'url': 'https://d3gcli72yxqn2z.cloudfront.net/downloads/desktop/linux/1.1.9/stable/x64/ibm-aspera-sdk_1.1.9.rpm'
'url': 'https://downloads.ibmaspera.com/downloads/desktop/linux/1.1.9/stable/x64/ibm-aspera-sdk_1.1.9.rpm'
},
{
'version': '1.1.9',
'platform': 'linux',
'type': 'appimage',
'arch': 'x64',
'url': 'https://d3gcli72yxqn2z.cloudfront.net/downloads/desktop/linux/1.1.9/stable/x64/ibm-aspera-sdk_1.1.9.AppImage'
'url': 'https://downloads.ibmaspera.com/downloads/desktop/linux/1.1.9/stable/x64/ibm-aspera-sdk_1.1.9.AppImage'
}
]
};
(<any>global).fetch = mockFetch(response);
console.warn = jest.fn();
});

test('called with no options fetches from Amazon CloudFront by default', () => {
test('called with no options fetches from downloads server by default', () => {
getInstallerInfo().catch(() => {});
expect(fetch).toHaveBeenCalledWith(`${installerUrl}/latest.json`, defaultHeaders);
});
Expand All @@ -55,7 +55,7 @@ describe('getInstallerInfo', () => {
'platform': 'macos',
'type': 'dmg',
'arch': 'universal',
'url': 'https://d3gcli72yxqn2z.cloudfront.net/downloads/desktop/macos/1.2.0/stable/universal/ibm-aspera-sdk_1.2.0_macos.dmg'
'url': 'https://downloads.ibmaspera.com/downloads/desktop/macos/1.2.0/stable/universal/ibm-aspera-sdk_1.2.0_macos.dmg'
}
];
const data = await getInstallerInfo();
Expand Down
Loading