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
8af2c9f1
Commit
8af2c9f1
authored
Feb 16, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: added integration test for #10941
parent
5323971c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
pkg/services/sqlstore/alert_test.go
+8
-0
No files found.
pkg/services/sqlstore/alert_test.go
View file @
8af2c9f1
...
@@ -80,6 +80,14 @@ func TestAlertingDataAccess(t *testing.T) {
...
@@ -80,6 +80,14 @@ func TestAlertingDataAccess(t *testing.T) {
So
(
alert
.
State
,
ShouldEqual
,
"pending"
)
So
(
alert
.
State
,
ShouldEqual
,
"pending"
)
})
})
Convey
(
"Viewer cannot read alerts"
,
func
()
{
alertQuery
:=
m
.
GetAlertsQuery
{
DashboardId
:
testDash
.
Id
,
PanelId
:
1
,
OrgId
:
1
,
User
:
&
m
.
SignedInUser
{
OrgRole
:
m
.
ROLE_VIEWER
}}
err2
:=
HandleAlertsQuery
(
&
alertQuery
)
So
(
err2
,
ShouldBeNil
)
So
(
alertQuery
.
Result
,
ShouldHaveLength
,
0
)
})
Convey
(
"Alerts with same dashboard id and panel id should update"
,
func
()
{
Convey
(
"Alerts with same dashboard id and panel id should update"
,
func
()
{
modifiedItems
:=
items
modifiedItems
:=
items
modifiedItems
[
0
]
.
Name
=
"Name"
modifiedItems
[
0
]
.
Name
=
"Name"
...
...
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