mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Update middleware test
Assert that `isAnonymous` is set for `SignedInUser` authenticated via API key.
This commit is contained in:
parent
9fcc4e67f5
commit
75f767e58d
@ -187,6 +187,8 @@ func TestMiddlewareContext(t *testing.T) {
|
||||
|
||||
Convey("Should init middleware context", func() {
|
||||
So(sc.context.IsSignedIn, ShouldEqual, true)
|
||||
So(sc.context.SignedInUser, ShouldNotBeNil)
|
||||
So(sc.context.SignedInUser.IsAnonymous, ShouldEqual, true)
|
||||
So(sc.context.OrgId, ShouldEqual, 12)
|
||||
So(sc.context.OrgRole, ShouldEqual, models.ROLE_EDITOR)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user