summaryrefslogtreecommitdiff
path: root/internal/oauth/oauth_test.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-17 19:52:36 +0100
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-17 19:52:36 +0100
commitb6087cc08d0228f2304bbc3c6b97b86aa8d3c3f1 (patch)
treeafde7280ec1ad8c459245043de8bbfa13ecc2ca8 /internal/oauth/oauth_test.go
parentgetting there....... (diff)
downloadgotosocial-b6087cc08d0228f2304bbc3c6b97b86aa8d3c3f1.tar.xz
almost there
Diffstat (limited to 'internal/oauth/oauth_test.go')
-rw-r--r--internal/oauth/oauth_test.go6
1 files changed, 3 insertions, 3 deletions
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) {