Code

store: Let JSON formatter know about the to-be-formatted object type.
[sysdb.git] / t / integration / matching.sh
index 751b22ba9c00f58325bc2956bd5180278fb2eb13..c96f7abea9c94cc8432a3ed27ff39268b3c60cd6 100755 (executable)
@@ -77,6 +77,15 @@ echo "$output" | grep -F 'some.host.name' && exit 1
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
        -c "LOOKUP hosts MATCHING ANY attribute != 'architecture'" )"
+echo "$output" \
+       | grep -F '"localhost"' \
+       | grep -F '"other.host.name"' \
+       | grep -F '"host1.example.com"' \
+       | grep -F '"host2.example.com"'
+echo "$output" | grep -F 'some.host.name' && exit 1
+
+output="$( run_sysdb -H "$SOCKET_FILE" \
+       -c "LOOKUP hosts MATCHING ALL attribute != 'architecture'" )"
 echo "$output" \
        | grep -F '"some.host.name"' \
        | grep -F '"localhost"'