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
d4051763
Commit
d4051763
authored
Jan 29, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(playlist): remove commented code
parent
15087251
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
33 deletions
+4
-33
pkg/services/sqlstore/playlist_test.go
+4
-33
No files found.
pkg/services/sqlstore/playlist_test.go
View file @
d4051763
...
...
@@ -8,35 +8,6 @@ import (
m
"github.com/grafana/grafana/pkg/models"
)
/*
type UpdatePlaylistCommand struct {
OrgId int64 `json:"-"`
Id int64 `json:"id" binding:"Required"`
Name string `json:"name" binding:"Required"`
Type string `json:"type"`
Interval string `json:"interval"`
Items []PlaylistItemDTO `json:"items"`
Result *PlaylistDTO
}
type CreatePlaylistCommand struct {
Name string `json:"name" binding:"Required"`
Interval string `json:"interval"`
Data []int64 `json:"data"`
Items []PlaylistItemDTO `json:"items"`
OrgId int64 `json:"-"`
Result *Playlist
}
type DeletePlaylistCommand struct {
Id int64
OrgId int64
}
*/
func
TestPlaylistDataAccess
(
t
*
testing
.
T
)
{
Convey
(
"Testing Playlist data access"
,
t
,
func
()
{
...
...
@@ -44,8 +15,8 @@ func TestPlaylistDataAccess(t *testing.T) {
Convey
(
"Can create playlist"
,
func
()
{
items
:=
[]
m
.
PlaylistItemDTO
{
m
.
PlaylistItemDTO
{
Title
:
"graphite"
,
Value
:
"graphite"
,
Type
:
"dashboard_by_tag"
},
m
.
PlaylistItemDTO
{
Title
:
"Backend response times"
,
Value
:
"3"
,
Type
:
"dashboard_by_id"
},
{
Title
:
"graphite"
,
Value
:
"graphite"
,
Type
:
"dashboard_by_tag"
},
{
Title
:
"Backend response times"
,
Value
:
"3"
,
Type
:
"dashboard_by_id"
},
}
cmd
:=
m
.
CreatePlaylistCommand
{
Name
:
"NYC office"
,
Interval
:
"10m"
,
OrgId
:
1
,
Items
:
items
}
err
:=
CreatePlaylist
(
&
cmd
)
...
...
@@ -53,8 +24,8 @@ func TestPlaylistDataAccess(t *testing.T) {
Convey
(
"can update playlist"
,
func
()
{
items
:=
[]
m
.
PlaylistItemDTO
{
m
.
PlaylistItemDTO
{
Title
:
"influxdb"
,
Value
:
"influxdb"
,
Type
:
"dashboard_by_tag"
},
m
.
PlaylistItemDTO
{
Title
:
"Backend response times"
,
Value
:
"2"
,
Type
:
"dashboard_by_id"
},
{
Title
:
"influxdb"
,
Value
:
"influxdb"
,
Type
:
"dashboard_by_tag"
},
{
Title
:
"Backend response times"
,
Value
:
"2"
,
Type
:
"dashboard_by_id"
},
}
query
:=
m
.
UpdatePlaylistCommand
{
Name
:
"NYC office "
,
OrgId
:
1
,
Id
:
1
,
Interval
:
"10s"
,
Items
:
items
}
err
=
UpdatePlaylist
(
&
query
)
...
...
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