git.iko.soy/typeable/oauth2-proxy
on master help sign in
Swap out bmizerany/assert package that is deprecated in favor of stretchr/testify/assert
8a77cfcTanvir Alam
Godeps+1−1
@@ -2,7 +2,7 @@ github.com/18F/hmacauth 1.0.1
2github.com/BurntSushi/toml d94612f9fc140360834f9742158c70b5c5b5535b
2github.com/BurntSushi/toml d94612f9fc140360834f9742158c70b5c5b5535b
3github.com/bitly/go-simplejson da1a8928f709389522c8023062a3739f3b4af419
3github.com/bitly/go-simplejson da1a8928f709389522c8023062a3739f3b4af419
4github.com/mreiferson/go-options 77551d20752b54535462404ad9d877ebdb26e53d
4github.com/mreiferson/go-options 77551d20752b54535462404ad9d877ebdb26e53d
5−github.com/bmizerany/assert e17e99893cb6509f428e1728281c2ad60a6b31e3
5+github.com/stretchr/testify v1.1.4
6gopkg.in/fsnotify.v1 v1.2.0
6gopkg.in/fsnotify.v1 v1.2.0
7golang.org/x/oauth2 7fdf09982454086d5570c7db3e11f360194830ca
7golang.org/x/oauth2 7fdf09982454086d5570c7db3e11f360194830ca
8golang.org/x/net/context 242b6b35177ec3909636b6cf6a47e8c2c6324b5d
8golang.org/x/net/context 242b6b35177ec3909636b6cf6a47e8c2c6324b5d
api/api_test.go+2−1
@@ -2,12 +2,13 @@ package api
2
2
3import (
3import (
4 "github.com/bitly/go-simplejson"
4 "github.com/bitly/go-simplejson"
5− "github.com/bmizerany/assert"
6 "io/ioutil"
5 "io/ioutil"
7 "net/http"
6 "net/http"
8 "net/http/httptest"
7 "net/http/httptest"
9 "strings"
8 "strings"
10 "testing"
9 "testing"
10+
11+ "github.com/stretchr/testify/assert"
11)
12)
12
13
13func testBackend(response_code int, payload string) *httptest.Server {
14func testBackend(response_code int, payload string) *httptest.Server {
cookie/cookies_test.go+1−1
@@ -4,7 +4,7 @@ import (
4 "encoding/base64"
4 "encoding/base64"
5 "testing"
5 "testing"
6
6
7− "github.com/bmizerany/assert"
7+ "github.com/stretchr/testify/assert"
8)
8)
9
9
10func TestEncodeAndDecodeAccessToken(t *testing.T) {
10func TestEncodeAndDecodeAccessToken(t *testing.T) {
env_options_test.go+1−1
@@ -4,7 +4,7 @@ import (
4 "os"
4 "os"
5 "testing"
5 "testing"
6
6
7− "github.com/bmizerany/assert"
7+ "github.com/stretchr/testify/assert"
8)
8)
9
9
10type envTest struct {
10type envTest struct {
htpasswd_test.go+1−1
@@ -2,7 +2,7 @@ package main
2
2
3import (
3import (
4 "bytes"
4 "bytes"
5− "github.com/bmizerany/assert"
5+ "github.com/stretchr/testify/assert"
6 "testing"
6 "testing"
7)
7)
8
8
oauthproxy_test.go+1−1
@@ -17,7 +17,7 @@ import (
17
17
18 "github.com/18F/hmacauth"
18 "github.com/18F/hmacauth"
19 "github.com/bitly/oauth2_proxy/providers"
19 "github.com/bitly/oauth2_proxy/providers"
20− "github.com/bmizerany/assert"
20+ "github.com/stretchr/testify/assert"
21)
21)
22
22
23func init() {
23func init() {
options_test.go+1−1
@@ -8,7 +8,7 @@ import (
8 "testing"
8 "testing"
9 "time"
9 "time"
10
10
11− "github.com/bmizerany/assert"
11+ "github.com/stretchr/testify/assert"
12)
12)
13
13
14func testOptions() *Options {
14func testOptions() *Options {
providers/azure_test.go+2−1
@@ -1,11 +1,12 @@
1package providers
1package providers
2
2
3import (
3import (
4− "github.com/bmizerany/assert"
5 "net/http"
4 "net/http"
6 "net/http/httptest"
5 "net/http/httptest"
7 "net/url"
6 "net/url"
8 "testing"
7 "testing"
8+
9+ "github.com/stretchr/testify/assert"
9)
10)
10
11
11func testAzureProvider(hostname string) *AzureProvider {
12func testAzureProvider(hostname string) *AzureProvider {
providers/gitlab_test.go+1−1
@@ -6,7 +6,7 @@ import (
6 "net/url"
6 "net/url"
7 "testing"
7 "testing"
8
8
9− "github.com/bmizerany/assert"
9+ "github.com/stretchr/testify/assert"
10)
10)
11
11
12func testGitLabProvider(hostname string) *GitLabProvider {
12func testGitLabProvider(hostname string) *GitLabProvider {
providers/google_test.go+1−1
@@ -8,7 +8,7 @@ import (
8 "net/url"
8 "net/url"
9 "testing"
9 "testing"
10
10
11− "github.com/bmizerany/assert"
11+ "github.com/stretchr/testify/assert"
12)
12)
13
13
14func newRedeemServer(body []byte) (*url.URL, *httptest.Server) {
14func newRedeemServer(body []byte) (*url.URL, *httptest.Server) {
providers/internal_util_test.go+1−1
@@ -7,7 +7,7 @@ import (
7 "net/url"
7 "net/url"
8 "testing"
8 "testing"
9
9
10− "github.com/bmizerany/assert"
10+ "github.com/stretchr/testify/assert"
11)
11)
12
12
13type ValidateSessionStateTestProvider struct {
13type ValidateSessionStateTestProvider struct {
providers/linkedin_test.go+2−1
@@ -1,11 +1,12 @@
1package providers
1package providers
2
2
3import (
3import (
4− "github.com/bmizerany/assert"
5 "net/http"
4 "net/http"
6 "net/http/httptest"
5 "net/http/httptest"
7 "net/url"
6 "net/url"
8 "testing"
7 "testing"
8+
9+ "github.com/stretchr/testify/assert"
9)
10)
10
11
11func testLinkedInProvider(hostname string) *LinkedInProvider {
12func testLinkedInProvider(hostname string) *LinkedInProvider {
providers/provider_default_test.go+1−1
@@ -4,7 +4,7 @@ import (
4 "testing"
4 "testing"
5 "time"
5 "time"
6
6
7− "github.com/bmizerany/assert"
7+ "github.com/stretchr/testify/assert"
8)
8)
9
9
10func TestRefresh(t *testing.T) {
10func TestRefresh(t *testing.T) {
providers/session_state_test.go+1−1
@@ -6,7 +6,7 @@ import (
6 "time"
6 "time"
7
7
8 "github.com/bitly/oauth2_proxy/cookie"
8 "github.com/bitly/oauth2_proxy/cookie"
9− "github.com/bmizerany/assert"
9+ "github.com/stretchr/testify/assert"
10)
10)
11
11
12const secret = "0123456789abcdefghijklmnopqrstuv"
12const secret = "0123456789abcdefghijklmnopqrstuv"
templates_test.go+2−1
@@ -1,8 +1,9 @@
1package main
1package main
2
2
3import (
3import (
4− "github.com/bmizerany/assert"
5 "testing"
4 "testing"
5+
6+ "github.com/stretchr/testify/assert"
6)
7)
7
8
8func TestTemplatesCompile(t *testing.T) {
9func TestTemplatesCompile(t *testing.T) {