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 +4 -4
- data/.gitignore +1 -0
- data/cucumber-sshd.gemspec +4 -1
- data/features/sshd_tag.feature +30 -0
- data/features/steps/output_steps.rb +11 -0
- data/features/steps/run_steps.rb +7 -0
- data/features/support/env.rb +2 -0
- data/lib/cucumber/sshd/cucumber.rb +0 -2
- data/lib/cucumber/sshd/server.rb +2 -0
- data/lib/cucumber/sshd/version.rb +1 -1
- metadata +35 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de014d741ac9657008dd20dc78819a6e2e3fc1d1
|
4
|
+
data.tar.gz: 6de8ac4f78669f835b8e3047c4254d2f09f64c52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be64c575b41756ddac5f06518a58f365ad14f19f787cd198e4d2f1e262dc58f4917d40fba5f0d7e2ece78100d2cbc63c9603e05279ff4274256541e609c08a57
|
7
|
+
data.tar.gz: af0db945ece516ebf8f50a5bec5de48ded86baf8b40566929077e50b4a153f9aadf62cf67241b2e6d1ff806289b75110c6ae8eb1c4caab89e0a051cab2bb87e1
|
data/.gitignore
CHANGED
data/cucumber-sshd.gemspec
CHANGED
@@ -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.
|
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
|
data/lib/cucumber/sshd/server.rb
CHANGED
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.
|
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.
|
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.
|
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
|