Swap out bmizerany/assert package that is deprecated in favor of stretchr/testify/assert
commit8a77cfcac3570afb977fe71073eabb0a6a2c1f7c
authorTanvir Alam <tanviralam2@gmail.com>
dateMon 23 Oct 2017, 12:23 (9 years ago)
parentfd3925d
Godeps+1−1
@@ -2,7 +2,7 @@ github.com/18F/hmacauth 1.0.1
22github.com/BurntSushi/toml d94612f9fc140360834f9742158c70b5c5b5535b
33github.com/bitly/go-simplejson da1a8928f709389522c8023062a3739f3b4af419
44github.com/mreiferson/go-options 77551d20752b54535462404ad9d877ebdb26e53d
5−github.com/bmizerany/assert e17e99893cb6509f428e1728281c2ad60a6b31e3
5+github.com/stretchr/testify v1.1.4
66gopkg.in/fsnotify.v1 v1.2.0
77golang.org/x/oauth2 7fdf09982454086d5570c7db3e11f360194830ca
88golang.org/x/net/context 242b6b35177ec3909636b6cf6a47e8c2c6324b5d
api/api_test.go+2−1
@@ -2,12 +2,13 @@ package api
22
33import (
44 "github.com/bitly/go-simplejson"
5− "github.com/bmizerany/assert"
65 "io/ioutil"
76 "net/http"
87 "net/http/httptest"
98 "strings"
109 "testing"
10+
11+ "github.com/stretchr/testify/assert"
1112)
1213
1314func testBackend(response_code int, payload string) *httptest.Server {
cookie/cookies_test.go+1−1
@@ -4,7 +4,7 @@ import (
44 "encoding/base64"
55 "testing"
66
7− "github.com/bmizerany/assert"
7+ "github.com/stretchr/testify/assert"
88)
99
1010func TestEncodeAndDecodeAccessToken(t *testing.T) {
env_options_test.go+1−1
@@ -4,7 +4,7 @@ import (
44 "os"
55 "testing"
66
7− "github.com/bmizerany/assert"
7+ "github.com/stretchr/testify/assert"
88)
99
1010type envTest struct {
htpasswd_test.go+1−1
@@ -2,7 +2,7 @@ package main
22
33import (
44 "bytes"
5− "github.com/bmizerany/assert"
5+ "github.com/stretchr/testify/assert"
66 "testing"
77)
88
oauthproxy_test.go+1−1
@@ -17,7 +17,7 @@ import (
1717
1818 "github.com/18F/hmacauth"
1919 "github.com/bitly/oauth2_proxy/providers"
20− "github.com/bmizerany/assert"
20+ "github.com/stretchr/testify/assert"
2121)
2222
2323func init() {
options_test.go+1−1
@@ -8,7 +8,7 @@ import (
88 "testing"
99 "time"
1010
11− "github.com/bmizerany/assert"
11+ "github.com/stretchr/testify/assert"
1212)
1313
1414func testOptions() *Options {
providers/azure_test.go+2−1
@@ -1,11 +1,12 @@
11package providers
22
33import (
4− "github.com/bmizerany/assert"
54 "net/http"
65 "net/http/httptest"
76 "net/url"
87 "testing"
8+
9+ "github.com/stretchr/testify/assert"
910)
1011
1112func testAzureProvider(hostname string) *AzureProvider {
providers/gitlab_test.go+1−1
@@ -6,7 +6,7 @@ import (
66 "net/url"
77 "testing"
88
9− "github.com/bmizerany/assert"
9+ "github.com/stretchr/testify/assert"
1010)
1111
1212func testGitLabProvider(hostname string) *GitLabProvider {
providers/google_test.go+1−1
@@ -8,7 +8,7 @@ import (
88 "net/url"
99 "testing"
1010
11− "github.com/bmizerany/assert"
11+ "github.com/stretchr/testify/assert"
1212)
1313
1414func newRedeemServer(body []byte) (*url.URL, *httptest.Server) {
providers/internal_util_test.go+1−1
@@ -7,7 +7,7 @@ import (
77 "net/url"
88 "testing"
99
10− "github.com/bmizerany/assert"
10+ "github.com/stretchr/testify/assert"
1111)
1212
1313type ValidateSessionStateTestProvider struct {
providers/linkedin_test.go+2−1
@@ -1,11 +1,12 @@
11package providers
22
33import (
4− "github.com/bmizerany/assert"
54 "net/http"
65 "net/http/httptest"
76 "net/url"
87 "testing"
8+
9+ "github.com/stretchr/testify/assert"
910)
1011
1112func testLinkedInProvider(hostname string) *LinkedInProvider {
providers/provider_default_test.go+1−1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7− "github.com/bmizerany/assert"
7+ "github.com/stretchr/testify/assert"
88)
99
1010func TestRefresh(t *testing.T) {
providers/session_state_test.go+1−1
@@ -6,7 +6,7 @@ import (
66 "time"
77
88 "github.com/bitly/oauth2_proxy/cookie"
9− "github.com/bmizerany/assert"
9+ "github.com/stretchr/testify/assert"
1010)
1111
1212const secret = "0123456789abcdefghijklmnopqrstuv"
templates_test.go+2−1
@@ -1,8 +1,9 @@
11package main
22
33import (
4− "github.com/bmizerany/assert"
54 "testing"
5+
6+ "github.com/stretchr/testify/assert"
67)
78
89func TestTemplatesCompile(t *testing.T) {