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
124fb743
Commit
124fb743
authored
Mar 06, 2019
by
Hugo Häggmark
Committed by
Leonard Gram
Mar 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
teams: make test cases pass again
parent
da3dcd19
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
pkg/api/dashboard_test.go
+4
-0
pkg/api/folder_test.go
+10
-1
No files found.
pkg/api/dashboard_test.go
View file @
124fb743
...
...
@@ -972,8 +972,12 @@ func postDashboardScenario(desc string, url string, routePattern string, mock *d
Convey
(
desc
+
" "
+
url
,
func
()
{
defer
bus
.
ClearBusHandlers
()
cfg
:=
setting
.
NewCfg
()
cfg
.
EditorsCanOwn
=
false
hs
:=
HTTPServer
{
Bus
:
bus
.
GetBus
(),
Cfg
:
cfg
,
}
sc
:=
setupScenarioContext
(
url
)
...
...
pkg/api/folder_test.go
View file @
124fb743
...
...
@@ -9,6 +9,7 @@ import (
"github.com/grafana/grafana/pkg/bus"
m
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/services/dashboards"
"github.com/grafana/grafana/pkg/setting"
.
"github.com/smartystreets/goconvey/convey"
)
...
...
@@ -141,12 +142,20 @@ func createFolderScenario(desc string, url string, routePattern string, mock *fa
Convey
(
desc
+
" "
+
url
,
func
()
{
defer
bus
.
ClearBusHandlers
()
cfg
:=
setting
.
NewCfg
()
cfg
.
EditorsCanOwn
=
false
hs
:=
HTTPServer
{
Bus
:
bus
.
GetBus
(),
Cfg
:
cfg
,
}
sc
:=
setupScenarioContext
(
url
)
sc
.
defaultHandler
=
Wrap
(
func
(
c
*
m
.
ReqContext
)
Response
{
sc
.
context
=
c
sc
.
context
.
SignedInUser
=
&
m
.
SignedInUser
{
OrgId
:
TestOrgID
,
UserId
:
TestUserID
}
return
CreateFolder
(
c
,
cmd
)
return
hs
.
CreateFolder
(
c
,
cmd
)
})
origNewFolderService
:=
dashboards
.
NewFolderService
...
...
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