Testing the syslog module with lines argument.

-- Testcase --
{% include("./cmd/cmd.uc", { TRACE_CALLS: "stdout" }) %}
-- End --

-- Environment --
cmd={ "command": "syslog", "payload": { "lines": 10 } }
-- End --

-- Expect stdout --
[call] ubusconn.call object <log> method <read> args <{ "lines": 10, "oneshot": true, "stream": false }>
[call] ubusconn.call object <ucentral> method <result> args <{ "id": 0, "status": { /* 4 keys */ } }>
-- End --

-- Expect stderr --
Read 10 lines
Success
-- End --


Testing the syslog module without lines argument.

-- Testcase --
{% include("./cmd/cmd.uc", { TRACE_CALLS: "stdout" }) %}
-- End --

-- Environment --
cmd={ "command": "syslog", "payload": { } }
-- End --

-- Expect stdout --
[call] ubusconn.call object <log> method <read> args <{ "lines": 100, "oneshot": true, "stream": false }>
[call] ubusconn.call object <ucentral> method <result> args <{ "id": 0, "status": { /* 4 keys */ } }>
-- End --

-- Expect stderr --
Read 100 lines
Success
-- End --
