You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2016/11/04 14:30:47 UTC
[4/6] incubator-trafficcontrol git commit: add missing fields to
`DeliveryServiceSSLKeys`
add missing fields to `DeliveryServiceSSLKeys`
This adds `CDN` and `DeliveryService` fields.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/8d6067b2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/8d6067b2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/8d6067b2
Branch: refs/heads/master
Commit: 8d6067b2bba8d4387a52ca449f60713fda8f287d
Parents: a731bbf
Author: Mike Ball <mi...@gmail.com>
Authored: Tue Nov 1 06:22:34 2016 -0400
Committer: Dave Neuman <ne...@apache.org>
Committed: Fri Nov 4 08:29:54 2016 -0600
----------------------------------------------------------------------
traffic_ops/client/delivery_service.go | 18 ++++++++++--------
traffic_ops/client/fixtures/delivery_service.go | 18 ++++++++++--------
2 files changed, 20 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/8d6067b2/traffic_ops/client/delivery_service.go
----------------------------------------------------------------------
diff --git a/traffic_ops/client/delivery_service.go b/traffic_ops/client/delivery_service.go
index 8afb0ff..8318098 100644
--- a/traffic_ops/client/delivery_service.go
+++ b/traffic_ops/client/delivery_service.go
@@ -167,14 +167,16 @@ type DeliveryServiceSSLKeysResponse struct {
// DeliveryServiceSSLKeys ...
type DeliveryServiceSSLKeys struct {
- BusinessUnit string `json:"businessUnit"`
- City string `json:"city"`
- Organization string `json:"organization"`
- Hostname string `json:"hostname"`
- Country string `json:"country"`
- State string `json:"state"`
- Version string `json:"version"`
- Certificate DeliveryServiceSSLKeysCertificate `json:"certificate"`
+ CDN string `json:"cdn"`
+ DeliveryService string `json:"DeliveryService"`
+ BusinessUnit string `json:"businessUnit"`
+ City string `json:"city"`
+ Organization string `json:"organization"`
+ Hostname string `json:"hostname"`
+ Country string `json:"country"`
+ State string `json:"state"`
+ Version string `json:"version"`
+ Certificate DeliveryServiceSSLKeysCertificate `json:"certificate"`
}
// DeliveryServiceSSLKeysCertificate ...
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/8d6067b2/traffic_ops/client/fixtures/delivery_service.go
----------------------------------------------------------------------
diff --git a/traffic_ops/client/fixtures/delivery_service.go b/traffic_ops/client/fixtures/delivery_service.go
index 43f6f8c..9a6e66f 100644
--- a/traffic_ops/client/fixtures/delivery_service.go
+++ b/traffic_ops/client/fixtures/delivery_service.go
@@ -152,14 +152,16 @@ func DeliveryServiceSSLKeys() *client.DeliveryServiceSSLKeysResponse {
}
sslKeys := client.DeliveryServiceSSLKeys{
- Certificate: crt,
- BusinessUnit: "businessUnit",
- City: "city",
- Organization: "Kabletown",
- Hostname: "hostname",
- Country: "country",
- State: "state",
- Version: "version",
+ CDN: "cdn",
+ DeliveryService: "deliveryService",
+ Certificate: crt,
+ BusinessUnit: "businessUnit",
+ City: "city",
+ Organization: "Kabletown",
+ Hostname: "hostname",
+ Country: "country",
+ State: "state",
+ Version: "version",
}
return &client.DeliveryServiceSSLKeysResponse{