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
ccbdb29f
Commit
ccbdb29f
authored
Nov 21, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed unit tests
parent
8daff73b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pkg/services/sqlstore/dashboard_test.go
+2
-2
pkg/services/sqlstore/dashboard_version_test.go
+1
-1
No files found.
pkg/services/sqlstore/dashboard_test.go
View file @
ccbdb29f
...
@@ -114,7 +114,7 @@ func TestDashboardDataAccess(t *testing.T) {
...
@@ -114,7 +114,7 @@ func TestDashboardDataAccess(t *testing.T) {
Convey
(
"Should be able to search for a dashboard folder's children"
,
func
()
{
Convey
(
"Should be able to search for a dashboard folder's children"
,
func
()
{
query
:=
search
.
FindPersistedDashboardsQuery
{
query
:=
search
.
FindPersistedDashboardsQuery
{
OrgId
:
1
,
OrgId
:
1
,
FolderId
:
savedFolder
.
Id
,
FolderId
s
:
[]
int64
{
savedFolder
.
Id
}
,
SignedInUser
:
&
m
.
SignedInUser
{
OrgId
:
1
},
SignedInUser
:
&
m
.
SignedInUser
{
OrgId
:
1
},
}
}
...
@@ -218,7 +218,7 @@ func TestDashboardDataAccess(t *testing.T) {
...
@@ -218,7 +218,7 @@ func TestDashboardDataAccess(t *testing.T) {
query
:=
search
.
FindPersistedDashboardsQuery
{
query
:=
search
.
FindPersistedDashboardsQuery
{
OrgId
:
1
,
OrgId
:
1
,
FolderId
:
savedFolder
.
Id
,
FolderId
s
:
[]
int64
{
savedFolder
.
Id
}
,
SignedInUser
:
&
m
.
SignedInUser
{},
SignedInUser
:
&
m
.
SignedInUser
{},
}
}
...
...
pkg/services/sqlstore/dashboard_version_test.go
View file @
ccbdb29f
...
@@ -110,7 +110,7 @@ func TestDeleteExpiredVersions(t *testing.T) {
...
@@ -110,7 +110,7 @@ func TestDeleteExpiredVersions(t *testing.T) {
versionsToWrite
:=
10
versionsToWrite
:=
10
setting
.
DashboardVersionsToKeep
=
versionsToKeep
setting
.
DashboardVersionsToKeep
=
versionsToKeep
savedDash
:=
insertTestDashboard
(
"test dash 53"
,
1
,
"diff-all"
)
savedDash
:=
insertTestDashboard
(
"test dash 53"
,
1
,
0
,
false
,
"diff-all"
)
for
i
:=
0
;
i
<
versionsToWrite
-
1
;
i
++
{
for
i
:=
0
;
i
<
versionsToWrite
-
1
;
i
++
{
updateTestDashboard
(
savedDash
,
map
[
string
]
interface
{}{
updateTestDashboard
(
savedDash
,
map
[
string
]
interface
{}{
"tags"
:
"different-tag"
,
"tags"
:
"different-tag"
,
...
...
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