teuton 2.3.5 → 2.3.6
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/README.md +1 -1
- data/docs/dsl/execution/send.md +11 -11
- data/lib/teuton/case_manager/case/dsl/send.rb +2 -1
- data/lib/teuton/report/close.rb +0 -5
- data/lib/teuton/report/formatter/txt_formatter.rb +0 -2
- data/lib/teuton/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a57c245ece6497c75d1132e50cfaa722be5fae7df918ffa8b0af4e109f600cee
|
4
|
+
data.tar.gz: 8159ac8b86278ada1e0fac691d91b37d146cb5c336ec2f4babe729d8150063ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28594d840fe733c4fbc0d28b6d81610ccea3011c5d8713ac279b85280ece74b74f37670125edab21eae0a1f93c740a882784757c81c792a2327336f03c995233
|
7
|
+
data.tar.gz: 7f19810c16c1d3ad78b41de32a2b3a6f85dbff280972b9f6193d5b4ab86f470662357c7a29d2f5ae310246b7b6c3dfec3da95f2aab927c6f10e775bed8e0cb77
|
data/README.md
CHANGED
data/docs/dsl/execution/send.md
CHANGED
@@ -20,7 +20,7 @@ end
|
|
20
20
|
|
21
21
|
* `send` instruction must be execute after `export`. Reports must be generated before send them, of course.
|
22
22
|
* `host1`, it' the label that identified remote host. This information must be configured into config file.
|
23
|
-
* `send :
|
23
|
+
* `send copy_to: :host1`, copy every case resport file into temp directory on remote host `host1`.
|
24
24
|
|
25
25
|
## Example
|
26
26
|
|
@@ -38,8 +38,8 @@ Example 2: send report file to remote "./Desktop" folder.
|
|
38
38
|
|
39
39
|
| Action | Description |
|
40
40
|
| ------ | ----------- |
|
41
|
-
| `send :
|
42
|
-
| `send :
|
41
|
+
| `send copy_to: :host1, remote_dir: "/home/david"` | Reports will be saved into "/home/david" directory in remote machine `host1`. |
|
42
|
+
| `send copy_to: :host1, prefix: "samba_"` | Case report will be save into temp directory on every host `host1`, named as `samba_case-XX.txt`. |
|
43
43
|
|
44
44
|
> Teuton version 2.0.x
|
45
45
|
> * By default, `send` only works when remote OS type is UNIX base, like GNU/Linux, MACOS, BSD, etc.
|
@@ -49,14 +49,14 @@ Example 2: send report file to remote "./Desktop" folder.
|
|
49
49
|
|
50
50
|
If you export several files using differents output formats, you will use several `export` orders. Then when invoke `send` order, this will send the last exported file.
|
51
51
|
|
52
|
-
In this example we export
|
52
|
+
In this example we export html and txt files, but only send txt to remote hosts:
|
53
53
|
|
54
54
|
```ruby
|
55
55
|
start do
|
56
|
-
export :
|
57
|
-
export :
|
56
|
+
export format: :json
|
57
|
+
export format: :txt
|
58
58
|
|
59
|
-
send :
|
59
|
+
send copy_to: :host1
|
60
60
|
end
|
61
61
|
```
|
62
62
|
|
@@ -64,10 +64,10 @@ If you want to send every exported output file, then do like this:
|
|
64
64
|
|
65
65
|
```ruby
|
66
66
|
start do
|
67
|
-
export :
|
68
|
-
send :
|
67
|
+
export format: :html
|
68
|
+
send copy_to: :host1
|
69
69
|
|
70
|
-
export :
|
71
|
-
send :
|
70
|
+
export format: :txt
|
71
|
+
send copy_to: :host1
|
72
72
|
end
|
73
73
|
```
|
@@ -21,7 +21,8 @@ module DSL
|
|
21
21
|
port = get((host + '_port').to_sym).to_i
|
22
22
|
port = 22 if port.zero?
|
23
23
|
|
24
|
-
filename = @report.filename
|
24
|
+
filename = "#{@report.filename}.#{@report.format.to_s}"
|
25
|
+
filename = "#{@report.filename}.txt" if @report.format == :colored_text
|
25
26
|
localfilepath = File.join(@report.output_dir, filename)
|
26
27
|
filename = args[:prefix].to_s + filename if args[:prefix]
|
27
28
|
|
data/lib/teuton/report/close.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
1
|
|
3
2
|
# Close Show methods for Report class.
|
4
3
|
class Report
|
@@ -9,8 +8,6 @@ class Report
|
|
9
8
|
# * good_weight,d
|
10
9
|
# * fail_weight
|
11
10
|
# * fail_counter
|
12
|
-
# rubocop:disable Metrics/AbcSize
|
13
|
-
# rubocop:disable Metrics/MethodLength
|
14
11
|
def close
|
15
12
|
app = Application.instance
|
16
13
|
max = 0.0
|
@@ -40,6 +37,4 @@ class Report
|
|
40
37
|
@tail[:grade] = (100.0 * i).round
|
41
38
|
@tail[:grade] = 0 if @tail[:unique_fault].positive?
|
42
39
|
end
|
43
|
-
# rubocop:enable Metrics/AbcSize
|
44
|
-
# rubocop:enable Metrics/MethodLength
|
45
40
|
end
|
data/lib/teuton/version.rb
CHANGED