Update dragonwell-installer.test.ts

This commit is contained in:
aparnajyothi-y 2024-07-29 15:24:39 +05:30 committed by GitHub
parent fd08b9c8dc
commit 605d46d6dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,15 +41,16 @@ describe('getAvailableVersions', () => {
describe('getAvailableVersions', () => { describe('getAvailableVersions', () => {
it.each([ it.each([
['8', 'x86', 'linux', 0], ['8', 'x86', 'linux', 0],
['8', 'aarch64', 'linux', 24], ['8', 'aarch64', 'linux', 28],
['8.6.6', 'x64', 'linux', 27], ['8.6.6', 'x64', 'linux', 31],
['8', 'x86', 'anolis', 0], ['8', 'x86', 'anolis', 0],
['8', 'x86', 'windows', 0], ['8', 'x86', 'windows', 0],
['8', 'x86', 'mac', 0], ['8', 'x86', 'mac', 0],
['11', 'x64', 'linux', 27], ['11', 'x64', 'linux', 31],
['11', 'aarch64', 'linux', 24], ['11', 'aarch64', 'linux', 28],
['17', 'riscv', 'linux', 0], ['17', 'riscv', 'linux', 3],
['16.0.1', 'x64', 'linux', 27] ['16.0.1', 'x64', 'linux', 31],
['21', 'x64', 'linux', 31]
])( ])(
'should get right number of available versions from JSON', 'should get right number of available versions from JSON',
async ( async (
@ -103,25 +104,31 @@ describe('getAvailableVersions', () => {
'11', '11',
'linux', 'linux',
'x64', 'x64',
'https://github.com/alibaba/dragonwell11/releases/download/dragonwell-extended-11.0.17.13_jdk-11.0.17-ga/Alibaba_Dragonwell_Extended_11.0.17.13.8_x64_linux.tar.gz' 'https://github.com/dragonwell-project/dragonwell11/releases/download/dragonwell-extended-11.0.23.20_jdk-11.0.23-ga/Alibaba_Dragonwell_Extended_11.0.23.20.9_x64_linux.tar.gz'
], ],
[ [
'11', '11',
'linux', 'linux',
'aarch64', 'aarch64',
'https://github.com/alibaba/dragonwell11/releases/download/dragonwell-extended-11.0.17.13_jdk-11.0.17-ga/Alibaba_Dragonwell_Extended_11.0.17.13.8_aarch64_linux.tar.gz' 'https://github.com/dragonwell-project/dragonwell11/releases/download/dragonwell-extended-11.0.23.20_jdk-11.0.23-ga/Alibaba_Dragonwell_Extended_11.0.23.20.9_aarch64_linux.tar.gz'
],
[
'11',
'linux',
'riscv',
'https://github.com/dragonwell-project/dragonwell11/releases/download/dragonwell-extended-11.0.23.20_jdk-11.0.23-ga/Alibaba_Dragonwell_Extended_11.0.23.20.9_riscv64_linux.tar.gz'
], ],
[ [
'11', '11',
'windows', 'windows',
'x64', 'x64',
'https://github.com/alibaba/dragonwell11/releases/download/dragonwell-extended-11.0.17.13_jdk-11.0.17-ga/Alibaba_Dragonwell_Extended_11.0.17.13.8_x64_windows.zip' 'https://github.com/dragonwell-project/dragonwell11/releases/download/dragonwell-extended-11.0.23.20_jdk-11.0.23-ga/Alibaba_Dragonwell_Extended_11.0.23.20.9_x64_windows.zip'
], ],
[ [
'11', '11',
'alpine-linux', 'alpine-linux',
'x64', 'x64',
'https://github.com/alibaba/dragonwell11/releases/download/dragonwell-extended-11.0.17.13_jdk-11.0.17-ga/Alibaba_Dragonwell_Extended_11.0.17.13.8_x64_alpine-linux.tar.gz' 'https://github.com/dragonwell-project/dragonwell11/releases/download/dragonwell-extended-11.0.23.20_jdk-11.0.23-ga/Alibaba_Dragonwell_Extended_11.0.23.20.9_x64_alpine-linux.tar.gz'
], ],
[ [
'11.0.17', '11.0.17',
@ -158,6 +165,30 @@ describe('getAvailableVersions', () => {
'linux', 'linux',
'x64', 'x64',
'https://github.com/alibaba/dragonwell17/releases/download/dragonwell-standard-17.0.4.0.4%2B8_jdk-17.0.4-ga/Alibaba_Dragonwell_Standard_17.0.4.0.4%2B8_x64_linux.tar.gz' 'https://github.com/alibaba/dragonwell17/releases/download/dragonwell-standard-17.0.4.0.4%2B8_jdk-17.0.4-ga/Alibaba_Dragonwell_Standard_17.0.4.0.4%2B8_x64_linux.tar.gz'
],
[
'17.0.4+8',
'linux',
'x64',
'https://github.com/alibaba/dragonwell17/releases/download/dragonwell-standard-17.0.4.0.4%2B8_jdk-17.0.4-ga/Alibaba_Dragonwell_Standard_17.0.4.0.4%2B8_x64_linux.tar.gz'
],
[
'21',
'linux',
'aarch64',
'https://github.com/dragonwell-project/dragonwell21/releases/download/dragonwell-standard-21.0.3.0.3%2B9_jdk-21.0.3-ga/Alibaba_Dragonwell_Standard_21.0.3.0.3.9_aarch64_linux.tar.gz'
],
[
'21.0.3+9',
'linux',
'riscv',
'https://github.com/dragonwell-project/dragonwell21/releases/download/dragonwell-standard-21.0.3.0.3%2B9_jdk-21.0.3-ga/Alibaba_Dragonwell_Standard_21.0.3.0.3.9_riscv64_linux.tar.gz'
],
[
'21.0.1+12',
'linux',
'x64',
'https://github.com/dragonwell-project/dragonwell21/releases/download/dragonwell-standard-21.0.1.0.1%2B12_jdk-21.0.1-ga/Alibaba_Dragonwell_Standard_21.0.1.0.1.12_x64_linux.tar.gz'
] ]
])( ])(
'should return proper link according to the specified java-version, platform and arch', 'should return proper link according to the specified java-version, platform and arch',