X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fintegration%2Fmatching.sh;h=95dea02147d903f21c3ecc07afc3802aba9f94ec;hb=8b3cabcc3ff88a9b676bb29aa1f14f1036ef19c8;hp=8b25ed3cc062627115f32bdb45e62abde3a54b66;hpb=499930e768ea550803018bc938783056e5921aa5;p=sysdb.git diff --git a/t/integration/matching.sh b/t/integration/matching.sh index 8b25ed3..95dea02 100755 --- a/t/integration/matching.sh +++ b/t/integration/matching.sh @@ -49,7 +49,7 @@ wait_for_sysdbd 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"' @@ -58,7 +58,7 @@ echo "$output" | grep -F 'host1.example.com' && exit 1 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"' \ @@ -76,7 +76,7 @@ echo "$output" | grep -F 'other.host.name' && exit 1 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"' \ @@ -85,7 +85,7 @@ echo "$output" \ 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"' @@ -94,7 +94,7 @@ echo "$output" | grep -F 'host1.example.com' && exit 1 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 @@ -117,3 +117,4 @@ echo $output | grep -E '^\[\]$' stop_sysdbd +# vim: set tw=78 sw=4 ts=4 noexpandtab :