You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/09/16 14:16:41 UTC

[GitHub] [trafficcontrol] ocket8888 commented on a change in pull request #6172: Add TO Client API for Create Update Delivery Service Automation

ocket8888 commented on a change in pull request #6172:
URL: https://github.com/apache/trafficcontrol/pull/6172#discussion_r710162387



##########
File path: traffic_ops/testing/api/v4/deliveryservices_test.go
##########
@@ -1035,11 +1037,54 @@ func UpdateTestDeliveryServices(t *testing.T) {
 	updatedLongDesc := "something different"
 	updatedMaxDNSAnswers := 164598
 	updatedMaxOriginConnections := 100
+	updatedActive := false
+	//updatedCdnId : =
+	updatedDisplayName := "newds1displayname"
+	updatedDscp := 41
+	updatedGeoLimit := 1
+	updatedInitialDispersion := 2
+	updatedIpv6RoutingEnabled := false
+	updatedLogsEnabled := false
+	updatedMissLat := 42.881944
+	updatedMissLong := -88.627778
+	updateMultisiteOrigin := true
+	updatedOrgServerFqdn := "http://origin.example.net"
+	//updatedProfile :=
+	updateProtocol := 2
+	updateQstringIgnore := 0
+	updateRegionalGeoBlocking := true
+
 	remoteDS.LongDesc = &updatedLongDesc
 	remoteDS.MaxDNSAnswers = &updatedMaxDNSAnswers
 	remoteDS.MaxOriginConnections = &updatedMaxOriginConnections
 	remoteDS.MatchList = nil // verify that this field is optional in a PUT request, doesn't cause nil dereference panic
 	remoteDS.MaxRequestHeaderBytes = &updatedMaxRequestHeaderSize
+	remoteDS.Active = &updatedActive
+	remoteDS.DisplayName = &updatedDisplayName
+	remoteDS.DSCP = &updatedDscp
+	remoteDS.GeoLimit = &updatedGeoLimit
+	remoteDS.InitialDispersion = &updatedInitialDispersion
+	remoteDS.IPV6RoutingEnabled = &updatedIpv6RoutingEnabled
+	remoteDS.LogsEnabled = &updatedLogsEnabled
+	remoteDS.MissLat = &updatedMissLat
+	remoteDS.MissLong = &updatedMissLong
+	remoteDS.MultiSiteOrigin = &updateMultisiteOrigin
+	remoteDS.OrgServerFQDN = &updatedOrgServerFqdn
+	//remoteDS.ProfileID = &updatedProfile

Review comment:
       Same as above

##########
File path: traffic_ops/testing/api/v4/deliveryservices_test.go
##########
@@ -1035,11 +1037,54 @@ func UpdateTestDeliveryServices(t *testing.T) {
 	updatedLongDesc := "something different"
 	updatedMaxDNSAnswers := 164598
 	updatedMaxOriginConnections := 100
+	updatedActive := false
+	//updatedCdnId : =
+	updatedDisplayName := "newds1displayname"
+	updatedDscp := 41
+	updatedGeoLimit := 1
+	updatedInitialDispersion := 2
+	updatedIpv6RoutingEnabled := false
+	updatedLogsEnabled := false
+	updatedMissLat := 42.881944
+	updatedMissLong := -88.627778
+	updateMultisiteOrigin := true
+	updatedOrgServerFqdn := "http://origin.example.net"
+	//updatedProfile :=

Review comment:
       should this be commented out? If so, do we need it in here at all?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org