1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2024-12-12 11:15:02 +02:00

Merge pull request #484 from talam/update_assert_package

Swap out bmizerany/assert package in favor of stretchr/testify/assert
This commit is contained in:
Jehiah Czebotar 2017-10-23 13:56:35 -04:00 committed by GitHub
commit bc1b839f7f
15 changed files with 19 additions and 15 deletions

2
Godeps
View File

@ -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

View File

@ -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 {

View File

@ -4,7 +4,7 @@ import (
"encoding/base64"
"testing"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)
func TestEncodeAndDecodeAccessToken(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)
type envTest struct {

View File

@ -2,7 +2,7 @@ package main
import (
"bytes"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
"testing"
)

View File

@ -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() {

View File

@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)
func testOptions() *Options {

View File

@ -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 {

View File

@ -6,7 +6,7 @@ import (
"net/url"
"testing"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)
func testGitLabProvider(hostname string) *GitLabProvider {

View File

@ -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) {

View File

@ -7,7 +7,7 @@ import (
"net/url"
"testing"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)
type ValidateSessionStateTestProvider struct {

View File

@ -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 {

View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)
func TestRefresh(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"time"
"github.com/bitly/oauth2_proxy/cookie"
"github.com/bmizerany/assert"
"github.com/stretchr/testify/assert"
)
const secret = "0123456789abcdefghijklmnopqrstuv"

View File

@ -1,8 +1,9 @@
package main
import (
"github.com/bmizerany/assert"
"testing"
"github.com/stretchr/testify/assert"
)
func TestTemplatesCompile(t *testing.T) {