dewrich closed pull request #2209: TO test - add snapshot to compare tool
URL: https://github.com/apache/incubator-trafficcontrol/pull/2209
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/traffic_ops/testing/compare/compare.go
b/traffic_ops/testing/compare/compare.go
index 58e3badbc..b11f88436 100644
--- a/traffic_ops/testing/compare/compare.go
+++ b/traffic_ops/testing/compare/compare.go
@@ -295,9 +295,13 @@ func main() {
}
log.Printf("CDNNames are %+v", cdnNames)
- wg.Add(len(cdnNames))
+ wg.Add(2*len(cdnNames))
for _, cdnName := range cdnNames {
log.Print("CDN ", cdnName)
+ go func(c string) {
+ testRoute(tos, `api/1.3/cdns/`+c+`/snapshot`)
+ wg.Done()
+ }(cdnName)
go func(c string) {
testRoute(tos,
`api/1.3/cdns/`+c+`/snapshot/new`)
wg.Done()
diff --git a/traffic_ops/testing/compare/testroutes.txt
b/traffic_ops/testing/compare/testroutes.txt
index 27e768c76..4c9e72c49 100644
--- a/traffic_ops/testing/compare/testroutes.txt
+++ b/traffic_ops/testing/compare/testroutes.txt
@@ -1,3 +1,4 @@
+api/1.3/about
api/1.3/asns?orderby=id
api/1.3/cdns?orderby=id
api/1.3/divisions?orderby=id
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services