Comments (6)
This looks like a tough one.
Do you think you'd be able to help @Markcial?
from fishtape.
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
🍻
from fishtape.
Thanks @Markcial.
from fishtape.
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
from fishtape.
@edouard-lopez Wny did you close here? Did you solve the issue?
from fishtape.
@jorgebucaran Yes, the code above is running correctly
from fishtape.
Related Issues (20)
- Unsupported -a in fishtape 2.0.0 HOT 7
- Missing end to balance this function definition HOT 1
- Conditional test not running HOT 3
- Files not included in tab completions
- isatty is always 1 in tests
- Feature Request: oh-my-fish support HOT 1
- When a test fails fishtape return status 0 instead of 1
- Doesn't print report properly on Alpine Linux HOT 2
- Measure code coverage HOT 2
- How to debug? HOT 1
- Fishtape 3
- Exclude test file HOT 4
- Migrating from V2 to V3 HOT 4
- test vs tests for directory name HOT 5
- actual and expected
- Detect errors HOT 14
- Option to stylize output HOT 2
- Only try to execute all fish files found as tests HOT 3
- No way to specify fish arguments HOT 5
- feature request: before_each and after_each hooks HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fishtape.