Skip to content

Commit 38d3558

Browse files
committed
Add a test for :agent-forwarding for the ssh function
1 parent 3ef1d65 commit 38d3558

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/clj_ssh/ssh_test.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ list, Alan Dipert and MeikelBrandmeyer."
329329
(let [result (ssh "localhost" :in "tty -s" :pty true :username (username))]
330330
(is (= 0 (first result))))
331331
(let [result (ssh "localhost" :in "tty -s" :pty false :username (username))]
332-
(is (= 1 (first result)))))
332+
(is (= 1 (first result))))
333+
(let [result (ssh "localhost" :in "ssh-add -l" :agent-forwarding true :username (username))]
334+
(is (zero? (first result)))))
333335
(with-default-session-options {:strict-host-key-checking :no}
334336
(with-default-identity (private-key-path)
335337
(let [result (ssh "localhost" :in "echo hello" :username (username))]

0 commit comments

Comments
 (0)