index d42044ba9e0b26899f4be3c9a5f1bf5c73e7dea7..67b97210058a5e44247f67a873794c5e364ffe42 100755 (executable)
echo "$output" | grep -F 'other.host.name' && exit 1
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts MATCHING attribute[architecture] = 'x42'" )"
+ -c "LOOKUP hosts MATCHING attribute['architecture'] = 'x42'" )"
echo "$output" \
| grep -F '"host1.example.com"' \
| grep -F '"host2.example.com"'
# When querying hosts that don't exist, expect a zero exit code.
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts MATCHING attribute[invalid] = 'none'" )"
+ -c "LOOKUP hosts MATCHING attribute['invalid'] = 'none'" )"
echo $output | grep -E '^\[\]$'
stop_sysdbd