http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/delivery_service_resources.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/delivery_service_resources.go b/traffic_ops/client/delivery_service_resources.go new file mode 100644 index 0000000..9bccd2e --- /dev/null +++ b/traffic_ops/client/delivery_service_resources.go @@ -0,0 +1,206 @@ +/* + Copyright 2015 Comcast Cable Communications Management, LLC + + Licensed 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 KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +package client + +// DeliveryServiceResponse ... +type DeliveryServiceResponse struct { + Version string `json:"version"` + Response []DeliveryService `json:"response"` +} + +// CreateDeliveryServiceResponse ... +type CreateDeliveryServiceResponse struct { + Response DeliveryService `json:"response"` + Alerts []DeliveryServiceAlert `json:"alerts"` +} + +// DeliveryService ... +type DeliveryService struct { + ID string `json:"id"` + XMLID string `json:"xmlId"` + Active bool `json:"active"` + DSCP string `json:"dscp"` + Signed bool `json:"signed"` + QStringIgnore string `json:"qstringIgnore"` + GeoLimit string `json:"geoLimit"` + GeoProvider string `json:"geoProvider"` + HTTPBypassFQDN string `json:"httpBypassFqdn"` + DNSBypassIP string `json:"dnsBypassIp"` + DNSBypassIP6 string `json:"dnsBypassIp6"` + DNSBypassCname string `json:"dnsBypassCname"` + DNSBypassTTL string `json:"dnsBypassTtl"` + OrgServerFQDN string `json:"orgServerFqdn"` + Type string `json:"type"` + ProfileName string `json:"profileName"` + ProfileDesc string `json:"profileDescription"` + CDNName string `json:"cdnName"` + CCRDNSTTL string `json:"ccrDnsTtl"` + GlobalMaxMBPS string `json:"globalMaxMbps"` + GlobalMaxTPS string `json:"globalMaxTps"` + LongDesc string `json:"longDesc"` + LongDesc1 string `json:"longDesc1"` + LongDesc2 string `json:"longDesc2"` + MaxDNSAnswers string `json:"maxDnsAnswers"` + InfoURL string `json:"infoUrl"` + MissLat string `json:"missLat"` + MissLong string `json:"missLong"` + CheckPath string `json:"checkPath"` + LastUpdated string `json:"lastUpdated"` + Protocol string `json:"protocol"` + IPV6RoutingEnabled bool `json:"ipv6RoutingEnabled"` + RangeRequestHandling string `json:"rangeRequestHandling"` + HeaderRewrite string `json:"headerRewrite"` + EdgeHeaderRewrite string `json:"edgeHeaderRewrite"` + MidHeaderRewrite string `json:"midHeaderRewrite"` + TRResponseHeaders string `json:"trResponseHeaders"` + RegexRemap string `json:"regexRemap"` + CacheURL string `json:"cacheurl"` + RemapText string `json:"remapText"` + MultiSiteOrigin string `json:"multiSiteOrigin"` + DisplayName string `json:"displayName"` + InitialDispersion string `json:"initialDispersion"` + MatchList []DeliveryServiceMatch `json:"matchList,omitempty"` +} + +// DeliveryServiceMatch ... +type DeliveryServiceMatch struct { + Type string `json:"type"` + SetNumber string `json:"setNumber"` + Pattern string `json:"pattern"` +} + +// DeliveryServiceAlert ... +type DeliveryServiceAlert struct { + Level string `json:"level"` + Text string `json:"text"` +} + +// DeliveryServiceStateResponse ... +type DeliveryServiceStateResponse struct { + Response DeliveryServiceState `json:"response"` +} + +// DeliveryServiceState ... +type DeliveryServiceState struct { + Enabled bool `json:"enabled"` + Failover DeliveryServiceFailover `json:"failover"` +} + +// DeliveryServiceFailover ... +type DeliveryServiceFailover struct { + Locations []string `json:"locations"` + Destination DeliveryServiceDestination `json:"destination"` + Configured bool `json:"configured"` + Enabled bool `json:"enabled"` +} + +// DeliveryServiceDestination ... +type DeliveryServiceDestination struct { + Location string `json:"location"` + Type string `json:"type"` +} + +// DeliveryServiceHealthResponse ... +type DeliveryServiceHealthResponse struct { + Response DeliveryServiceHealth `json:"response"` +} + +// DeliveryServiceHealth ... +type DeliveryServiceHealth struct { + TotalOnline int `json:"totalOnline"` + TotalOffline int `json:"totalOffline"` + CacheGroups []DeliveryServiceCacheGroup `json:"cacheGroups"` +} + +// DeliveryServiceCacheGroup ... +type DeliveryServiceCacheGroup struct { + Online int `json:"online"` + Offline int `json:"offline"` + Name string `json:"name"` +} + +// DeliveryServiceCapacityResponse ... +type DeliveryServiceCapacityResponse struct { + Response DeliveryServiceCapacity `json:"response"` +} + +// DeliveryServiceCapacity ... +type DeliveryServiceCapacity struct { + AvailablePercent float64 `json:"availablePercent"` + UnavailablePercent float64 `json:"unavailablePercent"` + UtilizedPercent float64 `json:"utilizedPercent"` + MaintenancePercent float64 `json:"maintenancePercent"` +} + +// DeliveryServiceRoutingResponse ... +type DeliveryServiceRoutingResponse struct { + Response DeliveryServiceRouting `json:"response"` +} + +// DeliveryServiceRouting ... +type DeliveryServiceRouting struct { + StaticRoute int `json:"staticRoute"` + Miss int `json:"miss"` + Geo float64 `json:"geo"` + Err int `json:"err"` + CZ float64 `json:"cz"` + DSR float64 `json:"dsr"` + Fed int `json:"fed"` + RegionalAlternate int `json:"regionalAlternate"` + RegionalDenied int `json:"regionalDenied"` +} + +// DeliveryServiceServerResponse ... +type DeliveryServiceServerResponse struct { + Response []DeliveryServiceServer `json:"response"` + Page int `json:"page"` + OrderBy string `json:"orderby"` + Limit int `json:"limit"` +} + +// DeliveryServiceServer ... +type DeliveryServiceServer struct { + LastUpdated string `json:"lastUpdated"` + Server string `json:"server"` + DeliveryService string `json:"deliveryService"` +} + +// DeliveryServiceSSLKeysResponse ... +type DeliveryServiceSSLKeysResponse struct { + Response DeliveryServiceSSLKeys `json:"response"` +} + +// DeliveryServiceSSLKeys ... +type DeliveryServiceSSLKeys struct { + 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 ... +type DeliveryServiceSSLKeysCertificate struct { + Crt string `json:"crt"` + Key string `json:"key"` + CSR string `json:"csr"` +}
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/cachegroup.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/cachegroup.go b/traffic_ops/client/fixtures/cachegroup.go index 2adb749..e6bcfd6 100644 --- a/traffic_ops/client/fixtures/cachegroup.go +++ b/traffic_ops/client/fixtures/cachegroup.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // Cachegroups returns a default CacheGroupResponse to be used for testing. func Cachegroups() *client.CacheGroupResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/cdn.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/cdn.go b/traffic_ops/client/fixtures/cdn.go index 497919f..e322ac5 100644 --- a/traffic_ops/client/fixtures/cdn.go +++ b/traffic_ops/client/fixtures/cdn.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // CDNs returns a default CDNResponse to be used for testing. func CDNs() *client.CDNResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/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 c09ed6a..c7be07c 100644 --- a/traffic_ops/client/fixtures/delivery_service.go +++ b/traffic_ops/client/fixtures/delivery_service.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // DeliveryServices returns a default DeliveryServiceResponse to be used for testing. func DeliveryServices() *client.DeliveryServiceResponse { @@ -52,6 +51,19 @@ func DeliveryServices() *client.DeliveryServiceResponse { } } +// CreateDeliveryService returns a default CreateDeliveryServiceResponse to be used for testing. +func CreateDeliveryService() *client.CreateDeliveryServiceResponse { + return &client.CreateDeliveryServiceResponse{ + Response: DeliveryServices().Response[0], + Alerts: []client.DeliveryServiceAlert{ + client.DeliveryServiceAlert{ + Level: "level", + Text: "text", + }, + }, + } +} + // DeliveryServiceState returns a default DeliveryServiceStateResponse to be used for testing. func DeliveryServiceState() *client.DeliveryServiceStateResponse { dest := client.DeliveryServiceDestination{ @@ -111,7 +123,7 @@ func DeliveryServiceCapacity() *client.DeliveryServiceCapacityResponse { // DeliveryServiceRouting returns a default DeliveryServiceRoutingResponse to be used for testing. func DeliveryServiceRouting() *client.DeliveryServiceRoutingResponse { - dsc := client.DeliveryServiceRouting{ + dsr := client.DeliveryServiceRouting{ StaticRoute: 1, Miss: 2, Geo: 3.33, @@ -124,6 +136,48 @@ func DeliveryServiceRouting() *client.DeliveryServiceRoutingResponse { } return &client.DeliveryServiceRoutingResponse{ - Response: dsc, + Response: dsr, + } +} + +// DeliveryServiceServer returns a default DeliveryServiceServerResponse to be used for testing. +func DeliveryServiceServer() *client.DeliveryServiceServerResponse { + dss := client.DeliveryServiceServer{ + LastUpdated: "lastUpdated", + Server: "someServer", + DeliveryService: "someService", + } + + return &client.DeliveryServiceServerResponse{ + Response: []client.DeliveryServiceServer{dss}, + Page: 1, + OrderBy: "foo", + Limit: 1, + } +} + +// DeliveryServiceSSLKeys returns a default DeliveryServiceSSLKeysResponse to be used for testing. +func DeliveryServiceSSLKeys() *client.DeliveryServiceSSLKeysResponse { + crt := client.DeliveryServiceSSLKeysCertificate{ + Crt: "crt", + Key: "key", + CSR: "someService", + } + + sslKeys := client.DeliveryServiceSSLKeys{ + CDN: "cdn", + DeliveryService: "deliveryService", + Certificate: crt, + BusinessUnit: "businessUnit", + City: "city", + Organization: "Kabletown", + Hostname: "hostname", + Country: "country", + State: "state", + Version: "version", + } + + return &client.DeliveryServiceSSLKeysResponse{ + Response: sslKeys, } } http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/hardware.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/hardware.go b/traffic_ops/client/fixtures/hardware.go index 7e571b6..a7069a2 100644 --- a/traffic_ops/client/fixtures/hardware.go +++ b/traffic_ops/client/fixtures/hardware.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // Hardware returns a default HardwareResponse to be used for testing. func Hardware() *client.HardwareResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/parameter.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/parameter.go b/traffic_ops/client/fixtures/parameter.go index d92621b..f946790 100644 --- a/traffic_ops/client/fixtures/parameter.go +++ b/traffic_ops/client/fixtures/parameter.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // Parameters returns a default ParamResponse to be used for testing. func Parameters() *client.ParamResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/profile.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/profile.go b/traffic_ops/client/fixtures/profile.go index 3773534..6ef2da5 100644 --- a/traffic_ops/client/fixtures/profile.go +++ b/traffic_ops/client/fixtures/profile.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // Profiles returns a default ProfileResponse to be used for testing. func Profiles() *client.ProfileResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/server.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/server.go b/traffic_ops/client/fixtures/server.go index e78e1b0..07c541a 100644 --- a/traffic_ops/client/fixtures/server.go +++ b/traffic_ops/client/fixtures/server.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // Servers returns a default ServerResponse to be used for testing. func Servers() *client.ServerResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/stats_summary.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/stats_summary.go b/traffic_ops/client/fixtures/stats_summary.go index c6997f1..bcc7470 100644 --- a/traffic_ops/client/fixtures/stats_summary.go +++ b/traffic_ops/client/fixtures/stats_summary.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // StatsSummary returns a default StatsSummaryResponse to be used for testing. func StatsSummary() *client.StatsSummaryResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/traffic_monitor_config.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/traffic_monitor_config.go b/traffic_ops/client/fixtures/traffic_monitor_config.go index 4af5f65..76efc3d 100644 --- a/traffic_ops/client/fixtures/traffic_monitor_config.go +++ b/traffic_ops/client/fixtures/traffic_monitor_config.go @@ -1,6 +1,26 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * 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 + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // TrafficMonitorConfig returns a default TMConfigResponse to be used for testing. func TrafficMonitorConfig() *client.TMConfigResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/traffic_router_config.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/traffic_router_config.go b/traffic_ops/client/fixtures/traffic_router_config.go index efb8f04..b0cac6d 100644 --- a/traffic_ops/client/fixtures/traffic_router_config.go +++ b/traffic_ops/client/fixtures/traffic_router_config.go @@ -1,6 +1,26 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * 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 + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // TrafficRouterConfig returns a default TRConfigResponse to be used for testing. func TrafficRouterConfig() *client.TRConfigResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/types.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/types.go b/traffic_ops/client/fixtures/types.go index 11160d7..9f74c59 100644 --- a/traffic_ops/client/fixtures/types.go +++ b/traffic_ops/client/fixtures/types.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // Types returns a default TypeResponse to be used for testing. func Types() *client.TypeResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/fixtures/user.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/fixtures/user.go b/traffic_ops/client/fixtures/user.go index 2575ca0..39bf775 100644 --- a/traffic_ops/client/fixtures/user.go +++ b/traffic_ops/client/fixtures/user.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +15,7 @@ package fixtures -import "github.com/Comcast/traffic_control/traffic_ops/client" +import "github.com/apache/incubator-trafficcontrol/traffic_ops/client" // Users returns a default UserResponse to be used for testing. func Users() *client.UserResponse { http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/hardware.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/hardware.go b/traffic_ops/client/hardware.go index 8fbc01a..4bdf124 100644 --- a/traffic_ops/client/hardware.go +++ b/traffic_ops/client/hardware.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/parameter.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/parameter.go b/traffic_ops/client/parameter.go index e55fe2b..72b2f16 100644 --- a/traffic_ops/client/parameter.go +++ b/traffic_ops/client/parameter.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/profile.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/profile.go b/traffic_ops/client/profile.go index f4df1ed..4ef640c 100644 --- a/traffic_ops/client/profile.go +++ b/traffic_ops/client/profile.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/server.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/server.go b/traffic_ops/client/server.go index 1f4d12b..227f9d2 100644 --- a/traffic_ops/client/server.go +++ b/traffic_ops/client/server.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/stats_summary.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/stats_summary.go b/traffic_ops/client/stats_summary.go index 54dabed..1c5df48 100644 --- a/traffic_ops/client/stats_summary.go +++ b/traffic_ops/client/stats_summary.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed 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://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/cachegroup_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/cachegroup_test.go b/traffic_ops/client/tests/cachegroup_test.go index 10cac61..aa343a4 100644 --- a/traffic_ops/client/tests/cachegroup_test.go +++ b/traffic_ops/client/tests/cachegroup_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/cdn_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/cdn_test.go b/traffic_ops/client/tests/cdn_test.go index 977fbbc..bec59a0 100644 --- a/traffic_ops/client/tests/cdn_test.go +++ b/traffic_ops/client/tests/cdn_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/delivery_service_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/delivery_service_test.go b/traffic_ops/client/tests/delivery_service_test.go index 595639d..45336b1 100644 --- a/traffic_ops/client/tests/delivery_service_test.go +++ b/traffic_ops/client/tests/delivery_service_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) @@ -139,6 +138,54 @@ func TestDeliveryServiceUnauthorized(t *testing.T) { } } +func TestCreateDeliveryService(t *testing.T) { + resp := fixtures.CreateDeliveryService() + server := testHelper.ValidHTTPServer(resp) + defer server.Close() + + var httpClient http.Client + to := client.Session{ + URL: server.URL, + UserAgent: &httpClient, + } + + testHelper.Context(t, "Given the need to test a successful Traffic Ops request to create a DeliveryService") + + ds, err := to.CreateDeliveryService(&client.DeliveryService{}) + if err != nil { + testHelper.Error(t, "Should be able to make a request to Traffic Ops") + } else { + testHelper.Success(t, "Should be able to make a request to Traffic Ops") + } + + actual := ds.Response.ID + if actual != "001" { + testHelper.Error(t, "Should get back \"001\" for \"Response.ID\", got: %s", actual) + } else { + testHelper.Success(t, "Should get back \"0001\" for \"Response.ID\"") + } +} + +func TestCreateDeliveryServiceUnauthorized(t *testing.T) { + server := testHelper.InvalidHTTPServer(http.StatusUnauthorized) + defer server.Close() + + var httpClient http.Client + to := client.Session{ + URL: server.URL, + UserAgent: &httpClient, + } + + testHelper.Context(t, "Given the need to test a failed Traffic Ops request to create a DeliveryService") + + _, err := to.CreateDeliveryService(&client.DeliveryService{}) + if err == nil { + testHelper.Error(t, "Should not be able to make a request to Traffic Ops") + } else { + testHelper.Success(t, "Should not be able to make a request to Traffic Ops") + } +} + func TestDeliveryServiceState(t *testing.T) { resp := fixtures.DeliveryServiceState() server := testHelper.ValidHTTPServer(resp) @@ -356,3 +403,168 @@ func TestDeliveryServiceRoutingUnauthorized(t *testing.T) { testHelper.Success(t, "Should not be able to make a request to Traffic Ops") } } + +func TestDeliveryServiceServer(t *testing.T) { + resp := fixtures.DeliveryServiceServer() + server := testHelper.ValidHTTPServer(resp) + defer server.Close() + + var httpClient http.Client + to := client.Session{ + URL: server.URL, + UserAgent: &httpClient, + } + + testHelper.Context(t, "Given the need to test a successful Traffic Ops request for a DeliveryServiceServer") + + s, err := to.DeliveryServiceServer("1", "1") + if err != nil { + testHelper.Error(t, "Should be able to make a request to Traffic Ops") + } else { + testHelper.Success(t, "Should be able to make a request to Traffic Ops") + } + + if s[0].LastUpdated != "lastUpdated" { + testHelper.Error(t, "Should get back \"lastUpdated\" for \"LastUpdated\", got: %s", s[0].LastUpdated) + } else { + testHelper.Success(t, "Should get back \"lastUpdated\" for \"LastUpdated\"") + } + + if s[0].Server != "someServer" { + testHelper.Error(t, "Should get back \"someServer\" for \"Server\", got: %s", s[0].Server) + } else { + testHelper.Success(t, "Should get back \"someServer\" for \"Server\"") + } + + if s[0].DeliveryService != "someService" { + testHelper.Error(t, "Should get back \"someService\" for \"DeliveryService\", got: %s", s[0].DeliveryService) + } else { + testHelper.Success(t, "Should get back \"someService\" for \"DeliveryService\"") + } +} + +func TestDeliveryServiceServerUnauthorized(t *testing.T) { + server := testHelper.InvalidHTTPServer(http.StatusUnauthorized) + defer server.Close() + + var httpClient http.Client + to := client.Session{ + URL: server.URL, + UserAgent: &httpClient, + } + + testHelper.Context(t, "Given the need to test a failed Traffic Ops request for a DeliveryServiceServer") + + _, err := to.DeliveryServiceServer("1", "1") + if err == nil { + testHelper.Error(t, "Should not be able to make a request to Traffic Ops") + } else { + testHelper.Success(t, "Should not be able to make a request to Traffic Ops") + } +} + +func TestDeliveryServiceSSLKeysByID(t *testing.T) { + resp := fixtures.DeliveryServiceSSLKeys() + server := testHelper.ValidHTTPServer(resp) + defer server.Close() + + var httpClient http.Client + to := client.Session{ + URL: server.URL, + UserAgent: &httpClient, + } + + testHelper.Context(t, "Given the need to test a successful Traffic Ops request for a DeliveryServiceSSLKeysByID") + + ssl, err := to.DeliveryServiceSSLKeysByID("123") + if err != nil { + testHelper.Error(t, "Should be able to make a request to Traffic Ops") + } else { + testHelper.Success(t, "Should be able to make a request to Traffic Ops") + } + + if ssl.Certificate.Crt != "crt" { + testHelper.Error(t, "Should get back \"crt\" for \"Certificte.Crt\", got: %s", ssl.Certificate.Crt) + } else { + testHelper.Success(t, "Should get back \"crt\" for \"Certificate.Crt\"") + } + + if ssl.Organization != "Kabletown" { + testHelper.Error(t, "Should get back \"Kabletown\" for \"Organization\", got: %s", ssl.Organization) + } else { + testHelper.Success(t, "Should get back \"Kabletown\" for \"Organization\"") + } +} + +func TestDeliveryServiceSSLKeysByIDUnauthorized(t *testing.T) { + server := testHelper.InvalidHTTPServer(http.StatusUnauthorized) + defer server.Close() + + var httpClient http.Client + to := client.Session{ + URL: server.URL, + UserAgent: &httpClient, + } + + testHelper.Context(t, "Given the need to test a failed Traffic Ops request for a DeliveryServiceSSLKeysByID") + + _, err := to.DeliveryServiceSSLKeysByID("123") + if err == nil { + testHelper.Error(t, "Should not be able to make a request to Traffic Ops") + } else { + testHelper.Success(t, "Should not be able to make a request to Traffic Ops") + } +} + +func TestDeliveryServiceSSLKeysByHostname(t *testing.T) { + resp := fixtures.DeliveryServiceSSLKeys() + server := testHelper.ValidHTTPServer(resp) + defer server.Close() + + var httpClient http.Client + to := client.Session{ + URL: server.URL, + UserAgent: &httpClient, + } + + testHelper.Context(t, "Given the need to test a successful Traffic Ops request for a DeliveryServiceSSLKeysByHostname") + + ssl, err := to.DeliveryServiceSSLKeysByHostname("hostname") + if err != nil { + testHelper.Error(t, "Should be able to make a request to Traffic Ops") + } else { + testHelper.Success(t, "Should be able to make a request to Traffic Ops") + } + + if ssl.Certificate.Crt != "crt" { + testHelper.Error(t, "Should get back \"crt\" for \"Certificte.Crt\", got: %s", ssl.Certificate.Crt) + } else { + testHelper.Success(t, "Should get back \"crt\" for \"Certificate.Crt\"") + } + + if ssl.Organization != "Kabletown" { + testHelper.Error(t, "Should get back \"Kabletown\" for \"Organization\", got: %s", ssl.Organization) + } else { + testHelper.Success(t, "Should get back \"Kabletown\" for \"Organization\"") + } +} + +func TestDeliveryServiceSSLKeysByHostnameUnauthorized(t *testing.T) { + server := testHelper.InvalidHTTPServer(http.StatusUnauthorized) + defer server.Close() + + var httpClient http.Client + to := client.Session{ + URL: server.URL, + UserAgent: &httpClient, + } + + testHelper.Context(t, "Given the need to test a failed Traffic Ops request for a DeliveryServiceSSLKeysByHostname") + + _, err := to.DeliveryServiceSSLKeysByHostname("hostname") + if err == nil { + testHelper.Error(t, "Should not be able to make a request to Traffic Ops") + } else { + testHelper.Success(t, "Should not be able to make a request to Traffic Ops") + } +} http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/hardware_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/hardware_test.go b/traffic_ops/client/tests/hardware_test.go index 3b85ff6..140601a 100644 --- a/traffic_ops/client/tests/hardware_test.go +++ b/traffic_ops/client/tests/hardware_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/parameter_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/parameter_test.go b/traffic_ops/client/tests/parameter_test.go index 78de24e..f837445 100644 --- a/traffic_ops/client/tests/parameter_test.go +++ b/traffic_ops/client/tests/parameter_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/profile_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/profile_test.go b/traffic_ops/client/tests/profile_test.go index 600f97e..3b9cc7f 100644 --- a/traffic_ops/client/tests/profile_test.go +++ b/traffic_ops/client/tests/profile_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/server_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/server_test.go b/traffic_ops/client/tests/server_test.go index 76e355c..793c34c 100644 --- a/traffic_ops/client/tests/server_test.go +++ b/traffic_ops/client/tests/server_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,8 +20,8 @@ import ( "net/url" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/stats_summary_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/stats_summary_test.go b/traffic_ops/client/tests/stats_summary_test.go index 35d5ff6..7e677a3 100644 --- a/traffic_ops/client/tests/stats_summary_test.go +++ b/traffic_ops/client/tests/stats_summary_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/traffic_monitor_config_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/traffic_monitor_config_test.go b/traffic_ops/client/tests/traffic_monitor_config_test.go index c6d2b99..fd792a8 100644 --- a/traffic_ops/client/tests/traffic_monitor_config_test.go +++ b/traffic_ops/client/tests/traffic_monitor_config_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/traffic_ops_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/traffic_ops_test.go b/traffic_ops/client/tests/traffic_ops_test.go index 92ff73e..a9dae06 100644 --- a/traffic_ops/client/tests/traffic_ops_test.go +++ b/traffic_ops/client/tests/traffic_ops_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,7 +19,7 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/traffic_router_config_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/traffic_router_config_test.go b/traffic_ops/client/tests/traffic_router_config_test.go index 8784836..ea34581 100644 --- a/traffic_ops/client/tests/traffic_router_config_test.go +++ b/traffic_ops/client/tests/traffic_router_config_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/type_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/type_test.go b/traffic_ops/client/tests/type_test.go index 13b0f8c..e4d8a43 100644 --- a/traffic_ops/client/tests/type_test.go +++ b/traffic_ops/client/tests/type_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/tests/user_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/tests/user_test.go b/traffic_ops/client/tests/user_test.go index c9c92d6..d684770 100644 --- a/traffic_ops/client/tests/user_test.go +++ b/traffic_ops/client/tests/user_test.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,8 +19,8 @@ import ( "net/http" "testing" - "github.com/Comcast/traffic_control/traffic_ops/client" - "github.com/Comcast/traffic_control/traffic_ops/client/fixtures" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client" + "github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures" "github.com/jheitz200/test_helper" ) http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/traffic_monitor_config.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/traffic_monitor_config.go b/traffic_ops/client/traffic_monitor_config.go index b7c5e1e..04e7a8a 100644 --- a/traffic_ops/client/traffic_monitor_config.go +++ b/traffic_ops/client/traffic_monitor_config.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/traffic_ops.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/traffic_ops.go b/traffic_ops/client/traffic_ops.go index d834493..9095481 100644 --- a/traffic_ops/client/traffic_ops.go +++ b/traffic_ops/client/traffic_ops.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/traffic_router_config.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/traffic_router_config.go b/traffic_ops/client/traffic_router_config.go index d68888b..aecd72d 100644 --- a/traffic_ops/client/traffic_router_config.go +++ b/traffic_ops/client/traffic_router_config.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/type.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/type.go b/traffic_ops/client/type.go index e463148..288952c 100644 --- a/traffic_ops/client/type.go +++ b/traffic_ops/client/type.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/client/user.go ---------------------------------------------------------------------- diff --git a/traffic_ops/client/user.go b/traffic_ops/client/user.go index 6c1f397..2d508c3 100644 --- a/traffic_ops/client/user.go +++ b/traffic_ops/client/user.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/etc/init.d/traffic_ops ---------------------------------------------------------------------- diff --git a/traffic_ops/etc/init.d/traffic_ops b/traffic_ops/etc/init.d/traffic_ops index eae3772..d3090d5 100755 --- a/traffic_ops/etc/init.d/traffic_ops +++ b/traffic_ops/etc/init.d/traffic_ops @@ -1,6 +1,5 @@ #!/bin/bash # -# Copyright 2015 Comcast Cable Communications Management, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/etc/logrotate.d/traffic_ops ---------------------------------------------------------------------- diff --git a/traffic_ops/etc/logrotate.d/traffic_ops b/traffic_ops/etc/logrotate.d/traffic_ops index a34531c..f087f92 100644 --- a/traffic_ops/etc/logrotate.d/traffic_ops +++ b/traffic_ops/etc/logrotate.d/traffic_ops @@ -1,5 +1,4 @@ # -# Copyright 2015 Comcast Cable Communications Management, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/etc/logrotate.d/traffic_ops_access ---------------------------------------------------------------------- diff --git a/traffic_ops/etc/logrotate.d/traffic_ops_access b/traffic_ops/etc/logrotate.d/traffic_ops_access index 046b395..658e3ea 100644 --- a/traffic_ops/etc/logrotate.d/traffic_ops_access +++ b/traffic_ops/etc/logrotate.d/traffic_ops_access @@ -1,5 +1,4 @@ # -# Copyright 2015 Comcast Cable Communications Management, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/ats_config/ats_config.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/ats_config/ats_config.go b/traffic_ops/experimental/ats_config/ats_config.go index 00175a9..f15d16d 100644 --- a/traffic_ops/experimental/ats_config/ats_config.go +++ b/traffic_ops/experimental/ats_config/ats_config.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/ats_config/ats_config_cli.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/ats_config/ats_config_cli.go b/traffic_ops/experimental/ats_config/ats_config_cli.go index 1532b95..410c8f6 100644 --- a/traffic_ops/experimental/ats_config/ats_config_cli.go +++ b/traffic_ops/experimental/ats_config/ats_config_cli.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/ats_config/config_files/config_files.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/ats_config/config_files/config_files.go b/traffic_ops/experimental/ats_config/config_files/config_files.go index 8925a6c..4f5878c 100644 --- a/traffic_ops/experimental/ats_config/config_files/config_files.go +++ b/traffic_ops/experimental/ats_config/config_files/config_files.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/ats_config/traffic_ops/traffic_ops.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/ats_config/traffic_ops/traffic_ops.go b/traffic_ops/experimental/ats_config/traffic_ops/traffic_ops.go index 4b3cbe7..e970e40 100644 --- a/traffic_ops/experimental/ats_config/traffic_ops/traffic_ops.go +++ b/traffic_ops/experimental/ats_config/traffic_ops/traffic_ops.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/postgrest/Postgrest_Dockerfile_run.sh ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/postgrest/Postgrest_Dockerfile_run.sh b/traffic_ops/experimental/postgrest/Postgrest_Dockerfile_run.sh index 9444f00..d69a525 100755 --- a/traffic_ops/experimental/postgrest/Postgrest_Dockerfile_run.sh +++ b/traffic_ops/experimental/postgrest/Postgrest_Dockerfile_run.sh @@ -1,4 +1,20 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# 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 +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # Script for running the Dockerfile for Traffic Ops PostgREST # The Dockerfile sets up a Docker image which can be used for any new Traffic Ops PostgREST container; http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/api.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/api.go b/traffic_ops/experimental/server/api/api.go index f9852ed..db78c2f 100644 --- a/traffic_ops/experimental/server/api/api.go +++ b/traffic_ops/experimental/server/api/api.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/asn_test.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/asn_test.go b/traffic_ops/experimental/server/api/asn_test.go index 2db1eb1..893c6b5 100644 --- a/traffic_ops/experimental/server/api/asn_test.go +++ b/traffic_ops/experimental/server/api/asn_test.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/asns.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/asns.go b/traffic_ops/experimental/server/api/asns.go index 991718f..a576c18 100644 --- a/traffic_ops/experimental/server/api/asns.go +++ b/traffic_ops/experimental/server/api/asns.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/cachegroups.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/cachegroups.go b/traffic_ops/experimental/server/api/cachegroups.go index c735ecd..0e30008 100644 --- a/traffic_ops/experimental/server/api/cachegroups.go +++ b/traffic_ops/experimental/server/api/cachegroups.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/cachegroups_parameters.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/cachegroups_parameters.go b/traffic_ops/experimental/server/api/cachegroups_parameters.go index 518c0aa..62c3694 100644 --- a/traffic_ops/experimental/server/api/cachegroups_parameters.go +++ b/traffic_ops/experimental/server/api/cachegroups_parameters.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/cachegroups_types.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/cachegroups_types.go b/traffic_ops/experimental/server/api/cachegroups_types.go index 3fa53b2..5f7c0f8 100644 --- a/traffic_ops/experimental/server/api/cachegroups_types.go +++ b/traffic_ops/experimental/server/api/cachegroups_types.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/cdns.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/cdns.go b/traffic_ops/experimental/server/api/cdns.go index edfa29c..408f200 100644 --- a/traffic_ops/experimental/server/api/cdns.go +++ b/traffic_ops/experimental/server/api/cdns.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/crconfig_snapshots.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/crconfig_snapshots.go b/traffic_ops/experimental/server/api/crconfig_snapshots.go index b4f43be..f0ad8c8 100644 --- a/traffic_ops/experimental/server/api/crconfig_snapshots.go +++ b/traffic_ops/experimental/server/api/crconfig_snapshots.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/deliveryservices.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/deliveryservices.go b/traffic_ops/experimental/server/api/deliveryservices.go index 517bbe0..fdb19a6 100644 --- a/traffic_ops/experimental/server/api/deliveryservices.go +++ b/traffic_ops/experimental/server/api/deliveryservices.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/deliveryservices_regexes.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/deliveryservices_regexes.go b/traffic_ops/experimental/server/api/deliveryservices_regexes.go index 13ca65b..1e899cd 100644 --- a/traffic_ops/experimental/server/api/deliveryservices_regexes.go +++ b/traffic_ops/experimental/server/api/deliveryservices_regexes.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/deliveryservices_servers.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/deliveryservices_servers.go b/traffic_ops/experimental/server/api/deliveryservices_servers.go index c0697a8..8aff5e1 100644 --- a/traffic_ops/experimental/server/api/deliveryservices_servers.go +++ b/traffic_ops/experimental/server/api/deliveryservices_servers.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/deliveryservices_types.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/deliveryservices_types.go b/traffic_ops/experimental/server/api/deliveryservices_types.go index d41ed00..6c20202 100644 --- a/traffic_ops/experimental/server/api/deliveryservices_types.go +++ b/traffic_ops/experimental/server/api/deliveryservices_types.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/deliveryservices_users.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/deliveryservices_users.go b/traffic_ops/experimental/server/api/deliveryservices_users.go index 7794ffb..41fe3d8 100644 --- a/traffic_ops/experimental/server/api/deliveryservices_users.go +++ b/traffic_ops/experimental/server/api/deliveryservices_users.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/divisions.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/divisions.go b/traffic_ops/experimental/server/api/divisions.go index ca5dc52..241485d 100644 --- a/traffic_ops/experimental/server/api/divisions.go +++ b/traffic_ops/experimental/server/api/divisions.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/domains.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/domains.go b/traffic_ops/experimental/server/api/domains.go index b515a35..58c688d 100644 --- a/traffic_ops/experimental/server/api/domains.go +++ b/traffic_ops/experimental/server/api/domains.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/extensions.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/extensions.go b/traffic_ops/experimental/server/api/extensions.go index 456e928..9785777 100644 --- a/traffic_ops/experimental/server/api/extensions.go +++ b/traffic_ops/experimental/server/api/extensions.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/extensions_types.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/extensions_types.go b/traffic_ops/experimental/server/api/extensions_types.go index 03064ac..384ea13 100644 --- a/traffic_ops/experimental/server/api/extensions_types.go +++ b/traffic_ops/experimental/server/api/extensions_types.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/federation_resolvers.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/federation_resolvers.go b/traffic_ops/experimental/server/api/federation_resolvers.go index 8df552f..983888c 100644 --- a/traffic_ops/experimental/server/api/federation_resolvers.go +++ b/traffic_ops/experimental/server/api/federation_resolvers.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/federation_users.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/federation_users.go b/traffic_ops/experimental/server/api/federation_users.go index d0792ab..8f1d32b 100644 --- a/traffic_ops/experimental/server/api/federation_users.go +++ b/traffic_ops/experimental/server/api/federation_users.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/federations.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/federations.go b/traffic_ops/experimental/server/api/federations.go index 7bb832f..f8433a8 100644 --- a/traffic_ops/experimental/server/api/federations.go +++ b/traffic_ops/experimental/server/api/federations.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/federations_deliveryservices.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/federations_deliveryservices.go b/traffic_ops/experimental/server/api/federations_deliveryservices.go index 5a83861..4e2df94 100644 --- a/traffic_ops/experimental/server/api/federations_deliveryservices.go +++ b/traffic_ops/experimental/server/api/federations_deliveryservices.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/federations_federation_resolvers.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/federations_federation_resolvers.go b/traffic_ops/experimental/server/api/federations_federation_resolvers.go index 74deb92..dd24ce4 100644 --- a/traffic_ops/experimental/server/api/federations_federation_resolvers.go +++ b/traffic_ops/experimental/server/api/federations_federation_resolvers.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/goose_db_version.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/goose_db_version.go b/traffic_ops/experimental/server/api/goose_db_version.go index f7470cd..1b76890 100644 --- a/traffic_ops/experimental/server/api/goose_db_version.go +++ b/traffic_ops/experimental/server/api/goose_db_version.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/log.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/log.go b/traffic_ops/experimental/server/api/log.go index 6dce712..8975238 100644 --- a/traffic_ops/experimental/server/api/log.go +++ b/traffic_ops/experimental/server/api/log.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/parameters.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/parameters.go b/traffic_ops/experimental/server/api/parameters.go index 2b2f360..57abe34 100644 --- a/traffic_ops/experimental/server/api/parameters.go +++ b/traffic_ops/experimental/server/api/parameters.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/phys_locations.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/phys_locations.go b/traffic_ops/experimental/server/api/phys_locations.go index 3151d16..a5c6ef8 100644 --- a/traffic_ops/experimental/server/api/phys_locations.go +++ b/traffic_ops/experimental/server/api/phys_locations.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/profiles.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/profiles.go b/traffic_ops/experimental/server/api/profiles.go index 653ed09..c380a05 100644 --- a/traffic_ops/experimental/server/api/profiles.go +++ b/traffic_ops/experimental/server/api/profiles.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/profiles_parameters.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/profiles_parameters.go b/traffic_ops/experimental/server/api/profiles_parameters.go index 1551450..d90bd35 100644 --- a/traffic_ops/experimental/server/api/profiles_parameters.go +++ b/traffic_ops/experimental/server/api/profiles_parameters.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/regexes.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/regexes.go b/traffic_ops/experimental/server/api/regexes.go index 701a3c0..e64baea 100644 --- a/traffic_ops/experimental/server/api/regexes.go +++ b/traffic_ops/experimental/server/api/regexes.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/regexes_types.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/regexes_types.go b/traffic_ops/experimental/server/api/regexes_types.go index 3f4d064..beddf27 100644 --- a/traffic_ops/experimental/server/api/regexes_types.go +++ b/traffic_ops/experimental/server/api/regexes_types.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/regions.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/regions.go b/traffic_ops/experimental/server/api/regions.go index f168683..49ce66a 100644 --- a/traffic_ops/experimental/server/api/regions.go +++ b/traffic_ops/experimental/server/api/regions.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/roles.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/roles.go b/traffic_ops/experimental/server/api/roles.go index e857a0a..396a718 100644 --- a/traffic_ops/experimental/server/api/roles.go +++ b/traffic_ops/experimental/server/api/roles.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/server_byname.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/server_byname.go b/traffic_ops/experimental/server/api/server_byname.go index 3d219e2..cb082aa 100644 --- a/traffic_ops/experimental/server/api/server_byname.go +++ b/traffic_ops/experimental/server/api/server_byname.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/servers.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/servers.go b/traffic_ops/experimental/server/api/servers.go index 20580f9..5a7c409 100644 --- a/traffic_ops/experimental/server/api/servers.go +++ b/traffic_ops/experimental/server/api/servers.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/servers_types.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/servers_types.go b/traffic_ops/experimental/server/api/servers_types.go index 1fdebda..f3663f0 100644 --- a/traffic_ops/experimental/server/api/servers_types.go +++ b/traffic_ops/experimental/server/api/servers_types.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/snapshot_crconfig.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/snapshot_crconfig.go b/traffic_ops/experimental/server/api/snapshot_crconfig.go index 8de0a2e..a888506 100644 --- a/traffic_ops/experimental/server/api/snapshot_crconfig.go +++ b/traffic_ops/experimental/server/api/snapshot_crconfig.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/staticdnsentries.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/staticdnsentries.go b/traffic_ops/experimental/server/api/staticdnsentries.go index b1628bd..4acab90 100644 --- a/traffic_ops/experimental/server/api/staticdnsentries.go +++ b/traffic_ops/experimental/server/api/staticdnsentries.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/staticdnsentries_types.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/staticdnsentries_types.go b/traffic_ops/experimental/server/api/staticdnsentries_types.go index 6dfada8..f8547a2 100644 --- a/traffic_ops/experimental/server/api/staticdnsentries_types.go +++ b/traffic_ops/experimental/server/api/staticdnsentries_types.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/stats_summary.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/stats_summary.go b/traffic_ops/experimental/server/api/stats_summary.go index 40e840b..20d7fcd 100644 --- a/traffic_ops/experimental/server/api/stats_summary.go +++ b/traffic_ops/experimental/server/api/stats_summary.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/statuses.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/statuses.go b/traffic_ops/experimental/server/api/statuses.go index 592661a..7a6d260 100644 --- a/traffic_ops/experimental/server/api/statuses.go +++ b/traffic_ops/experimental/server/api/statuses.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/api/users.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/api/users.go b/traffic_ops/experimental/server/api/users.go index 92b454e..5adf3c5 100644 --- a/traffic_ops/experimental/server/api/users.go +++ b/traffic_ops/experimental/server/api/users.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/auth/auth.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/auth/auth.go b/traffic_ops/experimental/server/auth/auth.go index c0c48db..157c968 100644 --- a/traffic_ops/experimental/server/auth/auth.go +++ b/traffic_ops/experimental/server/auth/auth.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/client/client/client.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/client/client/client.go b/traffic_ops/experimental/server/client/client/client.go index 038293a..71dfac8 100644 --- a/traffic_ops/experimental/server/client/client/client.go +++ b/traffic_ops/experimental/server/client/client/client.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/client/main.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/client/main.go b/traffic_ops/experimental/server/client/main.go index c648713..48d5620 100644 --- a/traffic_ops/experimental/server/client/main.go +++ b/traffic_ops/experimental/server/client/main.go @@ -1,5 +1,4 @@ /* - Copyright 2015 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/crconfig/crconfig.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/crconfig/crconfig.go b/traffic_ops/experimental/server/crconfig/crconfig.go index 5dcf8a3..b49e957 100644 --- a/traffic_ops/experimental/server/crconfig/crconfig.go +++ b/traffic_ops/experimental/server/crconfig/crconfig.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/csconfig/csconfig.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/csconfig/csconfig.go b/traffic_ops/experimental/server/csconfig/csconfig.go index cda2115..cf24527 100644 --- a/traffic_ops/experimental/server/csconfig/csconfig.go +++ b/traffic_ops/experimental/server/csconfig/csconfig.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/db/init.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/db/init.go b/traffic_ops/experimental/server/db/init.go index dfa53ad..06aa530 100644 --- a/traffic_ops/experimental/server/db/init.go +++ b/traffic_ops/experimental/server/db/init.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/be5ab888/traffic_ops/experimental/server/main.go ---------------------------------------------------------------------- diff --git a/traffic_ops/experimental/server/main.go b/traffic_ops/experimental/server/main.go index 1ce9719..8b3f284 100644 --- a/traffic_ops/experimental/server/main.go +++ b/traffic_ops/experimental/server/main.go @@ -1,4 +1,3 @@ -// Copyright 2015 Comcast Cable Communications Management, LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.