chore: fix tests
parent
b600559d53
commit
e97a0eb027
|
@ -3231,7 +3231,7 @@ spec:
|
|||
suffix: days
|
||||
width: 6
|
||||
height: 3
|
||||
shade: true
|
||||
shade: true
|
||||
queries:
|
||||
- query: >
|
||||
from(bucket: v.bucket) |> range(start: v.timeRangeStart) |> filter(fn: (r) => r._measurement == "system") |> filter(fn: (r) => r._field == "uptime") |> last() |> map(fn: (r) => ({r with _value: r._value / 86400})) |> yield(name: "last")
|
||||
|
|
|
@ -53,7 +53,7 @@ func TestView_MarshalJSON(t *testing.T) {
|
|||
"shadeBelow": false,
|
||||
"position": "",
|
||||
"timeFormat": "",
|
||||
"hoverDimension": "y"
|
||||
"hoverDimension": ""
|
||||
}
|
||||
}
|
||||
`,
|
||||
|
|
|
@ -461,7 +461,7 @@ func TestService_handleGetDashboard(t *testing.T) {
|
|||
"note": "",
|
||||
"queries": null,
|
||||
"shadeBelow": false,
|
||||
"hoverDimension": "y",
|
||||
"hoverDimension": "",
|
||||
"showNoteWhenEmpty": false,
|
||||
"timeFormat": "",
|
||||
"type": "xy",
|
||||
|
@ -978,7 +978,7 @@ func TestService_handlePostDashboard(t *testing.T) {
|
|||
"position": "",
|
||||
"queries": null,
|
||||
"shadeBelow": false,
|
||||
"hoverDimension": "y",
|
||||
"hoverDimension": "",
|
||||
"showNoteWhenEmpty": false,
|
||||
"timeFormat": "",
|
||||
"type": "",
|
||||
|
|
Loading…
Reference in New Issue