From 2110c5674279be2a4fb080da2b9afdceb78b66c9 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 21 Oct 2014 07:57:19 +0200 Subject: [PATCH] t/: Let tests use ' IN .backend'. --- t/integration/filter.sh | 4 ++-- t/unit/frontend/parser_test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 " -- 2.30.2