From b6087cc08d0228f2304bbc3c6b97b86aa8d3c3f1 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Wed, 17 Mar 2021 19:52:36 +0100 Subject: almost there --- internal/oauth/oauth_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/oauth/oauth_test.go') diff --git a/internal/oauth/oauth_test.go b/internal/oauth/oauth_test.go index f786df396..404ea5c20 100644 --- a/internal/oauth/oauth_test.go +++ b/internal/oauth/oauth_test.go @@ -48,7 +48,7 @@ func (suite *OauthTestSuite) SetupSuite() { suite.testClient = &oauthClient{ ID: "a-known-client-id", Secret: "some-secret", - Domain: "localhost", + Domain: "http://localhost:8080", UserID: userID, } } @@ -107,14 +107,14 @@ func (suite *OauthTestSuite) TearDownTest() { func (suite *OauthTestSuite) TestAPIInitialize() { log := logrus.New() - log.SetLevel(logrus.DebugLevel) + log.SetLevel(logrus.TraceLevel) r := api.New(suite.config, log) api := New(suite.tokenStore, suite.clientStore, suite.conn, log) api.AddRoutes(r) go r.Start() time.Sleep(30 * time.Second) - // http://localhost:8080/oauth/authorize?client_id=a-known-client-id&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code + // http://localhost:8080/oauth/authorize?client_id=a-known-client-id&redirect_uri=''&response_type=code } func TestOauthTestSuite(t *testing.T) { -- cgit v1.2.3