You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ra...@apache.org on 2018/11/02 15:06:16 UTC
[trafficcontrol] 07/09: fix servers/id/deliveryservices endpoint in
client
This is an automated email from the ASF dual-hosted git repository.
rawlin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit 6ff06f5cd469de5734729f91f3c1cd225aa950d9
Author: Dan Kirkwood <da...@apache.org>
AuthorDate: Tue Oct 30 14:54:32 2018 -0600
fix servers/id/deliveryservices endpoint in client
---
traffic_ops/client/deliveryservice.go | 1 +
traffic_ops/client/deliveryservice_endpoints.go | 2 +-
traffic_ops/testing/api/v14/tenants_test.go | 1 -
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/traffic_ops/client/deliveryservice.go b/traffic_ops/client/deliveryservice.go
index 67c6823..0b63baf 100644
--- a/traffic_ops/client/deliveryservice.go
+++ b/traffic_ops/client/deliveryservice.go
@@ -49,6 +49,7 @@ func (to *Session) DeliveryServicesByServer(id int) ([]tc.DeliveryService, error
func (to *Session) GetDeliveryServicesByServer(id int) ([]tc.DeliveryService, ReqInf, error) {
var data tc.DeliveryServicesResponse
+
reqInf, err := get(to, deliveryServicesByServerEp(strconv.Itoa(id)), &data)
if err != nil {
return nil, reqInf, err
diff --git a/traffic_ops/client/deliveryservice_endpoints.go b/traffic_ops/client/deliveryservice_endpoints.go
index 32eb1d7..a9313f4 100644
--- a/traffic_ops/client/deliveryservice_endpoints.go
+++ b/traffic_ops/client/deliveryservice_endpoints.go
@@ -22,7 +22,7 @@ func deliveryServicesEp() string {
}
func deliveryServicesByServerEp(id string) string {
- return apiBase + "/servers/" + id + dsPath + ".json"
+ return apiBase + "/servers/" + id + dsPath
}
func deliveryServiceBaseEp(id string) string {
diff --git a/traffic_ops/testing/api/v14/tenants_test.go b/traffic_ops/testing/api/v14/tenants_test.go
index d867364..fcf295b 100644
--- a/traffic_ops/testing/api/v14/tenants_test.go
+++ b/traffic_ops/testing/api/v14/tenants_test.go
@@ -104,7 +104,6 @@ func UpdateTestTenants(t *testing.T) {
func DeleteTestTenants(t *testing.T) {
- t.Logf("deleting tenants")
t1 := "tenant1"
tenant1, _, err := TOSession.TenantByName(t1)