This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 2477265 Go fmt (#4952)
2477265 is described below
commit 247726513070f1a4a7b29b36023a0edf2963735e
Author: Steve Hamrick <[email protected]>
AuthorDate: Thu Aug 13 13:36:42 2020 -0600
Go fmt (#4952)
---
traffic_ops/client/server.go | 1 -
traffic_ops/testing/api/v3/cachegroups_parameters_test.go | 2 +-
traffic_ops/testing/api/v3/cachegroups_test.go | 6 +++---
traffic_ops/testing/api/v3/capabilities_test.go | 2 +-
traffic_ops/testing/api/v3/cdn_domains_test.go | 2 +-
traffic_ops/testing/api/v3/cdns_test.go | 2 +-
traffic_ops/testing/api/v3/coordinates_test.go | 2 +-
traffic_ops/testing/api/v3/deliveryservice_request_comments_test.go | 4 ++--
traffic_ops/testing/api/v3/deliveryservice_requests_test.go | 2 +-
.../testing/api/v3/deliveryservices_required_capabilities_test.go | 2 +-
traffic_ops/testing/api/v3/deliveryservices_test.go | 2 +-
traffic_ops/testing/api/v3/deliveryservicesideligible_test.go | 2 +-
traffic_ops/testing/api/v3/deliveryservicesregexes_test.go | 2 +-
traffic_ops/testing/api/v3/divisions_test.go | 4 ++--
traffic_ops/testing/api/v3/federation_resolvers_test.go | 6 +++---
traffic_ops/testing/api/v3/federations_test.go | 2 +-
traffic_ops/testing/api/v3/parameters_test.go | 2 +-
traffic_ops/testing/api/v3/phys_locations_test.go | 2 +-
traffic_ops/testing/api/v3/profile_parameters_test.go | 2 +-
traffic_ops/testing/api/v3/profiles_test.go | 2 +-
traffic_ops/testing/api/v3/regions_test.go | 2 +-
traffic_ops/testing/api/v3/roles_test.go | 2 +-
traffic_ops/testing/api/v3/serverservercapability_test.go | 2 +-
traffic_ops/testing/api/v3/statuses_test.go | 2 +-
traffic_ops/testing/api/v3/steeringtargets_test.go | 2 +-
traffic_ops/testing/api/v3/types_test.go | 2 +-
traffic_ops/testing/api/v3/user_test.go | 2 +-
27 files changed, 32 insertions(+), 33 deletions(-)
diff --git a/traffic_ops/client/server.go b/traffic_ops/client/server.go
index 25c519d..2e147aa 100644
--- a/traffic_ops/client/server.go
+++ b/traffic_ops/client/server.go
@@ -198,7 +198,6 @@ func (to *Session) GetFirstServer(params *url.Values,
header http.Header) (tc.Se
return firstServer, reqInf, err
}
-
// GetServerDetailsByHostName GETs Servers by the Server hostname.
func (to *Session) GetServerDetailsByHostName(hostName string, header
http.Header) ([]tc.ServerDetailV30, ReqInf, error) {
v := url.Values{}
diff --git a/traffic_ops/testing/api/v3/cachegroups_parameters_test.go
b/traffic_ops/testing/api/v3/cachegroups_parameters_test.go
index e0ea3a1..3004fa5 100644
--- a/traffic_ops/testing/api/v3/cachegroups_parameters_test.go
+++ b/traffic_ops/testing/api/v3/cachegroups_parameters_test.go
@@ -81,7 +81,7 @@ func GetTestCacheGroupParameters(t *testing.T) {
func GetTestCacheGroupParametersIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, cgp := range testData.CacheGroupParameterRequests {
diff --git a/traffic_ops/testing/api/v3/cachegroups_test.go
b/traffic_ops/testing/api/v3/cachegroups_test.go
index ea52205..2bf84fe 100644
--- a/traffic_ops/testing/api/v3/cachegroups_test.go
+++ b/traffic_ops/testing/api/v3/cachegroups_test.go
@@ -71,7 +71,7 @@ func GetTestCacheGroupsAfterChangeIMS(t *testing.T, header
http.Header) {
func GetTestCacheGroupsByShortNameIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, cg := range testData.CacheGroups {
@@ -88,7 +88,7 @@ func GetTestCacheGroupsByShortNameIMS(t *testing.T) {
func GetTestCacheGroupsByNameIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, cg := range testData.CacheGroups {
@@ -105,7 +105,7 @@ func GetTestCacheGroupsByNameIMS(t *testing.T) {
func GetTestCacheGroupsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetCacheGroupsByQueryParams(url.Values{},
header)
diff --git a/traffic_ops/testing/api/v3/capabilities_test.go
b/traffic_ops/testing/api/v3/capabilities_test.go
index 68883db..112b780 100644
--- a/traffic_ops/testing/api/v3/capabilities_test.go
+++ b/traffic_ops/testing/api/v3/capabilities_test.go
@@ -83,7 +83,7 @@ func CreateTestCapabilities(t *testing.T) {
func GetTestCapabilitiesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
testDataLen := len(testData.Capabilities) + len(staticCapabilities)
diff --git a/traffic_ops/testing/api/v3/cdn_domains_test.go
b/traffic_ops/testing/api/v3/cdn_domains_test.go
index 426bd99..eba8c5c 100644
--- a/traffic_ops/testing/api/v3/cdn_domains_test.go
+++ b/traffic_ops/testing/api/v3/cdn_domains_test.go
@@ -33,7 +33,7 @@ func GetTestDomains(t *testing.T) {
func GetTestDomainsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetDomains(header)
diff --git a/traffic_ops/testing/api/v3/cdns_test.go
b/traffic_ops/testing/api/v3/cdns_test.go
index ded84c8..d41acf1 100644
--- a/traffic_ops/testing/api/v3/cdns_test.go
+++ b/traffic_ops/testing/api/v3/cdns_test.go
@@ -67,7 +67,7 @@ func GetTestCDNsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
for _, cdn := range testData.CDNs {
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetCDNByName(cdn.Name, header)
diff --git a/traffic_ops/testing/api/v3/coordinates_test.go
b/traffic_ops/testing/api/v3/coordinates_test.go
index 581a4d3..34a56d0 100644
--- a/traffic_ops/testing/api/v3/coordinates_test.go
+++ b/traffic_ops/testing/api/v3/coordinates_test.go
@@ -66,7 +66,7 @@ func GetTestCoordinatesIMSAfterChange(t *testing.T, header
http.Header) {
func GetTestCoordinatesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, coord := range testData.Coordinates {
diff --git
a/traffic_ops/testing/api/v3/deliveryservice_request_comments_test.go
b/traffic_ops/testing/api/v3/deliveryservice_request_comments_test.go
index d55acea..d7ea146 100644
--- a/traffic_ops/testing/api/v3/deliveryservice_request_comments_test.go
+++ b/traffic_ops/testing/api/v3/deliveryservice_request_comments_test.go
@@ -47,7 +47,7 @@ func GetTestDeliveryServiceRequestCommentsIMSAfterChange(t
*testing.T, header ht
t.Fatalf("Expected 200 status code, got %v", reqInf.StatusCode)
}
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err = TOSession.GetDeliveryServiceRequestComments(header)
@@ -113,7 +113,7 @@ func UpdateTestDeliveryServiceRequestComments(t *testing.T)
{
func GetTestDeliveryServiceRequestCommentsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetDeliveryServiceRequestComments(header)
diff --git a/traffic_ops/testing/api/v3/deliveryservice_requests_test.go
b/traffic_ops/testing/api/v3/deliveryservice_requests_test.go
index 6063d48..b41d450 100644
--- a/traffic_ops/testing/api/v3/deliveryservice_requests_test.go
+++ b/traffic_ops/testing/api/v3/deliveryservice_requests_test.go
@@ -246,7 +246,7 @@ func updateDeliveryServiceRequestStatus(t *testing.T, dsr
tc.DeliveryServiceRequ
func GetTestDeliveryServiceRequestsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
dsr := testData.DeliveryServiceRequests[dsrGood]
diff --git
a/traffic_ops/testing/api/v3/deliveryservices_required_capabilities_test.go
b/traffic_ops/testing/api/v3/deliveryservices_required_capabilities_test.go
index 054c0cd..45b2efe 100644
--- a/traffic_ops/testing/api/v3/deliveryservices_required_capabilities_test.go
+++ b/traffic_ops/testing/api/v3/deliveryservices_required_capabilities_test.go
@@ -158,7 +158,7 @@ func GetTestDeliveryServicesRequiredCapabilities(t
*testing.T) {
func GetTestDeliveryServicesRequiredCapabilitiesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
data := testData.DeliveryServicesRequiredCapabilities
diff --git a/traffic_ops/testing/api/v3/deliveryservices_test.go
b/traffic_ops/testing/api/v3/deliveryservices_test.go
index e9c2461..2f373be 100644
--- a/traffic_ops/testing/api/v3/deliveryservices_test.go
+++ b/traffic_ops/testing/api/v3/deliveryservices_test.go
@@ -110,7 +110,7 @@ func CreateTestDeliveryServices(t *testing.T) {
func GetTestDeliveryServicesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetDeliveryServicesNullable(header)
diff --git a/traffic_ops/testing/api/v3/deliveryservicesideligible_test.go
b/traffic_ops/testing/api/v3/deliveryservicesideligible_test.go
index de6c6af..8158617 100644
--- a/traffic_ops/testing/api/v3/deliveryservicesideligible_test.go
+++ b/traffic_ops/testing/api/v3/deliveryservicesideligible_test.go
@@ -32,7 +32,7 @@ func TestDeliveryServicesEligible(t *testing.T) {
func GetTestDeliveryServicesEligibleIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetDeliveryServicesNullable(header)
diff --git a/traffic_ops/testing/api/v3/deliveryservicesregexes_test.go
b/traffic_ops/testing/api/v3/deliveryservicesregexes_test.go
index 4badc0e..e41a4d6 100644
--- a/traffic_ops/testing/api/v3/deliveryservicesregexes_test.go
+++ b/traffic_ops/testing/api/v3/deliveryservicesregexes_test.go
@@ -120,7 +120,7 @@ func loadDSRegexIDs(t *testing.T, test
*tc.DeliveryServiceRegexesTest) {
func QueryDSRegexTestIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetDeliveryServiceByXMLIDNullable("ds1",
header)
diff --git a/traffic_ops/testing/api/v3/divisions_test.go
b/traffic_ops/testing/api/v3/divisions_test.go
index 291b127..038f84b 100644
--- a/traffic_ops/testing/api/v3/divisions_test.go
+++ b/traffic_ops/testing/api/v3/divisions_test.go
@@ -51,7 +51,7 @@ func GetTestDivisionsIMSAfterChange(t *testing.T, header
http.Header) {
}
}
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, division := range testData.Divisions {
@@ -68,7 +68,7 @@ func GetTestDivisionsIMSAfterChange(t *testing.T, header
http.Header) {
func GetTestDivisionsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, division := range testData.Divisions {
diff --git a/traffic_ops/testing/api/v3/federation_resolvers_test.go
b/traffic_ops/testing/api/v3/federation_resolvers_test.go
index cfd9ff7..f83a392 100644
--- a/traffic_ops/testing/api/v3/federation_resolvers_test.go
+++ b/traffic_ops/testing/api/v3/federation_resolvers_test.go
@@ -17,11 +17,11 @@ package v3
import (
"github.com/apache/trafficcontrol/lib/go-rfc"
+ "github.com/apache/trafficcontrol/lib/go-tc"
+ "github.com/apache/trafficcontrol/lib/go-util"
"net/http"
"testing"
"time"
- "github.com/apache/trafficcontrol/lib/go-tc"
- "github.com/apache/trafficcontrol/lib/go-util"
)
func TestFederationResolvers(t *testing.T) {
@@ -37,7 +37,7 @@ func GetTestFederationResolversIMS(t *testing.T) {
}
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetFederationResolvers(header)
diff --git a/traffic_ops/testing/api/v3/federations_test.go
b/traffic_ops/testing/api/v3/federations_test.go
index 394bf54..8b16a06 100644
--- a/traffic_ops/testing/api/v3/federations_test.go
+++ b/traffic_ops/testing/api/v3/federations_test.go
@@ -39,7 +39,7 @@ func TestFederations(t *testing.T) {
func GetTestFederationsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
if len(testData.Federations) == 0 {
diff --git a/traffic_ops/testing/api/v3/parameters_test.go
b/traffic_ops/testing/api/v3/parameters_test.go
index acc9e81..b3bcdf2 100644
--- a/traffic_ops/testing/api/v3/parameters_test.go
+++ b/traffic_ops/testing/api/v3/parameters_test.go
@@ -112,7 +112,7 @@ func UpdateTestParameters(t *testing.T) {
func GetTestParametersIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, pl := range testData.Parameters {
diff --git a/traffic_ops/testing/api/v3/phys_locations_test.go
b/traffic_ops/testing/api/v3/phys_locations_test.go
index b655719..3aba385 100644
--- a/traffic_ops/testing/api/v3/phys_locations_test.go
+++ b/traffic_ops/testing/api/v3/phys_locations_test.go
@@ -44,7 +44,7 @@ func TestPhysLocations(t *testing.T) {
func GetTestPhysLocationsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, cdn := range testData.PhysLocations {
diff --git a/traffic_ops/testing/api/v3/profile_parameters_test.go
b/traffic_ops/testing/api/v3/profile_parameters_test.go
index 94562e9..f45701e 100644
--- a/traffic_ops/testing/api/v3/profile_parameters_test.go
+++ b/traffic_ops/testing/api/v3/profile_parameters_test.go
@@ -38,7 +38,7 @@ func TestProfileParameters(t *testing.T) {
func GetTestProfileParametersIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, pp := range testData.ProfileParameters {
diff --git a/traffic_ops/testing/api/v3/profiles_test.go
b/traffic_ops/testing/api/v3/profiles_test.go
index ae880e5..f9f3ca3 100644
--- a/traffic_ops/testing/api/v3/profiles_test.go
+++ b/traffic_ops/testing/api/v3/profiles_test.go
@@ -41,7 +41,7 @@ func TestProfiles(t *testing.T) {
func GetTestProfilesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, pr := range testData.Profiles {
diff --git a/traffic_ops/testing/api/v3/regions_test.go
b/traffic_ops/testing/api/v3/regions_test.go
index 8d31cec..3f6b201 100644
--- a/traffic_ops/testing/api/v3/regions_test.go
+++ b/traffic_ops/testing/api/v3/regions_test.go
@@ -43,7 +43,7 @@ func TestRegions(t *testing.T) {
func GetTestRegionsIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, region := range testData.Regions {
diff --git a/traffic_ops/testing/api/v3/roles_test.go
b/traffic_ops/testing/api/v3/roles_test.go
index 3d9a284..2e93a53 100644
--- a/traffic_ops/testing/api/v3/roles_test.go
+++ b/traffic_ops/testing/api/v3/roles_test.go
@@ -72,7 +72,7 @@ func GetTestRolesIMSAfterChange(t *testing.T, header
http.Header) {
func GetTestRolesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
role := testData.Roles[roleGood]
diff --git a/traffic_ops/testing/api/v3/serverservercapability_test.go
b/traffic_ops/testing/api/v3/serverservercapability_test.go
index d9e8e77..8ab8bf6 100644
--- a/traffic_ops/testing/api/v3/serverservercapability_test.go
+++ b/traffic_ops/testing/api/v3/serverservercapability_test.go
@@ -36,7 +36,7 @@ func TestServerServerCapabilities(t *testing.T) {
func GetTestServerServerCapabilitiesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetServerServerCapabilities(nil, nil, nil,
header)
diff --git a/traffic_ops/testing/api/v3/statuses_test.go
b/traffic_ops/testing/api/v3/statuses_test.go
index facd7b9..bfc7d1e 100644
--- a/traffic_ops/testing/api/v3/statuses_test.go
+++ b/traffic_ops/testing/api/v3/statuses_test.go
@@ -72,7 +72,7 @@ func GetTestStatusesIMSAfterChange(t *testing.T, header
http.Header) {
func GetTestStatusesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
for _, status := range testData.Statuses {
diff --git a/traffic_ops/testing/api/v3/steeringtargets_test.go
b/traffic_ops/testing/api/v3/steeringtargets_test.go
index db41f04..d2f28c4 100644
--- a/traffic_ops/testing/api/v3/steeringtargets_test.go
+++ b/traffic_ops/testing/api/v3/steeringtargets_test.go
@@ -81,7 +81,7 @@ func GetTestSteeringTargetsIMS(t *testing.T) {
}
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err :=
SteeringUserSession.GetDeliveryServiceByXMLIDNullable(string(*st.DeliveryService),
header)
diff --git a/traffic_ops/testing/api/v3/types_test.go
b/traffic_ops/testing/api/v3/types_test.go
index 0e4b472..26f3ced 100644
--- a/traffic_ops/testing/api/v3/types_test.go
+++ b/traffic_ops/testing/api/v3/types_test.go
@@ -67,7 +67,7 @@ func GetTestTypesIMSAfterChange(t *testing.T, header
http.Header) {
func GetTestTypesIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
t.Log("---- GetTestTypes ----")
diff --git a/traffic_ops/testing/api/v3/user_test.go
b/traffic_ops/testing/api/v3/user_test.go
index c356cbf..ee8449d 100644
--- a/traffic_ops/testing/api/v3/user_test.go
+++ b/traffic_ops/testing/api/v3/user_test.go
@@ -79,7 +79,7 @@ const SessionUserName = "admin" // TODO make dynamic?
func GetTestUsersIMS(t *testing.T) {
var header http.Header
header = make(map[string][]string)
- futureTime := time.Now().AddDate(0,0,1)
+ futureTime := time.Now().AddDate(0, 0, 1)
time := futureTime.Format(time.RFC1123)
header.Set(rfc.IfModifiedSince, time)
_, reqInf, err := TOSession.GetUsers(header)