1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00
Files
incus/test/suites/syslog.sh
Stéphane Graber 60b0a97720 tests: Standardize indentation
This is the result of: shfmt -w -i 4 -sr -l test/

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-07-31 15:15:11 -04:00

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
}