Closed edouard-lopez closed 6 years ago
This looks like a tough one.
Do you think you'd be able to help @Markcial?
I'd recommend to skip the ssh-add part by using mock library, it's not necessary to test 3rd parties implementations (except you want to test the integration).
if you still want to test integration i pushed a branch to my repo, feel free to check it or ask for more information about the mock library usage :D
:beers:
Thanks @Markcial.
test "$TEST - Add a given key"
(
eval (ssh-agent -c) > /dev/null
set old_keys_list (ssh-add -l | grep --count RSA)
ssh-keygen -f $path/.test -N '' >/dev/null
__add_keys $path/.test.pub
set new_keys_list (ssh-add -l | grep --count RSA)
math "$new_keys_list - $old_keys_list"
) = 1
end
@edouard-lopez Wny did you close here? Did you solve the issue?
@jorgebucaran Yes, the code above is running correctly
I'm having trouble testing a
ssh-add
command for the herrbischoff/fish-ssh-agent project. So far I've tested almost everything but I feel there is somefish
-related catch I'm not aware of.Source
add_keys.fish
;add_keys.fish
.What I'm testing
Error: what I got
Question
Am I in some special context where
ssh-agent
is unavailable ? Or is it something else?