You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2018/04/12 16:09:44 UTC
[incubator-trafficcontrol] branch master updated: removed status
comments and fixed the test cases
This is an automated email from the ASF dual-hosted git repository.
mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 954a4a3 removed status comments and fixed the test cases
954a4a3 is described below
commit 954a4a3aad3a22a9fc5f180fb3e7f69ba5f37e04
Author: Dewayne Richardson <de...@apache.org>
AuthorDate: Wed Apr 11 11:06:08 2018 -0600
removed status comments and fixed the test cases
---
traffic_ops/testing/api/v13/statuses_test.go | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/traffic_ops/testing/api/v13/statuses_test.go b/traffic_ops/testing/api/v13/statuses_test.go
index d8d798a..afe375b 100644
--- a/traffic_ops/testing/api/v13/statuses_test.go
+++ b/traffic_ops/testing/api/v13/statuses_test.go
@@ -25,9 +25,9 @@ import (
func TestStatuses(t *testing.T) {
CreateTestStatuses(t)
- //UpdateTestStatuses(t)
- //GetTestStatuses(t)
- //DeleteTestStatuses(t)
+ UpdateTestStatuses(t)
+ GetTestStatuses(t)
+ DeleteTestStatuses(t)
}
@@ -52,8 +52,8 @@ func UpdateTestStatuses(t *testing.T) {
t.Errorf("cannot GET Status by name: %v - %v\n", firstStatus.Name, err)
}
remoteStatus := resp[0]
- expectedStatusName := "testStatus1"
- remoteStatus.Name = expectedStatusName
+ expectedStatusDesc := "new description"
+ remoteStatus.Description = expectedStatusDesc
var alert tc.Alerts
alert, _, err = TOSession.UpdateStatusByID(remoteStatus.ID, remoteStatus)
if err != nil {
@@ -63,11 +63,11 @@ func UpdateTestStatuses(t *testing.T) {
// Retrieve the Status to check Status name got updated
resp, _, err = TOSession.GetStatusByID(remoteStatus.ID)
if err != nil {
- t.Errorf("cannot GET Status by name: %v - %v\n", firstStatus.Name, err)
+ t.Errorf("cannot GET Status by ID: %v - %v\n", firstStatus.Description, err)
}
respStatus := resp[0]
- if respStatus.Name != expectedStatusName {
- t.Errorf("results do not match actual: %s, expected: %s\n", respStatus.Name, expectedStatusName)
+ if respStatus.Description != expectedStatusDesc {
+ t.Errorf("results do not match actual: %s, expected: %s\n", respStatus.Name, expectedStatusDesc)
}
}
--
To stop receiving notification emails like this one, please contact
mitchell852@apache.org.