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
75c4c4d8
Commit
75c4c4d8
authored
Sep 08, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: query ctrl unit tests now pass as before
parent
2953d644
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
public/app/plugins/datasource/graphite/specs/query_ctrl_specs.ts
+5
-0
public/app/plugins/datasource/influxdb/specs/query_ctrl_specs.ts
+6
-2
public/app/plugins/datasource/opentsdb/specs/query-ctrl-specs.ts
+5
-1
No files found.
public/app/plugins/datasource/graphite/specs/query_ctrl_specs.ts
View file @
75c4c4d8
...
@@ -24,6 +24,11 @@ describe('GraphiteQueryCtrl', function() {
...
@@ -24,6 +24,11 @@ describe('GraphiteQueryCtrl', function() {
ctx
.
target
=
{
target
:
'aliasByNode(scaleToSeconds(test.prod.*,1),2)'
};
ctx
.
target
=
{
target
:
'aliasByNode(scaleToSeconds(test.prod.*,1),2)'
};
ctx
.
datasource
.
metricFindQuery
=
sinon
.
stub
().
returns
(
ctx
.
$q
.
when
([]));
ctx
.
datasource
.
metricFindQuery
=
sinon
.
stub
().
returns
(
ctx
.
$q
.
when
([]));
ctx
.
panelCtrl
=
{
panel
:
{}};
ctx
.
panelCtrl
=
{
panel
:
{}};
ctx
.
panelCtrl
=
{
panel
:
{
targets
:
[
ctx
.
target
]
}
};
ctx
.
panelCtrl
.
refresh
=
sinon
.
spy
();
ctx
.
panelCtrl
.
refresh
=
sinon
.
spy
();
ctx
.
ctrl
=
$controller
(
GraphiteQueryCtrl
,
{
$scope
:
ctx
.
scope
},
{
ctx
.
ctrl
=
$controller
(
GraphiteQueryCtrl
,
{
$scope
:
ctx
.
scope
},
{
...
...
public/app/plugins/datasource/influxdb/specs/query_ctrl_specs.ts
View file @
75c4c4d8
...
@@ -19,9 +19,13 @@ describe('InfluxDBQueryCtrl', function() {
...
@@ -19,9 +19,13 @@ describe('InfluxDBQueryCtrl', function() {
ctx
.
$q
=
$q
;
ctx
.
$q
=
$q
;
ctx
.
scope
=
$rootScope
.
$new
();
ctx
.
scope
=
$rootScope
.
$new
();
ctx
.
datasource
.
metricFindQuery
=
sinon
.
stub
().
returns
(
ctx
.
$q
.
when
([]));
ctx
.
datasource
.
metricFindQuery
=
sinon
.
stub
().
returns
(
ctx
.
$q
.
when
([]));
ctx
.
panelCtrl
=
{
panel
:
{}};
ctx
.
panelCtrl
.
refresh
=
sinon
.
spy
();
ctx
.
target
=
{
target
:
{}};
ctx
.
target
=
{
target
:
{}};
ctx
.
panelCtrl
=
{
panel
:
{
targets
:
[
ctx
.
target
]
}
};
ctx
.
panelCtrl
.
refresh
=
sinon
.
spy
();
ctx
.
ctrl
=
$controller
(
InfluxQueryCtrl
,
{
$scope
:
ctx
.
scope
},
{
ctx
.
ctrl
=
$controller
(
InfluxQueryCtrl
,
{
$scope
:
ctx
.
scope
},
{
panelCtrl
:
ctx
.
panelCtrl
,
panelCtrl
:
ctx
.
panelCtrl
,
target
:
ctx
.
target
,
target
:
ctx
.
target
,
...
...
public/app/plugins/datasource/opentsdb/specs/query-ctrl-specs.ts
View file @
75c4c4d8
...
@@ -18,7 +18,11 @@ describe('OpenTsQueryCtrl', function() {
...
@@ -18,7 +18,11 @@ describe('OpenTsQueryCtrl', function() {
ctx
.
$q
=
$q
;
ctx
.
$q
=
$q
;
ctx
.
scope
=
$rootScope
.
$new
();
ctx
.
scope
=
$rootScope
.
$new
();
ctx
.
target
=
{
target
:
''
};
ctx
.
target
=
{
target
:
''
};
ctx
.
panelCtrl
=
{
panel
:
{}};
ctx
.
panelCtrl
=
{
panel
:
{
targets
:
[
ctx
.
target
]
}
};
ctx
.
panelCtrl
.
refresh
=
sinon
.
spy
();
ctx
.
panelCtrl
.
refresh
=
sinon
.
spy
();
ctx
.
datasource
.
getAggregators
=
sinon
.
stub
().
returns
(
ctx
.
$q
.
when
([]));
ctx
.
datasource
.
getAggregators
=
sinon
.
stub
().
returns
(
ctx
.
$q
.
when
([]));
ctx
.
datasource
.
getFilterTypes
=
sinon
.
stub
().
returns
(
ctx
.
$q
.
when
([]));
ctx
.
datasource
.
getFilterTypes
=
sinon
.
stub
().
returns
(
ctx
.
$q
.
when
([]));
...
...
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