summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b66b80)
raw | patch | inline | side by side (parent: 8b66b80)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 21 Oct 2014 05:57:19 +0000 (07:57 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 21 Oct 2014 05:57:19 +0000 (07:57 +0200) |
t/integration/filter.sh | patch | blob | history | |
t/unit/frontend/parser_test.c | patch | blob | history |
index 025cd57911f81b1cc1c1310bba92fbfda2698d79..fa21dd364833f07d5c11586dedb477ea2666103e 100755 (executable)
--- a/t/integration/filter.sh
+++ b/t/integration/filter.sh
echo $output | grep -E '^\[\]$'
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts FILTER .backend = 'backend::mock_plugin'" )"
+ -c "LOOKUP hosts FILTER 'backend::mock_plugin' IN .backend" )"
echo "$output" \
| grep -F '"host1.example.com"' \
| grep -F '"host2.example.com"' \
| grep -F '"other.host.name"' \
| grep -F '"some.host.name"'
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts FILTER .backend = 'invalid'" )"
+ -c "LOOKUP hosts FILTER 'invalid' IN .backend" )"
echo $output | grep -E '^\[\]$'
stop_sysdbd
index 134b50cc54cb5c499d878210ca66013274faa287..075a4bc0e475791fba0cf8ace1ebc7de60eb206e 100644 (file)
{ ".Last_Update >= 24D", -1, MATCHER_GE },
{ ".age > 1M", -1, MATCHER_GT },
{ ".age != 20Y", -1, MATCHER_NOT },
- { ".backend != 'be'", -1, MATCHER_NOT },
{ ".age <= 2 * .interval", -1, MATCHER_LE },
+ { "'be' IN .backend", -1, MATCHER_IN },
/* check operator precedence */
{ "host = 'name' OR "