teuton 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/changelog/v2.4.md +6 -0
- data/lib/teuton/case_manager/case/runner.rb +6 -3
- data/lib/teuton/cli.rb +7 -9
- data/lib/teuton/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23e6309b8f112199998d8afd4517a06ec5b80ec4d68421ef67ef87b3c63684ef
|
4
|
+
data.tar.gz: b0c17aefadc82be10bc1c52de45fdaa65f070046bc30bad7a0416803c62c5daf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc3e324bb363b77302758a8210e02a6258d94e99c0797806c2e2f02894a970a6ca6977984abcc7cd647982c9752b7e5799c762684ca14131d06a1260ecb49eab
|
7
|
+
data.tar.gz: b0bed729989027e9916b214b7421f88a172ef522197d1a5f589c2a5424f54688d5ea3695a3cded4410f2a68d63d5ef1687374b740b90ce91450558f03a1bcc37
|
data/docs/changelog/v2.4.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [2.4.5]
|
2
|
+
|
3
|
+
-- FIX: "expect_nothing" was always TRUE when SSH/Telnet connections fails!
|
4
|
+
Now when SSH/Telnet connections fails result contains "SSH: NO CONNECTION!"
|
5
|
+
So "expect_nothing" will fail.
|
6
|
+
|
1
7
|
## [2.4.4]
|
2
8
|
|
3
9
|
-- Modify: teuton check output colors and exit codes.
|
@@ -98,8 +98,10 @@ class Case
|
|
98
98
|
non_interactive: true
|
99
99
|
)
|
100
100
|
end
|
101
|
-
if @sessions[hostname].instance_of? Net::SSH::Connection::Session
|
102
|
-
|
101
|
+
text = if @sessions[hostname].instance_of? Net::SSH::Connection::Session
|
102
|
+
@sessions[hostname].exec!(@action[:command])
|
103
|
+
else
|
104
|
+
"SSH: NO CONNECTION!"
|
103
105
|
end
|
104
106
|
rescue Errno::EHOSTUNREACH
|
105
107
|
@sessions[hostname] = :nosession
|
@@ -148,10 +150,11 @@ class Case
|
|
148
150
|
# "Prompt" => Regexp.new(username[1, 40]))
|
149
151
|
# "Prompt" => /[$%#>] \z/n)
|
150
152
|
h.login(username, password)
|
151
|
-
text = ""
|
152
153
|
h.cmd(@action[:command]) { |i| text << i }
|
153
154
|
h.close
|
154
155
|
@sessions[hostname] = :ok
|
156
|
+
else
|
157
|
+
text = "TELNET: NO CONNECTION!"
|
155
158
|
end
|
156
159
|
rescue Net::OpenTimeout
|
157
160
|
@sessions[hostname] = :nosession
|
data/lib/teuton/cli.rb
CHANGED
@@ -19,19 +19,17 @@ class CLI < Thor
|
|
19
19
|
option :cname, type: :string
|
20
20
|
option :cpath, type: :string
|
21
21
|
desc "check [OPTIONS] DIRECTORY", "Check test and config file content"
|
22
|
-
long_desc
|
22
|
+
long_desc <<~LONGDESC
|
23
|
+
|
24
|
+
(1) teuton check PATH/TO/DIR , Check content of start.rb and config.yaml files.
|
23
25
|
|
24
|
-
|
25
|
-
, Check content of start.rb and config.yaml files.
|
26
|
+
(2) teuton check PATH/TO/DIR --cname=demo , Check content of start.rb and demo.yaml files:
|
26
27
|
|
27
|
-
|
28
|
-
, Check content of start.rb and demo.yaml files.
|
28
|
+
(3) teuton check PATH/TO/DIR --panelconfig , Only show config file recomendations
|
29
29
|
|
30
|
-
|
31
|
-
, Check content of foo.rb and foo.yaml files.
|
30
|
+
(4) teuton check PATH/TO/DIR/foo.rb , Check content of foo.rb and foo.yaml files.
|
32
31
|
|
33
|
-
|
34
|
-
, Check content of foo.rb and demo.yaml files.
|
32
|
+
(5) teuton check PATH/TO/DIR/foo.rb --cname=demo , Check content of foo.rb and demo.yaml files.
|
35
33
|
|
36
34
|
LONGDESC
|
37
35
|
def check(projectpath)
|
data/lib/teuton/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teuton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Vargas Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|