@@ -97,14 +97,17 @@ Running tedge-flows
9797
9898Consuming messages from a process stdout
9999 # Assuming the flow journalctl-follow.toml has been properly installed
100- Execute Command (sleep 1; systemctl restart tedge-agent)&
101- Execute Command tedge mqtt sub log/journalctl-follow --duration 2s | grep 'INFO Runtime: Running'
100+ ${test_start } Get Unix Timestamp
101+ Restart Service tedge-agent
102+ ${messages } Should Have MQTT Messages topic=log/journalctl-follow minimum=1 date_from=${test_start }
103+ Should Not Be Empty ${messages[0] } msg=Output should not be empty lines
102104
103105Consuming messages from a process stdout, periodically
104106 # Assuming the flow journalctl-cursor.toml has been properly installed
105- Execute Command (sleep 1; systemctl restart tedge-agent)&
106- Execute Command tedge mqtt sub log/journalctl-cursor --duration 2s | grep 'INFO Runtime: Running'
107- Execute Command tedge mqtt sub log/journalctl-cursor --duration 1s | grep 'No entries'
107+ ${test_start } Get Unix Timestamp
108+ Restart Service tedge-agent
109+ ${messages } Should Have MQTT Messages topic=log/journalctl-cursor minimum=10 date_from=${test_start }
110+ Should Not Be Empty ${messages[0] } msg=Output should not be empty lines
108111
109112Consuming messages from the tail of file
110113 # Assuming the flow tail-named-pipe.toml has been properly installed
@@ -118,7 +121,8 @@ Consuming messages from a file, periodically
118121 Execute Command echo world >/tmp/file.input
119122 Execute Command tedge mqtt sub test/file/input --duration 1s | grep world
120123 Execute Command rm /tmp/file.input
121- Execute Command tedge mqtt sub test/file/input --duration 1s | grep 'Error in /etc/tedge/flows/read-file-periodically.toml'
124+ Execute Command
125+ ... tedge mqtt sub test/file/input --duration 1s | grep 'Error in /etc/tedge/flows/read-file-periodically.toml'
122126 Execute Command echo 'hello world' >/tmp/file.input
123127 Execute Command tedge mqtt sub test/file/input --duration 1s | grep 'hello world'
124128
0 commit comments