From: Sebastian Harl Date: Tue, 21 Oct 2014 05:57:19 +0000 (+0200) Subject: t/: Let tests use ' IN .backend'. X-Git-Tag: sysdb-0.6.0~86 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2110c5674279be2a4fb080da2b9afdceb78b66c9;p=sysdb.git t/: Let tests use ' IN .backend'. --- diff --git a/t/integration/filter.sh b/t/integration/filter.sh index 025cd57..fa21dd3 100755 --- a/t/integration/filter.sh +++ b/t/integration/filter.sh @@ -64,7 +64,7 @@ output="$( run_sysdb -H "$SOCKET_FILE" \ 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"' \ @@ -72,7 +72,7 @@ echo "$output" \ | 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 diff --git a/t/unit/frontend/parser_test.c b/t/unit/frontend/parser_test.c index 134b50c..075a4bc 100644 --- a/t/unit/frontend/parser_test.c +++ b/t/unit/frontend/parser_test.c @@ -361,8 +361,8 @@ START_TEST(test_parse_matcher) { ".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 "