ocket8888 commented on a change in pull request #4374: Create API v2 tests
URL: https://github.com/apache/trafficcontrol/pull/4374#discussion_r382785126
 
 

 ##########
 File path: traffic_ops/client/deliveryservice.go
 ##########
 @@ -129,22 +128,17 @@ func (to *Session) GetDeliveryServices() 
([]tc.DeliveryService, ReqInf, error) {
        return data.Response, reqInf, nil
 }
 
-// GetDeliveryServicesByServer returns all of the (tenant-visible) Delivery 
Services assigned to
-// the server identified by the integral, unique identifier 'id'.
 func (to *Session) GetDeliveryServicesByServer(id int) ([]tc.DeliveryService, 
ReqInf, error) {
        var data tc.DeliveryServicesResponse
 
-       reqInf, err := get(to, fmt.Sprintf(API_SERVER_DELIVERY_SERVICES, id), 
&data)
+       reqInf, err := get(to, deliveryServicesByServerEp(strconv.Itoa(id)), 
&data)
 
 Review comment:
   This function doesn't exist anymore.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to