Skip to content

Commit bc1b839

Browse files
authored
Merge pull request bitly#484 from talam/update_assert_package
Swap out bmizerany/assert package in favor of stretchr/testify/assert
2 parents fd3925d + 8a77cfc commit bc1b839

15 files changed

+19
-15
lines changed

Godeps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ github.com/18F/hmacauth 1.0.1
22
github.com/BurntSushi/toml d94612f9fc140360834f9742158c70b5c5b5535b
33
github.com/bitly/go-simplejson da1a8928f709389522c8023062a3739f3b4af419
44
github.com/mreiferson/go-options 77551d20752b54535462404ad9d877ebdb26e53d
5-
github.com/bmizerany/assert e17e99893cb6509f428e1728281c2ad60a6b31e3
5+
github.com/stretchr/testify v1.1.4
66
gopkg.in/fsnotify.v1 v1.2.0
77
golang.org/x/oauth2 7fdf09982454086d5570c7db3e11f360194830ca
88
golang.org/x/net/context 242b6b35177ec3909636b6cf6a47e8c2c6324b5d

api/api_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package api
22

33
import (
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

1314
func testBackend(response_code int, payload string) *httptest.Server {

cookie/cookies_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/base64"
55
"testing"
66

7-
"github.com/bmizerany/assert"
7+
"github.com/stretchr/testify/assert"
88
)
99

1010
func TestEncodeAndDecodeAccessToken(t *testing.T) {

env_options_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/bmizerany/assert"
7+
"github.com/stretchr/testify/assert"
88
)
99

1010
type envTest struct {

htpasswd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"bytes"
5-
"github.com/bmizerany/assert"
5+
"github.com/stretchr/testify/assert"
66
"testing"
77
)
88

oauthproxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

2323
func init() {

options_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/bmizerany/assert"
11+
"github.com/stretchr/testify/assert"
1212
)
1313

1414
func testOptions() *Options {

providers/azure_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package providers
22

33
import (
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

1112
func testAzureProvider(hostname string) *AzureProvider {

providers/gitlab_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/url"
77
"testing"
88

9-
"github.com/bmizerany/assert"
9+
"github.com/stretchr/testify/assert"
1010
)
1111

1212
func testGitLabProvider(hostname string) *GitLabProvider {

providers/google_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net/url"
99
"testing"
1010

11-
"github.com/bmizerany/assert"
11+
"github.com/stretchr/testify/assert"
1212
)
1313

1414
func newRedeemServer(body []byte) (*url.URL, *httptest.Server) {

providers/internal_util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/url"
88
"testing"
99

10-
"github.com/bmizerany/assert"
10+
"github.com/stretchr/testify/assert"
1111
)
1212

1313
type ValidateSessionStateTestProvider struct {

providers/linkedin_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package providers
22

33
import (
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

1112
func testLinkedInProvider(hostname string) *LinkedInProvider {

providers/provider_default_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"github.com/bmizerany/assert"
7+
"github.com/stretchr/testify/assert"
88
)
99

1010
func TestRefresh(t *testing.T) {

providers/session_state_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

1212
const secret = "0123456789abcdefghijklmnopqrstuv"

templates_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package main
22

33
import (
4-
"github.com/bmizerany/assert"
54
"testing"
5+
6+
"github.com/stretchr/testify/assert"
67
)
78

89
func TestTemplatesCompile(t *testing.T) {

0 commit comments

Comments
 (0)