trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [incubator-trafficcontrol] 05/36: Add DeepCachingType field to DS struct in go client
Date Wed, 24 Jan 2018 17:23:14 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit bfb1b56a2ab709687b213f3895c64ea60d55cfc4
Author: Rawlin Peters <rawlin_peters@comcast.com>
AuthorDate: Fri Oct 13 16:09:17 2017 -0600

    Add DeepCachingType field to DS struct in go client
---
 lib/go-tc/deliveryservices.go                                     | 1 +
 traffic_ops/client_tests/fixtures/delivery_service.go             | 1 +
 traffic_ops/client_tests/fixtures/traffic_router_config.go        | 8 ++++----
 .../client_tests/tests/integration/deliveryservice_test.go        | 2 ++
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/lib/go-tc/deliveryservices.go b/lib/go-tc/deliveryservices.go
index 66a65b4..6c1f381 100644
--- a/lib/go-tc/deliveryservices.go
+++ b/lib/go-tc/deliveryservices.go
@@ -56,6 +56,7 @@ type DeliveryService struct {
 	Active               bool                   `json:"active"`
 	DSCP                 int                    `json:"dscp"`
 	RoutingName          string                 `json:"routingName"`
+	DeepCachingType      int                    `json:"deepCachingType"`
 	Signed               bool                   `json:"signed"`
 	QStringIgnore        int                    `json:"qstringIgnore"`
 	GeoLimit             int                    `json:"geoLimit"`
diff --git a/traffic_ops/client_tests/fixtures/delivery_service.go b/traffic_ops/client_tests/fixtures/delivery_service.go
index dd869e8..dcc714b 100644
--- a/traffic_ops/client_tests/fixtures/delivery_service.go
+++ b/traffic_ops/client_tests/fixtures/delivery_service.go
@@ -26,6 +26,7 @@ func DeliveryServices() *client.GetDeliveryServiceResponse {
 				XMLID:                "ds-test",
 				Active:               true,
 				DSCP:                 40,
+				DeepCachingType:      0,
 				RoutingName:          "edge",
 				Signed:               false,
 				QStringIgnore:        1,
diff --git a/traffic_ops/client_tests/fixtures/traffic_router_config.go b/traffic_ops/client_tests/fixtures/traffic_router_config.go
index 4dca715..b4508b3 100644
--- a/traffic_ops/client_tests/fixtures/traffic_router_config.go
+++ b/traffic_ops/client_tests/fixtures/traffic_router_config.go
@@ -8,9 +8,9 @@ package fixtures
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -19,7 +19,6 @@ package fixtures
  * under the License.
  */
 
-
 import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
 
 // TrafficRouterConfig returns a default TRConfigResponse to be used for testing.
@@ -114,7 +113,8 @@ func TrafficRouterConfig() *client.TRConfigResponse {
 					Domains: []string{
 						"ga.atlanta.kabletown.net",
 					},
-					RoutingName: "edge",
+					RoutingName:     "edge",
+					DeepCachingType: 0,
 					MissLocation: client.MissLocation{
 						Latitude:  75,
 						Longitude: 65,
diff --git a/traffic_ops/client_tests/tests/integration/deliveryservice_test.go b/traffic_ops/client_tests/tests/integration/deliveryservice_test.go
index 2aefc4d..14193af 100644
--- a/traffic_ops/client_tests/tests/integration/deliveryservice_test.go
+++ b/traffic_ops/client_tests/tests/integration/deliveryservice_test.go
@@ -62,6 +62,7 @@ func init() {
 	testDs.CDNID = cdn.ID
 	testDs.CacheURL = "cacheURL"
 	testDs.CheckPath = "CheckPath"
+	testDs.DeepCachingType = 0
 	testDs.DNSBypassCname = "DNSBypassCNAME"
 	testDs.DNSBypassIP = "10.10.10.10"
 	testDs.DNSBypassIP6 = "FF01:0:0:0:0:0:0:FB"
@@ -94,6 +95,7 @@ func init() {
 	testDs.RangeRequestHandling = 0
 	testDs.RegexRemap = "regexRemap"
 	testDs.RemapText = "remapText"
+	testDs.RoutingName = "edge"
 	testDs.Signed = false
 	testDs.TRResponseHeaders = "TRResponseHeaders"
 	testDs.Type = dsType.Name

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

Mime
View raw message