cucumber-sshd 0.2.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8c42d85efd2d4544f53874155c6783962b787bf
4
- data.tar.gz: 1f97b487978497e8fed3344cdeb1f44561fa74e5
3
+ metadata.gz: de014d741ac9657008dd20dc78819a6e2e3fc1d1
4
+ data.tar.gz: 6de8ac4f78669f835b8e3047c4254d2f09f64c52
5
5
  SHA512:
6
- metadata.gz: 0ba0edca046f6168f43fa4ddf6e87b2ac7ae0bce656f969b0252823ab5a559e32913dc844060de03587369639b8165d30f568c4eaf54e0beac6a23a50bd527e1
7
- data.tar.gz: 305688bb83a5a7060b55295b939065a2e07f2f853472797d2582204509d8c96137d06b45c52d89b30d6da503d66754c58f324546456f7a176de0d571b5c12108
6
+ metadata.gz: be64c575b41756ddac5f06518a58f365ad14f19f787cd198e4d2f1e262dc58f4917d40fba5f0d7e2ece78100d2cbc63c9603e05279ff4274256541e609c08a57
7
+ data.tar.gz: af0db945ece516ebf8f50a5bec5de48ded86baf8b40566929077e50b4a153f9aadf62cf67241b2e6d1ff806289b75110c6ae8eb1c4caab89e0a051cab2bb87e1
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  /Gemfile-custom.rb
2
2
  /Gemfile.lock
3
+ /tmp/
@@ -12,5 +12,8 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = `git ls-files`.split $/
14
14
 
15
- s.add_dependency 'aruba', '~> 0.5'
15
+ s.add_dependency 'aruba', '~> 0.6'
16
+
17
+ s.add_development_dependency 'cucumber', '~> 2.0'
18
+ s.add_development_dependency 'rake', '~> 10.4'
16
19
  end
@@ -0,0 +1,30 @@
1
+ Feature: @sshd cucumber tag
2
+
3
+ @sshd
4
+ Scenario: allows connection to a running sshd
5
+ When I run "echo \$SSH_CONNECTION" remotly
6
+ Then the output must contain "2222"
7
+
8
+ @sshd
9
+ Scenario: logs the user in aruba current directory
10
+ When I run "pwd" remotly
11
+ Then the output must be aruba current directory
12
+
13
+ @sshd
14
+ Scenario: allows sftp usage
15
+ When I run "bye" sftp command remotly
16
+ Then the output must contain "Connected"
17
+
18
+ @sshd
19
+ Scenario: sources .ssh/rc on new session
20
+ Given a file named ".ssh/rc" with:
21
+ """
22
+ echo some message
23
+ """
24
+ When I run "true" remotly
25
+ Then the output must contain "some message"
26
+
27
+ @sshd
28
+ Scenario: silences sshd output
29
+ When I run "true" remotly
30
+ Then the output must be empty
@@ -0,0 +1,11 @@
1
+ Then /^the output must contain "([^"]+)"$/ do |content|
2
+ assert_partial_output content, all_output
3
+ end
4
+
5
+ Then /^the output must be empty$/ do
6
+ assert_exact_output '', all_output
7
+ end
8
+
9
+ Then /^the output must be aruba current directory$/ do
10
+ assert_exact_output File.expand_path(current_dir), all_output.chomp
11
+ end
@@ -0,0 +1,7 @@
1
+ When /^I run "([^"]+)" remotly$/ do |command|
2
+ run_simple "ssh -F .ssh/config some_host.test #{command}", true
3
+ end
4
+
5
+ When /^I run "([^"]+)" sftp command remotly$/ do |command|
6
+ run_simple "sh -c 'echo #{command} | sftp -F .ssh/config some_host.test'", true
7
+ end
@@ -0,0 +1,2 @@
1
+ require 'aruba/cucumber'
2
+ require 'cucumber/sshd/cucumber'
@@ -14,8 +14,6 @@ Before('@sshd') do
14
14
  else
15
15
  @_sshd = start_server.call
16
16
  end
17
-
18
- ENV['HOME'] = File.expand_path current_dir
19
17
  end
20
18
 
21
19
  After('@sshd') do
@@ -1,3 +1,5 @@
1
+ require 'aruba/api'
2
+
1
3
  module Cucumber
2
4
  module SSHD
3
5
  class Server
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module SSHD
3
- VERSION = '0.2.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-sshd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan
@@ -16,14 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.5'
26
+ version: '0.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cucumber
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.4'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.4'
27
55
  description: Run an sshd server for scenarios tagged with @sshd
28
56
  email: tj@a13.fr
29
57
  executables: []
@@ -35,6 +63,10 @@ files:
35
63
  - LICENSE
36
64
  - README.md
37
65
  - cucumber-sshd.gemspec
66
+ - features/sshd_tag.feature
67
+ - features/steps/output_steps.rb
68
+ - features/steps/run_steps.rb
69
+ - features/support/env.rb
38
70
  - lib/cucumber/sshd.rb
39
71
  - lib/cucumber/sshd/cucumber.rb
40
72
  - lib/cucumber/sshd/server.rb