Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
83650118
Unverified
Commit
83650118
authored
Feb 06, 2019
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8ae066ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
pkg/middleware/middleware_test.go
+1
-2
No files found.
pkg/middleware/middleware_test.go
View file @
83650118
...
@@ -11,7 +11,6 @@ import (
...
@@ -11,7 +11,6 @@ import (
msession
"github.com/go-macaron/session"
msession
"github.com/go-macaron/session"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/bus"
m
"github.com/grafana/grafana/pkg/models"
m
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/services/auth/authtoken"
"github.com/grafana/grafana/pkg/services/session"
"github.com/grafana/grafana/pkg/services/session"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/util"
"github.com/grafana/grafana/pkg/util"
...
@@ -228,7 +227,7 @@ func TestMiddlewareContext(t *testing.T) {
...
@@ -228,7 +227,7 @@ func TestMiddlewareContext(t *testing.T) {
sc
.
withTokenSessionCookie
(
"token"
)
sc
.
withTokenSessionCookie
(
"token"
)
sc
.
userAuthTokenService
.
lookupTokenProvider
=
func
(
unhashedToken
string
)
(
*
m
.
UserToken
,
error
)
{
sc
.
userAuthTokenService
.
lookupTokenProvider
=
func
(
unhashedToken
string
)
(
*
m
.
UserToken
,
error
)
{
return
nil
,
authtoken
.
ErrAuth
TokenNotFound
return
nil
,
m
.
ErrUser
TokenNotFound
}
}
sc
.
fakeReq
(
"GET"
,
"/"
)
.
exec
()
sc
.
fakeReq
(
"GET"
,
"/"
)
.
exec
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment