diff --git a/src/constants/constants.ts b/src/constants/constants.ts index f19eb8e..23e843b 100644 --- a/src/constants/constants.ts +++ b/src/constants/constants.ts @@ -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'; diff --git a/src/models/models.ts b/src/models/models.ts index 5ba4d4c..113512d 100644 --- a/src/models/models.ts +++ b/src/models/models.ts @@ -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. diff --git a/tests/installer.spec.ts b/tests/installer.spec.ts index 4f7285a..3905f8f 100644 --- a/tests/installer.spec.ts +++ b/tests/installer.spec.ts @@ -13,28 +13,28 @@ 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' } ] }; @@ -42,7 +42,7 @@ describe('getInstallerInfo', () => { 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); }); @@ -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();