Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh steps dependency on ssh-forever #5

Open
jedi4ever opened this issue Oct 7, 2011 · 4 comments
Open

ssh steps dependency on ssh-forever #5

jedi4ever opened this issue Oct 7, 2011 · 4 comments

Comments

@jedi4ever
Copy link

Hi, I've had a go with cuken again. The current gem (not github) fails to setup some of the ssh-steps.
It for example

  1. complains about the "-b" option at the end of the ssh-forever call
  2. ssh-forever sets up a lot of keys etc. on the box (you don't want to change your target system in any way)
  3. is spawns shells
  4. is changes the .ssh/config files (I would not want that)

I'd love to use cuken for #veewee, but currently I'm still undecided given the ssh-forever dependency.

I see the value of running it just through the command cmd/cuken sweet,
but I think there room for the same implementation through net/ssh .

How would you feel about this? Do I make a new cuken/netssh include and create the same ssh steps?
Or I create a step called And I successfully sshrun or something similar.

thanks for feedback

@hedgehog
Copy link
Owner

hedgehog commented Oct 9, 2011

Ack. I think I'll be reverting to use Aruba's step.
Something like should work:

   When I interactively run `ssh ubuntu@chef.xyz.com -i /home/hedge/.ssh/xyz.pem -p 2222`
    And I type "sudo chmod 0644 /etc/chef/webui.pem"

It is true that the current gem on rubyforge/rubygems is not great. It does need to be released with passing spec and features files.
Fining the time right now is the issue.

@jedi4ever
Copy link
Author

The above syntax doesn't seem to work for me. It complains on the steps not found.

I tried this:

When I run `ssh me@myserver pwd` interactively
Then the stdout from "ssh me@myserver pwd" should contain "home"

The problem seems to be with the pseudo tty allocation, I tried -t for ssh but no avail.

Maybe I indeed need to try the github version?

@hedgehog
Copy link
Owner

hedgehog commented Oct 9, 2011

I've just pushed what I have to master. I'm stumped on why the Before hook is not defined, i.e. why cucumber does not seem to be loading.

To see the breakage run rake spec

Essentially I had to move the Aruba code into cuken to get step defs that were more, IMO, extensive, intuitive and consistent.

This seems to be working for me in my project, so am stumped why it is broken in cuken's spec run.

I don't have time to continue looking at this right now. Perhaps your fresh eyes might see somthing I have missed - and yes, I do ack the code is in need of a cleanup ;)

@hedgehog
Copy link
Owner

I think I found the missing require/include.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants