You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2020/11/18 17:26:23 UTC

[trafficcontrol] 01/09: Fix an issue with API v1/2 tests not cleaning up certain v3 structures (topologies) (#5282)

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

ocket8888 pushed a commit to branch 5.0.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit a73b193fecebc7cdaba0f72408c60dc1160a6209
Author: ocket8888 <oc...@apache.org>
AuthorDate: Fri Nov 13 10:53:11 2020 -0700

    Fix an issue with API v1/2 tests not cleaning up certain v3 structures (topologies) (#5282)
    
    (cherry picked from commit 087a221d19d0e5f34afb668a3a3c5b6f23705936)
---
 traffic_ops/testing/api/v1/todb_test.go | 1 +
 traffic_ops/testing/api/v2/todb_test.go | 1 +
 2 files changed, 2 insertions(+)

diff --git a/traffic_ops/testing/api/v1/todb_test.go b/traffic_ops/testing/api/v1/todb_test.go
index cba904d..c85564c 100644
--- a/traffic_ops/testing/api/v1/todb_test.go
+++ b/traffic_ops/testing/api/v1/todb_test.go
@@ -333,6 +333,7 @@ func Teardown(db *sql.DB) error {
 	DELETE FROM profile;
 	DELETE FROM parameter;
 	DELETE FROM profile_parameter;
+	DELETE FROM topology;
 	DELETE FROM cachegroup;
 	DELETE FROM coordinate;
 	DELETE FROM type;
diff --git a/traffic_ops/testing/api/v2/todb_test.go b/traffic_ops/testing/api/v2/todb_test.go
index 95e3228..370187d 100644
--- a/traffic_ops/testing/api/v2/todb_test.go
+++ b/traffic_ops/testing/api/v2/todb_test.go
@@ -333,6 +333,7 @@ func Teardown(db *sql.DB) error {
 	DELETE FROM profile;
 	DELETE FROM parameter;
 	DELETE FROM profile_parameter;
+	DELETE FROM topology;
 	DELETE FROM cachegroup;
 	DELETE FROM coordinate;
 	DELETE FROM type;