diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2017-02-11 20:20:35 +0000 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-02-11 20:20:35 +0000 |
commit | 9c344a0a95c44ef9cebade7b8a65ac160d9eb900 (patch) | |
tree | aa3782547656b26a55527295c78aa0b8621f8676 /server/auth/provider_test.go | |
parent | 376b8f670a9c80e8ae69581a354cb989571c44c2 (diff) |
Revert "Remove the oauth_callback_url config option"
Diffstat (limited to 'server/auth/provider_test.go')
-rw-r--r-- | server/auth/provider_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/server/auth/provider_test.go b/server/auth/provider_test.go deleted file mode 100644 index e35dcea..0000000 --- a/server/auth/provider_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package auth - -import ( - "crypto/tls" - "net/http" - "testing" -) - -func TestHTTP(t *testing.T) { - want := "http://example.com/auth/callback" - r := &http.Request{ - Host: "example.com", - } - ret := Oauth2RedirectURL(r) - if want != ret { - t.Errorf("Wanted %s, got %s", want, ret) - } -} - -func TestHTTPS(t *testing.T) { - want := "https://example.com/auth/callback" - r := &http.Request{ - Host: "example.com", - TLS: &tls.ConnectionState{}, - } - ret := Oauth2RedirectURL(r) - if want != ret { - t.Errorf("Wanted %s, got %s", want, ret) - } -} |