mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
feat(invite): progress on invite feature, #2353
This commit is contained in:
@@ -32,6 +32,14 @@ func TestTempUserCommandsAndQueries(t *testing.T) {
|
||||
So(len(query.Result), ShouldEqual, 1)
|
||||
})
|
||||
|
||||
Convey("Should be able to get temp users by code", func() {
|
||||
query := m.GetTempUserByCodeQuery{Code: "asd"}
|
||||
err = GetTempUserByCode(&query)
|
||||
|
||||
So(err, ShouldBeNil)
|
||||
So(query.Result.Name, ShouldEqual, "hello")
|
||||
})
|
||||
|
||||
Convey("Should be able update status", func() {
|
||||
cmd2 := m.UpdateTempUserStatusCommand{Code: "asd", Status: m.TmpUserRevoked}
|
||||
err := UpdateTempUserStatus(&cmd2)
|
||||
|
||||
Reference in New Issue
Block a user