You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/02/26 16:45:13 UTC
[incubator-trafficcontrol] 07/17: modified the expected name
This is an automated email from the ASF dual-hosted git repository.
dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit 91dd50224d639e76238418862608d8dad87bf904
Author: Dewayne Richardson <de...@apache.org>
AuthorDate: Wed Feb 21 08:55:51 2018 -0700
modified the expected name
---
traffic_ops/testing/api/phys_location_test.go | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/traffic_ops/testing/api/phys_location_test.go b/traffic_ops/testing/api/phys_location_test.go
index dc194e4..ef21730 100644
--- a/traffic_ops/testing/api/phys_location_test.go
+++ b/traffic_ops/testing/api/phys_location_test.go
@@ -16,7 +16,6 @@
package api
import (
- "fmt"
"testing"
"github.com/apache/incubator-trafficcontrol/lib/go-log"
@@ -34,18 +33,6 @@ func TestPhysLocations(t *testing.T) {
func CreateTestPhysLocations(t *testing.T) {
for _, physLocation := range testData.PhysLocations {
- fmt.Printf("physLocation ---> %v\n", physLocation)
- fmt.Printf("physLocation.Address ---> %v\n", physLocation.Address)
- fmt.Printf("physLocation.City ---> %v\n", physLocation.City)
- fmt.Printf("physLocation.Comments ---> %v\n", physLocation.Comments)
- fmt.Printf("physLocation.Email ---> %v\n", physLocation.Email)
- fmt.Printf("physLocation.Name ---> %v\n", physLocation.Name)
- fmt.Printf("physLocation.Phone ---> %v\n", physLocation.Phone)
- fmt.Printf("physLocation.RegionName ---> %v\n", physLocation.RegionName)
- fmt.Printf("physLocation.RegionId ---> %v\n", physLocation.RegionID)
- fmt.Printf("physLocation.ShortName ---> %v\n", physLocation.ShortName)
- fmt.Printf("physLocation.State ---> %v\n", physLocation.State)
- fmt.Printf("physLocation.Zip ---> %v\n", physLocation.Zip)
resp, _, err := TOSession.CreatePhysLocation(physLocation)
log.Debugln("Response: ", resp)
if err != nil {
@@ -63,7 +50,7 @@ func UpdateTestPhysLocations(t *testing.T) {
t.Errorf("cannot GET PhysLocation by physLocation: %v - %v\n", firstPhysLocation.Name, err)
}
remotePhysLocation := resp[0]
- expectedPhysLocation := "OFFLINE-TEST"
+ expectedPhysLocationName := "UPDATED"
remotePhysLocation.Name = expectedPhysLocation
var alert tc.Alerts
alert, _, err = TOSession.UpdatePhysLocationByID(remotePhysLocation.ID, remotePhysLocation)
@@ -95,6 +82,7 @@ func GetTestPhysLocations(t *testing.T) {
func DeleteTestPhysLocations(t *testing.T) {
physLocation := testData.PhysLocations[1]
+
// Retrieve the PhysLocation by name so we can get the id
resp, _, err := TOSession.GetPhysLocationByName(physLocation.Name)
if err != nil {
--
To stop receiving notification emails like this one, please contact
dangogh@apache.org.