@@ -263,18 +263,18 @@ describe("Download Bridge", () => {
263
263
let bridgeDefaultPath = "" ;
264
264
if ( osName === "linux" ) {
265
265
bridgeDefaultPath = path . join ( process . env [ "HOME" ] as string , constants . BRIDGE_CLI_DEFAULT_PATH_LINUX ) ;
266
- bridgeUrl = "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration /bridge-cli/0.1.244 /bridge-cli-0.1.244 -linux64.zip"
266
+ bridgeUrl = "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle/2.9.2 /bridge-cli-bundle-2.9.2 -linux64.zip"
267
267
} else if ( osName === "win32" ) {
268
268
bridgeDefaultPath = path . join (
269
269
process . env [ "USERPROFILE" ] as string , constants . BRIDGE_CLI_DEFAULT_PATH_WINDOWS )
270
- bridgeUrl = "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration /bridge-cli/0.1.244 /bridge-cli-0.1.244 -win64.zip"
270
+ bridgeUrl = "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle/2.9.2 /bridge-cli-bundle-2.9.2- -win64.zip"
271
271
} else if ( osName === "darwin" ) {
272
272
bridgeDefaultPath = path . join (
273
273
process . env [ "HOME" ] as string , constants . BRIDGE_CLI_DEFAULT_PATH_MAC )
274
274
if ( isIntel ) {
275
- bridgeUrl = "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration /bridge-cli/0.1.244 /bridge-cli-0.1.244 -macosx.zip"
275
+ bridgeUrl = "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle/2.9.2 /bridge-cli-bundle-2.9.2 -macosx.zip"
276
276
} else {
277
- bridgeUrl = "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration /bridge-cli/0.1.244 /bridge-cli-0.1.244 -macos_arm.zip"
277
+ bridgeUrl = "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle/2.9.2 /bridge-cli-bundle-2.9.2 -macos_arm.zip"
278
278
}
279
279
}
280
280
@@ -587,8 +587,8 @@ describe("Download Bridge", () => {
587
587
} ) ;
588
588
589
589
it ( "returns the URL for the latest version when neither BRIDGECLI_DOWNLOAD_URL nor BRIDGECLI_DOWNLOAD_VERSION are defined" , async ( ) => {
590
- const bridgeUrl = "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration/ bridge-cli/latest /bridge-cli"
591
- sandbox . stub ( bridge , "getBridgeVersionFromLatestURL" ) . returns ( Promise . resolve ( "0.1.244 " ) ) ;
590
+ const bridgeUrl = "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle "
591
+ sandbox . stub ( bridge , "getBridgeVersionFromLatestURL" ) . returns ( Promise . resolve ( "2.9.2 " ) ) ;
592
592
sandbox . stub ( bridge , "getVersionUrl" ) . returns ( bridgeUrl ) ;
593
593
sandbox . stub ( bridge , "checkIfBridgeVersionExists" ) . returns ( Promise . resolve ( false ) ) ;
594
594
const result = await bridge . getBridgeUrl ( ) ;
@@ -598,15 +598,15 @@ describe("Download Bridge", () => {
598
598
it ( "returns the URL for the latest version when getBridgeVersionFromLatestURL is empty" , async ( ) => {
599
599
600
600
sandbox . stub ( bridge , "getBridgeVersionFromLatestURL" ) . returns ( Promise . resolve ( "/latest" ) ) ;
601
- sandbox . stub ( bridge , "getVersionUrl" ) . returns ( "bridge-cli/latest/bridge-cli" ) ;
601
+ sandbox . stub ( bridge , "getVersionUrl" ) . returns ( "bridge-cli-bundle /latest/bridge-cli-bundle " ) ;
602
602
const result = await bridge . getBridgeUrl ( ) ;
603
603
expect ( result ) . contains ( "/latest" ) ;
604
604
} ) ;
605
605
606
606
it ( "returns the URL for the latest version when getBridgeVersionFromLatestURL is empty: failure" , async ( ) => {
607
607
sandbox . stub ( bridge , "getLatestVersionUrl" ) . returns ( "" ) ;
608
608
sandbox . stub ( bridge , "getBridgeVersionFromLatestURL" ) . returns ( Promise . resolve ( "" ) ) ;
609
- sandbox . stub ( bridge , "getVersionUrl" ) . returns ( "bridge-cli/0.0.0/bridge-cli-macosx.zip" ) ;
609
+ sandbox . stub ( bridge , "getVersionUrl" ) . returns ( "bridge-cli-bundle /0.0.0/bridge-cli-bundle -macosx.zip" ) ;
610
610
sandbox . stub ( bridge , "checkIfBridgeVersionExists" ) . returns ( Promise . resolve ( false ) ) ;
611
611
const result = await bridge . getBridgeUrl ( ) . catch ( errorObj => {
612
612
expect ( errorObj . message ) . contains ( "Invalid artifactory latest url" ) ;
@@ -683,7 +683,7 @@ describe("Download Bridge", () => {
683
683
684
684
it ( "BRIDGECLI_DOWNLOAD_URL is defined and invalid for current os" , async ( ) => {
685
685
Object . defineProperty ( inputs , "BRIDGECLI_DOWNLOAD_URL" , {
686
- value : "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration /bridge-cli/0.2.57 /bridge-cli-0.2.57 -win64.zip" ,
686
+ value : "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle/2.9.2 /bridge-cli-bundle-2.9.2 -win64.zip" ,
687
687
} ) ;
688
688
sandbox . stub ( bridge , "checkIfBridgeVersionExists" ) . returns ( Promise . resolve ( false ) ) ;
689
689
sandbox . stub ( bridge , "getBridgeUrl" ) . returns ( Promise . resolve ( bridgeUrl ) )
@@ -875,13 +875,13 @@ describe("Download Bridge", () => {
875
875
876
876
sandbox . stub ( bridge , "getBridgeVersionFromLatestURL" ) . returns ( Promise . resolve ( '0.2.1' ) ) ;
877
877
878
- const result = await bridge . getBridgeVersionFromLatestURL ( "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration/ bridge-cli/latest /bridge-cli-macosx.zip" ) ;
878
+ const result = await bridge . getBridgeVersionFromLatestURL ( "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle -macosx.zip" ) ;
879
879
assert . equal ( result , '0.2.1' ) ;
880
880
} ) ;
881
881
882
882
it ( "Bridle cli latest version test: windows" , async ( ) => {
883
883
const result = await bridge . getLatestVersionUrl ( ) ;
884
- expect ( result ) . contains ( '/latest/bridge-cli' ) ;
884
+ expect ( result ) . contains ( '/latest/bridge-cli-bundle ' ) ;
885
885
} ) ;
886
886
887
887
it ( 'Test getBridgeVersionFromLatestURL -status 200' , async ( ) => {
@@ -898,7 +898,7 @@ describe("Download Bridge", () => {
898
898
sinon . stub ( httpc , 'HttpClient' ) . returns ( {
899
899
get : httpClientStub ,
900
900
} as any ) ;
901
- const result = await bridge . getBridgeVersionFromLatestURL ( "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration/ bridge-cli/latest /bridge-cli-macosx.zip" )
901
+ const result = await bridge . getBridgeVersionFromLatestURL ( "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle -macosx.zip" )
902
902
expect ( result ) . contains ( '0.2.35' )
903
903
904
904
} )
@@ -919,7 +919,7 @@ describe("Download Bridge", () => {
919
919
} as any ) ;
920
920
921
921
922
- const result = await bridge . getBridgeVersionFromLatestURL ( "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration/ bridge-cli/latest /bridge-cli-macosx.zip" )
922
+ const result = await bridge . getBridgeVersionFromLatestURL ( "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle -macosx.zip" )
923
923
expect ( result ) . contains ( '' )
924
924
} )
925
925
@@ -938,7 +938,7 @@ describe("Download Bridge", () => {
938
938
get : httpClientStub ,
939
939
} as any ) ;
940
940
941
- const result = await bridge . getBridgeVersionFromLatestURL ( "https://repo.blackduck. com/bds-integrations-release/ com/blackduck/integration/ bridge-cli/latest /bridge-cli-macosx.zip" )
941
+ const result = await bridge . getBridgeVersionFromLatestURL ( "https://artifactory.internal.synopsys. com/artifactory/clops-local/clops.sig.synopsys. com/bridge/binaries /bridge-cli-bundle -macosx.zip" )
942
942
expect ( result ) . contains ( '' )
943
943
} )
944
944
} )
0 commit comments