Sha256: ca67277920ff37142d7e57a5e19636303745c1f5260f62e73f989fd6ca23c66c

Contents?: true

Size: 922 Bytes

Versions: 8

Compression:

Stored size: 922 Bytes

Contents

# http://stackoverflow.com/questions/216202/why-does-an-ssh-remote-command-get-fewer-environment-variables-then-when-run-manu

Given /^a veeweebox was build$/ do
  @environment=Veewee::Environment.new()
  @provider_name=ENV['VEEWEE_PROVIDER']
  @definition_name=ENV['VEEWEE_BOXNAME']
  @box_name=ENV['VEEWEE_BOXNAME']
  @box=@environment.providers[@provider_name].get_box(@box_name)
end

When /^I sudorun "([^\"]*)" over ssh$/ do |command|
  @box.exec("echo '#{command}' > /tmp/validation.sh && chmod a+x /tmp/validation.sh")
  @sshresult=@box.exec(@box.sudo("/tmp/validation.sh"))
end

When /^I run "([^\"]*)" over ssh$/ do |command|
  @sshresult=@box.exec(command, {:exitcode => '*'})
end

Then /^I should see the provided username in the output$/ do
  @sshresult.stdout.should =~ /#{ENV["VEEWEE_SSH_USER"]}/
end

Then /^I should see "([^\"]*)" in the output$/ do |string|
  @sshresult.stdout.should =~ /#{string}/
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
veewee-atlassian-0.3.11 validation/features/steps/veewee_steps.rb
veewee-0.3.7 validation/features/steps/veewee_steps.rb
veewee-0.3.6 validation/features/steps/veewee_steps.rb
veewee-0.3.5 validation/features/steps/veewee_steps.rb
veewee-0.3.4 validation/features/steps/veewee_steps.rb
veewee-0.3.3 validation/features/steps/veewee_steps.rb
veewee-0.3.2 validation/features/steps/veewee_steps.rb
veewee-0.3.1 validation/features/steps/veewee_steps.rb