add the rest of the test list (all we've thought of)

This commit is contained in:
Daniel Barlow 2024-04-21 11:22:26 +01:00
parent 648382f64a
commit 50de1b090f

View file

@ -100,5 +100,24 @@ MINOR=17")
(expect= (# (db:find {:devname "sda" :devtype "dosk"})) 0))) (expect= (# (db:find {:devname "sda" :devtype "dosk"})) 0)))
;;; tests for indices
(example "when I add a device with $attributes major minor foo bar baz,
it is added to indices for foo bar baz but not major minor")
(example "a removed device can no longer be found by looking in any index")
(example "when I query with multiple attributes, the search is performed using the most specific attribute"
;; (= the attribute whose
;; value at this key has fewest elements)
)
;;; tests for subscriptions
(example "I can subscribe to some search terms")
(example "my callback is invoked when devices matching those terms are
added/changed/removed")
(if failed (os.exit 1) (print "OK")) (if failed (os.exit 1) (print "OK"))