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
f839d12d
Commit
f839d12d
authored
Sep 17, 2018
by
Erik Sundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stackdriver: fix broken tests
parent
109f00f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pkg/tsdb/stackdriver/stackdriver_test.go
+4
-4
No files found.
pkg/tsdb/stackdriver/stackdriver_test.go
View file @
f839d12d
...
...
@@ -43,10 +43,10 @@ func TestStackdriver(t *testing.T) {
So
(
len
(
queries
),
ShouldEqual
,
1
)
So
(
queries
[
0
]
.
RefID
,
ShouldEqual
,
"A"
)
So
(
queries
[
0
]
.
Target
,
ShouldEqual
,
"target"
)
So
(
len
(
queries
[
0
]
.
Params
),
ShouldEqual
,
5
)
So
(
len
(
queries
[
0
]
.
Params
),
ShouldEqual
,
7
)
So
(
queries
[
0
]
.
Params
[
"interval.startTime"
][
0
],
ShouldEqual
,
"2018-03-15T13:00:00Z"
)
So
(
queries
[
0
]
.
Params
[
"interval.endTime"
][
0
],
ShouldEqual
,
"2018-03-15T13:34:00Z"
)
So
(
queries
[
0
]
.
Params
[
"aggregation.perSeriesAligner"
][
0
],
ShouldEqual
,
"ALIGN_
NONE
"
)
So
(
queries
[
0
]
.
Params
[
"aggregation.perSeriesAligner"
][
0
],
ShouldEqual
,
"ALIGN_
MEAN
"
)
So
(
queries
[
0
]
.
Params
[
"filter"
][
0
],
ShouldEqual
,
"metric.type=
\"
a/metric/type
\"
"
)
So
(
queries
[
0
]
.
Params
[
"view"
][
0
],
ShouldEqual
,
"FULL"
)
})
...
...
@@ -130,10 +130,10 @@ func TestStackdriver(t *testing.T) {
So
(
len
(
queries
),
ShouldEqual
,
1
)
So
(
queries
[
0
]
.
RefID
,
ShouldEqual
,
"A"
)
So
(
queries
[
0
]
.
Target
,
ShouldEqual
,
"target"
)
So
(
len
(
queries
[
0
]
.
Params
),
ShouldEqual
,
6
)
So
(
len
(
queries
[
0
]
.
Params
),
ShouldEqual
,
8
)
So
(
queries
[
0
]
.
Params
[
"interval.startTime"
][
0
],
ShouldEqual
,
"2018-03-15T13:00:00Z"
)
So
(
queries
[
0
]
.
Params
[
"interval.endTime"
][
0
],
ShouldEqual
,
"2018-03-15T13:34:00Z"
)
So
(
queries
[
0
]
.
Params
[
"aggregation.perSeriesAligner"
][
0
],
ShouldEqual
,
"ALIGN_
NONE
"
)
So
(
queries
[
0
]
.
Params
[
"aggregation.perSeriesAligner"
][
0
],
ShouldEqual
,
"ALIGN_
MEAN
"
)
So
(
queries
[
0
]
.
Params
[
"aggregation.groupByFields"
][
0
],
ShouldEqual
,
"metric.label.group1"
)
So
(
queries
[
0
]
.
Params
[
"aggregation.groupByFields"
][
1
],
ShouldEqual
,
"metric.label.group2"
)
So
(
queries
[
0
]
.
Params
[
"filter"
][
0
],
ShouldEqual
,
"metric.type=
\"
a/metric/type
\"
"
)
...
...
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