index 34e7c549b9005a067bb9f643981e749089614f03..95dea02147d903f21c3ecc07afc3802aba9f94ec 100755 (executable)
sleep 3
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts MATCHING ANY metric = 'foo/bar/qux'" )"
+ -c "LOOKUP hosts MATCHING ANY metric.name = 'foo/bar/qux'" )"
echo "$output" \
| grep -F '"some.host.name"' \
| grep -F '"other.host.name"'
echo "$output" | grep -F 'host2.example.com' && exit 1
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts MATCHING ANY service = 'mock service'" )"
+ -c "LOOKUP hosts MATCHING ANY service.name = 'mock service'" )"
echo "$output" \
| grep -F '"some.host.name"' \
| grep -F '"host1.example.com"' \
echo "$output" | grep -F 'some.host.name' && exit 1
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts MATCHING ANY attribute != 'architecture'" )"
+ -c "LOOKUP hosts MATCHING ANY attribute.name != 'architecture'" )"
echo "$output" \
| grep -F '"localhost"' \
| grep -F '"other.host.name"' \
echo "$output" | grep -F 'some.host.name' && exit 1
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts MATCHING ALL attribute != 'architecture'" )"
+ -c "LOOKUP hosts MATCHING ALL attribute.name != 'architecture'" )"
echo "$output" \
| grep -F '"some.host.name"' \
| grep -F '"localhost"'
echo "$output" | grep -F 'host2.example.com' && exit 1
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts MATCHING ANY service = 'sysdbd'" )"
+ -c "LOOKUP hosts MATCHING ANY service.name = 'sysdbd'" )"
echo "$output" | grep -F '"localhost"'
echo "$output" | grep -F 'some.host.name' && exit 1
echo "$output" | grep -F 'other.host.name' && exit 1