mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
This is the result of: shfmt -w -i 4 -sr -l test/ Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
17 lines
499 B
Bash
17 lines
499 B
Bash
test_syslog_socket() {
|
|
incus config set core.syslog_socket=true
|
|
incus monitor --type=network-acl > "${TEST_DIR}/ovn.log" &
|
|
monitorOVNPID=$!
|
|
|
|
sleep 1
|
|
echo "<29> ovs|ovn-controller|00017|acl_log(foo)|INFO|name=\"some-acl\"" | socat - unix-sendto:"${INCUS_DIR}/syslog.socket"
|
|
|
|
sleep 1
|
|
|
|
kill -9 ${monitorOVNPID} || true
|
|
grep -qF "type: network-acl" "${TEST_DIR}/ovn.log"
|
|
grep -qF "name=\"some-acl\"" "${TEST_DIR}/ovn.log"
|
|
|
|
incus config unset core.syslog_socket
|
|
}
|