|
|
@@ -31,7 +31,6 @@ func TestCloudWatchGetMetricData(t *testing.T) {
|
|
|
Period: 300,
|
|
|
Id: "id1",
|
|
|
Expression: "",
|
|
|
- ReturnData: true,
|
|
|
},
|
|
|
"id2": {
|
|
|
RefId: "B",
|
|
|
@@ -39,7 +38,6 @@ func TestCloudWatchGetMetricData(t *testing.T) {
|
|
|
Statistics: []*string{aws.String("Average")},
|
|
|
Id: "id2",
|
|
|
Expression: "id1 * 2",
|
|
|
- ReturnData: true,
|
|
|
},
|
|
|
}
|
|
|
|
|
|
@@ -58,11 +56,9 @@ func TestCloudWatchGetMetricData(t *testing.T) {
|
|
|
So(*v.MetricStat.Period, ShouldEqual, 300)
|
|
|
So(*v.MetricStat.Stat, ShouldEqual, "Average")
|
|
|
So(*v.Id, ShouldEqual, "id1")
|
|
|
- So(*v.ReturnData, ShouldEqual, true)
|
|
|
} else {
|
|
|
So(*v.Id, ShouldEqual, "id2")
|
|
|
So(*v.Expression, ShouldEqual, "id1 * 2")
|
|
|
- So(*v.ReturnData, ShouldEqual, true)
|
|
|
}
|
|
|
}
|
|
|
})
|