diff --git a/xray/services/xsc/xsc.go b/xray/services/xsc/xsc.go index 37977f610..cc5119a99 100644 --- a/xray/services/xsc/xsc.go +++ b/xray/services/xsc/xsc.go @@ -6,7 +6,7 @@ import ( "github.com/jfrog/jfrog-client-go/xsc/services" ) -// XscService is the Xray Source Control service in the Xray service, available from v3.108.0. +// XscService is the Xray Source Control service in the Xray service, available from v3.107.13. // This service replaces the Xray Source Control service, which was available as a standalone service. type XscInnerService struct { client *jfroghttpclient.JfrogHttpClient diff --git a/xsc/manager.go b/xsc/manager.go index e86b53357..04423674b 100644 --- a/xsc/manager.go +++ b/xsc/manager.go @@ -7,7 +7,7 @@ import ( ) // XscServicesManager defines the http client and general configuration -// Deprecated from Xray version 3.108.0, XSC is transitioning to Xray as inner service. +// Deprecated from Xray version 3.107.13, XSC is transitioning to Xray as inner service. type XscServicesManager struct { client *jfroghttpclient.JfrogHttpClient config config.Config diff --git a/xsc/services/utils/utils.go b/xsc/services/utils/utils.go index 24693e65b..af62188b8 100644 --- a/xsc/services/utils/utils.go +++ b/xsc/services/utils/utils.go @@ -13,10 +13,10 @@ const ( xscSuffix = "/xsc/" apiV1Suffix = "api/v1" XscInXraySuffix = apiV1Suffix + xscSuffix - MinXrayVersionXscTransitionToXray = "3.108.0" + MinXrayVersionXscTransitionToXray = "3.107.13" ) -// From Xray version 3.108.0, XSC is transitioning to Xray as inner service. This function will return compatible URL. +// From Xray version 3.107.13, XSC is transitioning to Xray as inner service. This function will return compatible URL. func XrayUrlToXscUrl(xrayUrl, xrayVersion string) string { if !IsXscXrayInnerService(xrayVersion) { log.Debug(fmt.Sprintf("Xray version is lower than %s, XSC is not an inner service in Xray.", MinXrayVersionXscTransitionToXray)) diff --git a/xsc/services/utils/utils_test.go b/xsc/services/utils/utils_test.go index 718c75019..57cdaf8bb 100644 --- a/xsc/services/utils/utils_test.go +++ b/xsc/services/utils/utils_test.go @@ -9,8 +9,8 @@ func TestXrayUrlToXscUrl(t *testing.T) { xrayVersion string expectedValue string }{ - {"after transition", "http://platform.jfrog.io/xray/", "3.108.0", "http://platform.jfrog.io/xray/api/v1/xsc/"}, - {"before transition", "http://platform.jfrog.io/xray/", "3.107.0", "http://platform.jfrog.io/xsc/api/v1/"}, + {"after transition", "http://platform.jfrog.io/xray/", "3.107.13", "http://platform.jfrog.io/xray/api/v1/xsc/"}, + {"before transition", "http://platform.jfrog.io/xray/", "3.106.0", "http://platform.jfrog.io/xsc/api/v1/"}, } for _, test := range tests { t.Run(test.testName, func(t *testing.T) {