X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fintegration%2Ffilter.sh;h=3ddb9234fef6a609bd5f5bf825088187de127cfa;hb=a248a2d506d3caf06d3cf5284231df6fc583087e;hp=ddcf78532bbee17d85852c367b95f0155a15ab14;hpb=c679bdcebdb5212071f32cad6b9ec1497a99cb49;p=sysdb.git diff --git a/t/integration/filter.sh b/t/integration/filter.sh index ddcf785..3ddb923 100755 --- a/t/integration/filter.sh +++ b/t/integration/filter.sh @@ -38,7 +38,8 @@ Listen "$SOCKET_FILE" PluginDir "$PLUGIN_DIR" Interval 2 -LoadBackend mock_plugin +LoadPlugin "store::memory" +LoadBackend "mock_plugin" EOF @@ -49,7 +50,7 @@ wait_for_sysdbd sleep 3 output="$( run_sysdb -H "$SOCKET_FILE" \ - -c "LOOKUP hosts MATCHING ANY attribute != 'architecture' + -c "LOOKUP hosts MATCHING ANY attribute.name != 'architecture' FILTER age >= 0s" )" echo "$output" \ | grep -F '"localhost"' @@ -59,7 +60,7 @@ echo "$output" | grep -F 'some.host.name' && exit 1 #echo "$output" | grep -F 'host2.example.com' && exit 1 output="$( run_sysdb -H "$SOCKET_FILE" \ - -c "LOOKUP hosts MATCHING ANY attribute != 'architecture' + -c "LOOKUP hosts MATCHING ANY attribute.name != 'architecture' FILTER last_update < 2Y" )" echo $output | grep -E '^\[\]$'