Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #484 from talam/update_assert_package
Browse files Browse the repository at this point in the history
Swap out bmizerany/assert package in favor of stretchr/testify/assert
  • Loading branch information
jehiah authored Oct 23, 2017
2 parents fd3925d + 8a77cfc commit bc1b839
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Godeps
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ github.com/18F/hmacauth 1.0.1
github.com/BurntSushi/toml d94612f9fc140360834f9742158c70b5c5b5535b
github.com/bitly/go-simplejson da1a8928f709389522c8023062a3739f3b4af419
github.com/mreiferson/go-options 77551d20752b54535462404ad9d877ebdb26e53d
github.com/bmizerany/assert e17e99893cb6509f428e1728281c2ad60a6b31e3
github.com/stretchr/testify v1.1.4
gopkg.in/fsnotify.v1 v1.2.0
golang.org/x/oauth2 7fdf09982454086d5570c7db3e11f360194830ca
golang.org/x/net/context 242b6b35177ec3909636b6cf6a47e8c2c6324b5d
Expand Down
3 changes: 2 additions & 1 deletion api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package api

import (
"github.com/bitly/go-simplejson"
"github.com/bmizerany/assert"
"io/ioutil"
"net/http"
"net/http/httptest"
"strings"
"testing"

"github.com/stretchr/testify/assert"
)

func testBackend(response_code int, payload string) *httptest.Server {
Expand Down
2 changes: 1 addition & 1 deletion cookie/cookies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/base64"
"testing"

"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

func TestEncodeAndDecodeAccessToken(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion env_options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

type envTest struct {
Expand Down
2 changes: 1 addition & 1 deletion htpasswd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"bytes"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion oauthproxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"github.com/18F/hmacauth"
"github.com/bitly/oauth2_proxy/providers"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

func testOptions() *Options {
Expand Down
3 changes: 2 additions & 1 deletion providers/azure_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package providers

import (
"github.com/bmizerany/assert"
"net/http"
"net/http/httptest"
"net/url"
"testing"

"github.com/stretchr/testify/assert"
)

func testAzureProvider(hostname string) *AzureProvider {
Expand Down
2 changes: 1 addition & 1 deletion providers/gitlab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"testing"

"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

func testGitLabProvider(hostname string) *GitLabProvider {
Expand Down
2 changes: 1 addition & 1 deletion providers/google_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"
"testing"

"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

func newRedeemServer(body []byte) (*url.URL, *httptest.Server) {
Expand Down
2 changes: 1 addition & 1 deletion providers/internal_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/url"
"testing"

"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

type ValidateSessionStateTestProvider struct {
Expand Down
3 changes: 2 additions & 1 deletion providers/linkedin_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package providers

import (
"github.com/bmizerany/assert"
"net/http"
"net/http/httptest"
"net/url"
"testing"

"github.com/stretchr/testify/assert"
)

func testLinkedInProvider(hostname string) *LinkedInProvider {
Expand Down
2 changes: 1 addition & 1 deletion providers/provider_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

func TestRefresh(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion providers/session_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/bitly/oauth2_proxy/cookie"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)

const secret = "0123456789abcdefghijklmnopqrstuv"
Expand Down
3 changes: 2 additions & 1 deletion templates_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

import (
"github.com/bmizerany/assert"
"testing"

"github.com/stretchr/testify/assert"
)

func TestTemplatesCompile(t *testing.T) {
Expand Down

0 comments on commit bc1b839

Please sign in to comment.