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
8616f1be
Commit
8616f1be
authored
Jan 17, 2020
by
Erik Sundell
Committed by
Marcus Efraimsson
Jan 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: Fix go vet problem (#21568)
parent
ca848296
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
pkg/tsdb/cloudwatch/response_parser_test.go
+8
-4
No files found.
pkg/tsdb/cloudwatch/response_parser_test.go
View file @
8616f1be
...
...
@@ -60,10 +60,11 @@ func TestCloudWatchResponseParser(t *testing.T) {
Period
:
60
,
Alias
:
"{{LoadBalancer}} Expanded"
,
}
series
,
_
,
err
:=
parseGetMetricDataTimeSeries
(
resp
,
query
)
series
,
partialData
,
err
:=
parseGetMetricDataTimeSeries
(
resp
,
query
)
timeSeries
:=
(
*
series
)[
0
]
So
(
err
,
ShouldBeNil
)
So
(
partialData
,
ShouldBeFalse
)
So
(
timeSeries
.
Name
,
ShouldEqual
,
"lb2 Expanded"
)
So
(
timeSeries
.
Tags
[
"LoadBalancer"
],
ShouldEqual
,
"lb2"
)
})
...
...
@@ -116,10 +117,11 @@ func TestCloudWatchResponseParser(t *testing.T) {
Period
:
60
,
Alias
:
"{{LoadBalancer}} Expanded"
,
}
series
,
_
,
err
:=
parseGetMetricDataTimeSeries
(
resp
,
query
)
series
,
partialData
,
err
:=
parseGetMetricDataTimeSeries
(
resp
,
query
)
timeSeries
:=
(
*
series
)[
0
]
So
(
err
,
ShouldBeNil
)
So
(
partialData
,
ShouldBeFalse
)
So
(
timeSeries
.
Name
,
ShouldEqual
,
"lb1 Expanded"
)
So
(
timeSeries
.
Tags
[
"LoadBalancer"
],
ShouldEqual
,
"lb1"
)
})
...
...
@@ -172,9 +174,10 @@ func TestCloudWatchResponseParser(t *testing.T) {
Period
:
60
,
Alias
:
"{{LoadBalancer}} Expanded"
,
}
series
,
_
,
err
:=
parseGetMetricDataTimeSeries
(
resp
,
query
)
series
,
partialData
,
err
:=
parseGetMetricDataTimeSeries
(
resp
,
query
)
So
(
err
,
ShouldBeNil
)
So
(
partialData
,
ShouldBeFalse
)
So
((
*
series
)[
0
]
.
Name
,
ShouldEqual
,
"lb3 Expanded"
)
So
((
*
series
)[
1
]
.
Name
,
ShouldEqual
,
"lb4 Expanded"
)
})
...
...
@@ -212,10 +215,11 @@ func TestCloudWatchResponseParser(t *testing.T) {
Period
:
60
,
Alias
:
"{{namespace}}_{{metric}}_{{stat}}"
,
}
series
,
_
,
err
:=
parseGetMetricDataTimeSeries
(
resp
,
query
)
series
,
partialData
,
err
:=
parseGetMetricDataTimeSeries
(
resp
,
query
)
timeSeries
:=
(
*
series
)[
0
]
So
(
err
,
ShouldBeNil
)
So
(
partialData
,
ShouldBeFalse
)
So
(
timeSeries
.
Name
,
ShouldEqual
,
"AWS/ApplicationELB_TargetResponseTime_Average"
)
So
(
timeSeries
.
Tags
[
"LoadBalancer"
],
ShouldEqual
,
"lb"
)
So
(
timeSeries
.
Points
[
0
][
0
]
.
String
(),
ShouldEqual
,
null
.
FloatFrom
(
10.0
)
.
String
())
...
...
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