teuton 2.3.1 → 2.3.2

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
  SHA256:
3
- metadata.gz: fbe8ad9c5430dd71ef38f136d6066965d6531b1e68e23f35cbc9b3ec31730690
4
- data.tar.gz: a0798325031d92db0e66e71152c9cbd20d776d043870067a6d79deda9d6930af
3
+ metadata.gz: 73bcbde38fc10f9c95d3ff64be195fa1edd2969faa9ffc27daf97f9e33c2f2a0
4
+ data.tar.gz: b5ee720adb7e12cc6d95d2e6a157242992cc0cf459ffc85ad2e595e769ce26a2
5
5
  SHA512:
6
- metadata.gz: 8a069613b2e5a73282f5eeb61c67f388f1d8c44a2dd785e7a1c44d760e31346db0868a1df8b2aa13b95d5bad0f36a9b64ec46566d61790e25993f625a9bcd7ed
7
- data.tar.gz: 7a7ef4a74dec5fb9ece8ad77714d9a4a3b76d810d2d173b95e7351513175af161bf19e22016167480ccc96307010a4fee7476d1885af458121cf6d20fbae00b8
6
+ metadata.gz: e670cbdaa78cca6e0ab16a71cbdff3c5668010856f361f4db0812cbc2f638f4f3855a87488ca538a84687389ccdf739f9cee7f3a48e864e72967e9034b37b8d1
7
+ data.tar.gz: f0701cb02f7ed5210f802c51e9f81d18ad4b526f511fd665004bc74d3b8a34a41907b3f6a16b3f25d64554c550c6f1693a6e6a65d381411c1b9225c42dc3ad5a
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  [![Gem Version](https://badge.fury.io/rb/teuton.svg)](https://badge.fury.io/rb/teuton)
3
3
  ![GitHub](https://img.shields.io/github/license/dvarrui/teuton)
4
- ![Gem](https://img.shields.io/gem/dv/teuton/2.3.0)
4
+ ![Gem](https://img.shields.io/gem/dv/teuton/2.3.1)
5
5
 
6
6
  # TEUTON
7
7
 
@@ -23,7 +23,7 @@ Teuton allow us:
23
23
 
24
24
  * [Installation](https://github.com/teuton-software/teuton/tree/master/docs/install/README.md)
25
25
  1. Install Ruby on your system.
26
- 1. `gem install teuton`, to install Teuton.
26
+ 1. Install Teuton with `gem install teuton`.
27
27
  * [Videos, blogs, news](docs/videos.md)
28
28
  * [Learning](docs/learn/README.md)
29
29
  * [Commands](docs/commands/README.md)
data/docs/learn/README.md CHANGED
@@ -17,8 +17,11 @@ Learn how to use Teuton language to write your own tests:
17
17
  - [Example 07 - Log](example-07-log.md)
18
18
  - [Example 08 - Readme](example-08-readme.md)
19
19
  - [Example 09 - Preserve](example-09-preserve.md)
20
- - Example 10 - Macros
21
- - Example 11 - Alias
20
+ - Example 10 - Result and Moodle
21
+ - Example 11 - Get vars
22
+ - Example 12 - Include
23
+ - Example 13 - Alias
24
+ - Example 14 - Macros
22
25
  - [Videos](videos.md)
23
26
 
24
27
  # Examples
@@ -69,7 +69,8 @@ class Case
69
69
  ip = @config.get("#{hostname}_ip".to_sym).to_s
70
70
  username = @config.get("#{hostname}_username".to_sym).to_s
71
71
  password = @config.get("#{hostname}_password".to_sym).to_s
72
- port = @config.get("#{hostname}_port".to_sym).to_i || 22
72
+ port = @config.get("#{hostname}_port".to_sym).to_i
73
+ port = 22 if port.zero?
73
74
 
74
75
  unless @config.get("#{hostname}_route".to_sym) == 'NODATA'
75
76
  # Reconfigure command with gateway. Example host1_route: IP.
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Teuton
3
- VERSION = '2.3.1'
3
+ VERSION = '2.3.2'
4
4
  APPNAME = 'teuton'
5
5
  GEMNAME = 'teuton'
6
6
  DOCKERNAME = "dvarrui/#{GEMNAME}"
data/lib/teuton.rb CHANGED
@@ -1,4 +1,3 @@
1
- # frozen_string_literal: true
2
1
 
3
2
  require_relative 'teuton/application'
4
3
  require_relative 'teuton/skeleton'
@@ -8,18 +7,13 @@ module Teuton
8
7
  Skeleton.create(path_to_new_dir)
9
8
  end
10
9
 
11
- # Run test
12
- # @param projectpath (String) Path to teuton test
13
- # @param options (Array) Array of input options
14
10
  def self.run(projectpath, options = {})
15
11
  Application.instance.add_input_params(projectpath, options)
16
12
  require_dsl_and_script('teuton/case_manager/dsl') # Define DSL keywords
17
13
  end
18
14
 
19
- # Create Readme file for a test
20
- # @param projectpath (String) Path to teuton test
21
- # @param options (Array) Array of input options
22
15
  def self.readme(projectpath, options = {})
16
+ # Create Readme file for a test
23
17
  Application.instance.add_input_params(projectpath, options)
24
18
  require_dsl_and_script('teuton/readme/readme') # Define DSL keywords
25
19
 
@@ -28,9 +22,6 @@ module Teuton
28
22
  readme.show
29
23
  end
30
24
 
31
- # Check teuton test syntax
32
- # @param projectpath (String) Path to teuton test
33
- # @param options (Array) Array of input options
34
25
  def self.check(projectpath, options = {})
35
26
  Application.instance.add_input_params(projectpath, options)
36
27
  require_dsl_and_script('teuton/check/laboratory') # Define DSL keywords
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.3.1
4
+ version: 2.3.2
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: 2022-05-28 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize