Giter VIP home page Giter VIP logo

Comments (6)

jorgebucaran avatar jorgebucaran commented on June 12, 2024 1

This looks like a tough one.

Do you think you'd be able to help @Markcial?

from fishtape.

Markcial avatar Markcial commented on June 12, 2024 1

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.

jorgebucaran avatar jorgebucaran commented on June 12, 2024

Thanks @Markcial.

from fishtape.

edouard-lopez avatar edouard-lopez commented on June 12, 2024

The merged PR does it like:

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.

jorgebucaran avatar jorgebucaran commented on June 12, 2024

@edouard-lopez Wny did you close here? Did you solve the issue?

from fishtape.

edouard-lopez avatar edouard-lopez commented on June 12, 2024

@jorgebucaran Yes, the code above is running correctly

from fishtape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.