@@ -125,7 +125,7 @@ func TestBuildMarketplaceItemsList(t *testing.T) {
125125func privateAndPublicMarketplaceHandler (t * testing.T ) http.HandlerFunc {
126126 t .Helper ()
127127 return func (w http.ResponseWriter , r * http.Request ) {
128- if strings .EqualFold (r .URL .Path , "/api/backend/ marketplace/" ) &&
128+ if strings .EqualFold (r .URL .Path , "/api/marketplace/" ) &&
129129 r .Method == http .MethodGet &&
130130 r .URL .Query ().Get ("includeTenantId" ) == "my-company" {
131131 _ , err := w .Write ([]byte (marketplaceItemsBodyContent (t )))
@@ -140,7 +140,7 @@ func privateAndPublicMarketplaceHandler(t *testing.T) http.HandlerFunc {
140140func privateCompanyMarketplaceHandler (t * testing.T ) http.HandlerFunc {
141141 t .Helper ()
142142 return func (w http.ResponseWriter , r * http.Request ) {
143- if strings .EqualFold (r .URL .Path , "/api/backend/ marketplace/" ) &&
143+ if strings .EqualFold (r .URL .Path , "/api/marketplace/" ) &&
144144 r .Method == http .MethodGet &&
145145 r .URL .Query ().Get ("tenantId" ) == "my-company" {
146146 _ , err := w .Write ([]byte (marketplacePrivateCompanyBodyContent (t )))
@@ -155,7 +155,7 @@ func privateCompanyMarketplaceHandler(t *testing.T) http.HandlerFunc {
155155func wrongPayloadHandler (t * testing.T ) http.HandlerFunc {
156156 t .Helper ()
157157 return func (w http.ResponseWriter , r * http.Request ) {
158- if strings .EqualFold (r .URL .Path , "/api/backend/ marketplace/" ) &&
158+ if strings .EqualFold (r .URL .Path , "/api/marketplace/" ) &&
159159 r .Method == http .MethodGet &&
160160 r .URL .Query ().Get ("tenantId" ) == "my-company" {
161161 _ , err := w .Write ([]byte ("{}" )) // Incorrect payload
0 commit comments