This is an automated email from the ASF dual-hosted git repository.

dewrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit 40a14ee753b0116e3fefb8173b7f7410c21b6653
Author: Jesse Rivas <jesse_ri...@comcast.com>
AuthorDate: Mon Apr 16 09:37:45 2018 -0600

    Traffic Ops golang API servers test cleanup
---
 traffic_ops/testing/api/v13/servers_test.go | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/traffic_ops/testing/api/v13/servers_test.go 
b/traffic_ops/testing/api/v13/servers_test.go
index 207cfb7..cb305d3 100644
--- a/traffic_ops/testing/api/v13/servers_test.go
+++ b/traffic_ops/testing/api/v13/servers_test.go
@@ -49,39 +49,39 @@ func TestServers(t *testing.T) {
 func CreateTestServers(t *testing.T) {
 
        // GET EDGE1 profile
-       resp, _, err := TOSession.GetProfileByName("EDGE1")
+       respProfiles, _, err := TOSession.GetProfileByName("EDGE1")
        if err != nil {
                t.Errorf("cannot GET Profiles - %v\n", err)
        }
-       respProfile := resp[0]
+       respProfile := respProfiles[0]
 
        // GET EDGE type
-       resp2, _, err := TOSession.GetTypeByName("EDGE")
+       respTypes, _, err := TOSession.GetTypeByName("EDGE")
        if err != nil {
                t.Errorf("cannot GET Division by name: EDGE - %v\n", err)
        }
-       respType := resp2[0]
+       respType := respTypes[0]
 
        // GET ONLINE status
-       resp3, _, err := TOSession.GetStatusByName("ONLINE")
+       respStatuses, _, err := TOSession.GetStatusByName("ONLINE")
        if err != nil {
                t.Errorf("cannot GET Status by name: ONLINE - %v\n", err)
        }
-       respStatus := resp3[0]
+       respStatus := respStatuses[0]
 
        // GET Denver physlocation
-       resp4, _, err := TOSession.GetPhysLocationByName("Denver")
+       respPhysLocations, _, err := TOSession.GetPhysLocationByName("Denver")
        if err != nil {
                t.Errorf("cannot GET PhysLocation by name: Denver - %v\n", err)
        }
-       respPhysLocation := resp4[0]
+       respPhysLocation := respPhysLocations[0]
 
        // GET cachegroup1 cachegroup
-       resp5, _, err := TOSession.GetCacheGroupByName("cachegroup1")
+       respCacheGroups, _, err := TOSession.GetCacheGroupByName("cachegroup1")
        if err != nil {
                t.Errorf("cannot GET CacheGroup by name: cachegroup1 - %v\n", 
err)
        }
-       respCacheGroup := resp5[0]
+       respCacheGroup := respCacheGroups[0]
 
        // loop through servers, assign FKs and create
        for _, server := range testData.Servers {

-- 
To stop receiving notification emails like this one, please contact
dewr...@apache.org.

Reply via email to