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
5f2f4a08
Commit
5f2f4a08
authored
Mar 23, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(influxdb): remove redundant test
parent
991b6eaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
42 deletions
+18
-42
public/app/plugins/datasource/influxdb/specs/response_parser_specs.ts
+18
-42
No files found.
public/app/plugins/datasource/influxdb/specs/response_parser_specs.ts
View file @
5f2f4a08
...
@@ -6,48 +6,24 @@ describe("influxdb response parser", () => {
...
@@ -6,48 +6,24 @@ describe("influxdb response parser", () => {
this
.
parser
=
new
ResponseParser
();
this
.
parser
=
new
ResponseParser
();
describe
(
"SHOW TAG response"
,
()
=>
{
describe
(
"SHOW TAG response"
,
()
=>
{
var
query
=
'SHOW TAG KEYS FROM "cpu"'
;
var
query
=
'SHOW TAG KEYS FROM "cpu"'
;
describe
(
"response from 0.10.0"
,
()
=>
{
var
response
=
{
var
response
=
{
"results"
:
[
"results"
:
[
{
{
"series"
:
[
"series"
:
[
{
{
"name"
:
"cpu"
,
"name"
:
"cpu"
,
"columns"
:
[
"tagKey"
],
"columns"
:
[
"tagKey"
],
"values"
:
[
[
"datacenter"
],
[
"hostname"
],
[
"source"
]
]
"values"
:
[
[
"datacenter"
],
[
"hostname"
],
[
"source"
]
]
}
}
]
]
}
}
]
]
};
};
var
result
=
this
.
parser
.
parse
(
query
,
response
);
var
result
=
this
.
parser
.
parse
(
query
,
response
);
it
(
"expects three results"
,
()
=>
{
it
(
"expects three results"
,
()
=>
{
expect
(
_
.
size
(
result
)).
to
.
be
(
3
);
expect
(
_
.
size
(
result
)).
to
.
be
(
3
);
});
});
describe
(
"response from 0.11.0"
,
()
=>
{
var
response
=
{
"results"
:
[
{
"series"
:
[
{
"name"
:
"cpu"
,
"columns"
:
[
"tagKey"
],
"values"
:
[
[
"datacenter"
],
[
"hostname"
],
[
"source"
]
]
}
]
}
]
};
var
result
=
this
.
parser
.
parse
(
query
,
response
);
it
(
"expects three results"
,
()
=>
{
expect
(
_
.
size
(
result
)).
to
.
be
(
3
);
});
});
});
});
});
...
...
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