aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/net
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/net')
-rw-r--r--test/lisp/net/secrets-tests.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/lisp/net/secrets-tests.el b/test/lisp/net/secrets-tests.el
index fcc3a2d3e6e..9a61bca4351 100644
--- a/test/lisp/net/secrets-tests.el
+++ b/test/lisp/net/secrets-tests.el
@@ -31,8 +31,9 @@
31 :expected-result (if secrets-enabled :passed :failed) 31 :expected-result (if secrets-enabled :passed :failed)
32 (should secrets-enabled) 32 (should secrets-enabled)
33 (should (dbus-ping :session secrets-service)) 33 (should (dbus-ping :session secrets-service))
34 ;; We do not test when there's an open session. 34
35 (should (secrets-empty-path secrets-session-path))) 35 ;; Exit.
36 (secrets--test-close-all-sessions))
36 37
37(defun secrets--test-get-all-sessions () 38(defun secrets--test-get-all-sessions ()
38 "Return all object paths for existing secrets sessions." 39 "Return all object paths for existing secrets sessions."
@@ -88,6 +89,8 @@
88 89
89 (unwind-protect 90 (unwind-protect
90 (progn 91 (progn
92 (should (secrets-open-session))
93
91 ;; There must be at least the collections "Login" and "session". 94 ;; There must be at least the collections "Login" and "session".
92 (should (member "Login" (secrets-list-collections))) 95 (should (member "Login" (secrets-list-collections)))
93 (should (member "session" (secrets-list-collections))) 96 (should (member "session" (secrets-list-collections)))
@@ -149,6 +152,8 @@
149 152
150 (unwind-protect 153 (unwind-protect
151 (let (item-path) 154 (let (item-path)
155 (should (secrets-open-session))
156
152 ;; There shall be no items in the "session" collection. 157 ;; There shall be no items in the "session" collection.
153 (should-not (secrets-list-items "session")) 158 (should-not (secrets-list-items "session"))
154 ;; There shall be items in the "Login" collection. 159 ;; There shall be items in the "Login" collection.
@@ -208,6 +213,8 @@
208 213
209 (unwind-protect 214 (unwind-protect
210 (progn 215 (progn
216 (should (secrets-open-session))
217
211 ;; There shall be no items in the "session" collection. 218 ;; There shall be no items in the "session" collection.
212 (should-not (secrets-list-items "session")) 219 (should-not (secrets-list-items "session"))
213 220