From 4d47a484221e86625b3bb3a2238515e1e0c2194f Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Mon, 22 Jan 2018 21:15:52 +0000 Subject: [PATCH] client test comment nits. --- util/httputil/client_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util/httputil/client_test.go b/util/httputil/client_test.go index 0465561a5..5c714f560 100644 --- a/util/httputil/client_test.go +++ b/util/httputil/client_test.go @@ -289,13 +289,13 @@ func TestBearerAuthRoundTripper(t *testing.T) { } }, nil, nil) - //Normal flow + // Normal flow. bearerAuthRoundTripper := NewBearerAuthRoundTripper(BearerToken, fakeRoundTripper) request, _ := http.NewRequest("GET", "/hitchhiker", nil) request.Header.Set("User-Agent", "Douglas Adams mind") bearerAuthRoundTripper.RoundTrip(request) - //Should honor already Authorization header set + // Should honor already Authorization header set. bearerAuthRoundTripperShouldNotModifyExistingAuthorization := NewBearerAuthRoundTripper(newBearerToken, fakeRoundTripper) request, _ = http.NewRequest("GET", "/hitchhiker", nil) request.Header.Set("Authorization", ExpectedBearer) @@ -315,13 +315,13 @@ func TestBearerAuthFileRoundTripper(t *testing.T) { } }, nil, nil) - //Normal flow + // Normal flow. bearerAuthRoundTripper := NewBearerAuthFileRoundTripper(BearerTokenFile, fakeRoundTripper) request, _ := http.NewRequest("GET", "/hitchhiker", nil) request.Header.Set("User-Agent", "Douglas Adams mind") bearerAuthRoundTripper.RoundTrip(request) - //Should honor already Authorization header set + // Should honor already Authorization header set. bearerAuthRoundTripperShouldNotModifyExistingAuthorization := NewBearerAuthFileRoundTripper(MissingBearerTokenFile, fakeRoundTripper) request, _ = http.NewRequest("GET", "/hitchhiker", nil) request.Header.Set("Authorization", ExpectedBearer) @@ -347,14 +347,14 @@ func TestBasicAuthRoundTripper(t *testing.T) { } }, nil, nil) - //Normal flow + // Normal flow. basicAuthRoundTripper := NewBasicAuthRoundTripper(ExpectedUsername, ExpectedPassword, fakeRoundTripper) request, _ := http.NewRequest("GET", "/hitchhiker", nil) request.Header.Set("User-Agent", "Douglas Adams mind") basicAuthRoundTripper.RoundTrip(request) - //Should honor already Authorization header set + // Should honor already Authorization header set. basicAuthRoundTripperShouldNotModifyExistingAuthorization := NewBasicAuthRoundTripper(newUsername, newPassword, fakeRoundTripper) request, _ = http.NewRequest("GET", "/hitchhiker", nil)