Fetch of authorization token
[nonrtric.git] / auth-token-fetch / HTTPClient_test.go
index 7b8deb0..f9d2fa3 100644 (file)
@@ -23,7 +23,6 @@ package main
 import (
        "crypto/tls"
 
-       "net/http"
        "reflect"
        "testing"
        "time"
@@ -31,15 +30,6 @@ import (
        "github.com/stretchr/testify/require"
 )
 
-func TestRequestError_Error(t *testing.T) {
-       assertions := require.New(t)
-       actualError := RequestError{
-               StatusCode: http.StatusBadRequest,
-               Body:       []byte("error"),
-       }
-       assertions.Equal("Request failed due to error response with status: 400 and body: error", actualError.Error())
-}
-
 func Test_CreateClient(t *testing.T) {
        assertions := require.New(t)
 
@@ -49,11 +39,3 @@ func Test_CreateClient(t *testing.T) {
        assertions.Equal("*http.Transport", reflect.TypeOf(transport).String())
        assertions.Equal(5*time.Second, client.Timeout)
 }
-
-func TestIsUrlSecured(t *testing.T) {
-       assertions := require.New(t)
-
-       assertions.True(IsUrlSecure("https://url"))
-
-       assertions.False(IsUrlSecure("http://url"))
-}