@@ -14,20 +14,23 @@ const cxInstallerWindows = new CxInstaller("win32", astClientInstance);
14
14
describe ( "CxInstaller cases" , ( ) => {
15
15
it ( 'CxInstaller getDownloadURL Linux Successful case' , async ( ) => {
16
16
const url = await cxInstallerLinux . getDownloadURL ( ) ;
17
+ const version = await cxInstallerLinux . readASTCLIVersion ( ) ;
17
18
const architecture = getArchitecture ( cxInstallerLinux . getPlatform ( ) ) ;
18
- expect ( url ) . toBe ( `https://download.checkmarx.com/CxOne/CLI/2.2.5 /ast-cli_2.2.5_linux_ ${ architecture } .tar.gz` ) ;
19
+ expect ( url ) . toBe ( `https://download.checkmarx.com/CxOne/CLI/${ version } /ast-cli_ ${ version } _linux_ ${ architecture } .tar.gz` ) ;
19
20
} ) ;
20
21
21
22
it ( 'CxInstaller getDownloadURL Mac Successful case' , async ( ) => {
22
23
const url = await cxInstallerMac . getDownloadURL ( ) ;
24
+ const version = await cxInstallerLinux . readASTCLIVersion ( ) ;
23
25
const architecture = getArchitecture ( cxInstallerMac . getPlatform ( ) ) ;
24
- expect ( url ) . toBe ( `https://download.checkmarx.com/CxOne/CLI/2.2.5 /ast-cli_2.2.5_darwin_ ${ architecture } .tar.gz` ) ;
26
+ expect ( url ) . toBe ( `https://download.checkmarx.com/CxOne/CLI/${ version } /ast-cli_ ${ version } _darwin_ ${ architecture } .tar.gz` ) ;
25
27
} ) ;
26
28
27
29
it ( 'CxInstaller getDownloadURL Windows Successful case' , async ( ) => {
28
30
const url = await cxInstallerWindows . getDownloadURL ( ) ;
31
+ const version = await cxInstallerLinux . readASTCLIVersion ( ) ;
29
32
const architecture = getArchitecture ( cxInstallerWindows . getPlatform ( ) ) ;
30
- expect ( url ) . toBe ( `https://download.checkmarx.com/CxOne/CLI/2.2.5 /ast-cli_2.2.5_windows_ ${ architecture } .zip` ) ;
33
+ expect ( url ) . toBe ( `https://download.checkmarx.com/CxOne/CLI/${ version } /ast-cli_ ${ version } _windows_ ${ architecture } .zip` ) ;
31
34
} ) ;
32
35
} ) ;
33
36
0 commit comments