Update tests
This commit is contained in:
@@ -147,7 +147,7 @@ trafficGraph :: GraphSpec
|
||||
trafficGraph =
|
||||
GraphSpec
|
||||
{ gsName = "traffic"
|
||||
, gsTitle = "Traffic"
|
||||
, gsTitle = "Hass triggers in / services out"
|
||||
, gsPlots =
|
||||
[ Line 2 Series
|
||||
{ serSource = Source "hass_trigger_in" Average
|
||||
|
||||
@@ -83,12 +83,12 @@ spec = do
|
||||
, "--width", "800"
|
||||
, "--height", "250"
|
||||
, "--imgformat", "PNG"
|
||||
, "DEF:trig=hass-controller.rrd:hass_trigger_in:AVERAGE"
|
||||
, "CDEF:trig_min=trig,60,*"
|
||||
, "DEF:svc=hass-controller.rrd:hass_service_out:AVERAGE"
|
||||
, "CDEF:svc_min=svc,60,*"
|
||||
, "LINE2:trig_min#0066cc:triggers in/min"
|
||||
, "LINE2:svc_min#cc0000:services out/min"
|
||||
, "DEF:in_raw=hass-controller.rrd:hass_trigger_in:AVERAGE"
|
||||
, "CDEF:in=in_raw,60.0,*"
|
||||
, "DEF:out_raw=hass-controller.rrd:hass_service_out:AVERAGE"
|
||||
, "CDEF:out=out_raw,60.0,*"
|
||||
, "LINE2:in#0066cc:Triggers in/min"
|
||||
, "LINE2:out#cc0000:Service calls out/min"
|
||||
]
|
||||
|
||||
describe "end-to-end (rrdtool-gated)" $ do
|
||||
@@ -123,4 +123,4 @@ spec = do
|
||||
code `shouldBe` ExitSuccess
|
||||
out `shouldSatisfy` BS.isPrefixOf pngMagic
|
||||
)
|
||||
`finally` cleanup
|
||||
`finally` cleanup
|
||||
|
||||
Reference in New Issue
Block a user