teuton 2.1.6 → 2.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09664dae046784bbf47b175c772f3d84f1c39809c71427d1faa1e42179e7d661'
4
- data.tar.gz: c8f25fad541f01201493588ab306a2f5e10658aa31986a3601ed7293f935d4e1
3
+ metadata.gz: 4f3afa907473fea0072b32db4ce5b6d8fd2f93d1e48c0937fd37e5c74756dfb3
4
+ data.tar.gz: 44065354ff9987c8e92477767064e5a62afea9f9da03eecf49e71e6c116ddddc
5
5
  SHA512:
6
- metadata.gz: 89449ba9163c7ecf5b8d18388705c2e49e0d733941704d2a06e1cb567361fa457cff598a00021232872ff2e29c8709af002daa37efd6f75f6dc9b5bfd63ef88d
7
- data.tar.gz: 2f749d0647e169de1936cba6f94e9a35f9357f5e3bec5f25e85ac15e793de628440a94a3a6f5c319d975fd1d80e7f9e4ae0fdd1a5ae7c957626da8b3bfe09be1
6
+ metadata.gz: cbab8d53ac2945943316c789e6efb5e83bc9c2dd4435a6f7c9c231d7bd4d8bfb9e5a1e27fff4f8d7cd7c82536f85fe5d2cd46234c02b091e1d6c3b75557c04b5
7
+ data.tar.gz: e8088367c4d4182c5cd50cce7aad58bae68df6303356a9daa94980cf0db97307244de09254879cf59f29de0aee2506bfd577f9001e89c8da92e42a33253e8a7e
data/bin/teuton CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require_relative 'teuton/cli'
3
+ require 'teuton/cli'
4
+
4
5
  CLI.start(ARGV)
@@ -1,5 +1,8 @@
1
+ [<< back](../../README.md)
1
2
 
2
- There are different Teuton [Modes of use](modes_of_use.md). For every mode there are 2 node types and every node has their own installation script:
3
+ # Teuton installation
4
+
5
+ There are different Teuton [Modes of use](modes_of_use.md). For every mode there are 2 node types and every node has their own installation:
3
6
 
4
7
  * **T-node**: This host has installed Teuton software.
5
8
  * **S-node**: This host has installed SSH server.
@@ -1,5 +1,8 @@
1
+ [<< back](README.md)
1
2
 
2
- There are diferents Teuton [Modes of use](Modes of use). For every mode there are 2 node typesm and every node has their own installation script:
3
+ # Teuton installation for developers
4
+
5
+ There are diferents Teuton [Modes of use](Modes of use). For every mode there are 2 node types and every node has their own installation:
3
6
 
4
7
  * **T-node**: This host has installed Teuton software.
5
8
  * **S-node**: This host has installed SSH server.
@@ -1,3 +1,6 @@
1
+ [<< back](README.md)
2
+
3
+ # Teuton installation using scripts
1
4
 
2
5
  There are different Teuton [Modes of use](modes_of_use.md). For every mode there are 2 node types and every node has their own installation script:
3
6
 
@@ -1,8 +1,9 @@
1
+ [<< back](README.md)
1
2
 
2
- # Install with Vagrant
3
+ # Teuton installation using Vagrant
3
4
 
4
5
  * First, you must have `Vagrant` installed.
5
6
  * Create directory for your vagrant project. For example, `mkdir teuton-vagrant`.
6
7
  * Move into that directory: `cd teuton-vagrant`.
7
- * Download required [Vagrantfile](../../install/vagrant).
8
+ * Choose and download [Vagrantfile](../../install/vagrant).
8
9
  * Run `vagrant up` to create your Virtual Machine.
data/docs/learn/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ [<< back](../../README.md)
3
+
2
4
  # Learning
3
5
 
4
6
  Learn how to write your own tests reading examples.
@@ -1,3 +1,6 @@
1
+ [<< back](README.md)
2
+
3
+ # Example: learn-01-target
1
4
 
2
5
  Let's learn how to create our first target.
3
6
  A target is a feature you want to measure or check.
@@ -16,12 +19,12 @@ group "learn-01-target" do
16
19
  end
17
20
  ```
18
21
 
19
- It's where we define targets using these words:
22
+ We define targets using these words:
20
23
  * **target**: Description of the goal to be tested.
21
24
  * **run**: Execute a command `id david` on localhost machine.
22
25
  * **expect**: Evaluate if the result contains expected value.
23
26
 
24
- > Localhost's OS must be GNU/Linux (any other compatible OS) because the command used is `id david`.
27
+ > In this example, localhost's OS must be GNU/Linux (any other compatible OS) because the command used is `id david`.
25
28
 
26
29
  ## Main execution block (Play section)
27
30
 
@@ -1,10 +1,16 @@
1
+ [<< back](README.md)
1
2
 
2
- Learn how to use config file into your tests.
3
- Tests can use params defined into config files. It's good idea save variable data separated into external config file.
3
+ # Example: learn-02-config
4
+
5
+ * Learn how to use config file.
6
+ * Tests use params defined into config files.
7
+ * It's good idea save variable data separated into external config file.
4
8
 
5
9
  > This example is on GitHub repository at `examples/learn-02-config`.
6
10
 
7
- ## Config file (`config.yaml`)
11
+ ## Config file
12
+
13
+ By default, `config.yaml` is our config file. Let's an example:
8
14
 
9
15
  ```yaml
10
16
  ---
@@ -16,7 +22,9 @@ Tests can use params defined into config files. It's good idea save variable dat
16
22
  :username: fran
17
23
  ```
18
24
 
19
- ## Definitions (`start.rb`)
25
+ ## Definitions
26
+
27
+ By default, `start.rb` it's our main execution file.
20
28
 
21
29
  ```ruby
22
30
  group "learn 02 config" do
@@ -140,29 +148,28 @@ RESULTS
140
148
  ```
141
149
 
142
150
  ---
143
-
144
- ## Using other config files
151
+ ## Using other config file names
145
152
 
146
153
  **Default names:**:
147
- By default, when you run `teuton play foo`, this will search for:
154
+ By default, when you run `teuton run foo`, this will search for:
148
155
  * `foo/start.rb` test file and
149
156
  * `foo/config.yaml` config file.
150
157
 
151
158
  **Using cname param:**
152
- But it's posible run `teuton play --cname=rock foo`, and this will search for:
159
+ But it's posible run `teuton run --cname=rock foo`, and this will search for:
153
160
  * `foo/start.rb` test file and
154
161
  * `foo/rock.yaml` config file.
155
162
 
156
163
  `cname` param searchs YAML config file into the same project folder.
157
164
 
158
165
  **Using cpath param:**
159
- An also, it's posible run `teuton play --cpath=/home/david/startwars.yaml foo`, and this will search for:
166
+ An also, it's posible run `teuton run --cpath=/home/david/startwars.yaml foo`, and this will search for:
160
167
  * `foo/start.rb` test file and
161
168
  * `/home/david/starwars.yaml` config file.
162
169
 
163
170
  `cpath` param use YAML config file, from the specified path.
164
171
 
165
172
  **Using diferent main rb name:**
166
- When you run `teuton play foo/mazingerz.rb`, this will search for:
173
+ When you run `teuton run foo/mazingerz.rb`, this will search for:
167
174
  * `foo/mazingerz.rb` test file and
168
175
  * `foo/mazingerz.yaml` config file.
@@ -1,13 +1,15 @@
1
1
 
2
+ [<< back](README.md)
3
+
2
4
  # Quick demo
3
5
 
4
6
  Every TEUTON challenge (Test Unit) consists of 2 files.
5
- Let's look at demo `examples/learn-03-remote-hosts`:
7
+ Let's look at example [learn-03-remote-hosts](examples/learn-03-remote-hosts):
6
8
 
7
- | File | Description |
8
- | ----------- | ----------------------------- |
9
- | start.rb | Defines TEUTON activity (DSL) |
10
- | config.yaml | Configuration file with every student machine |
9
+ | File | Description |
10
+ | ----------- | ------------------- |
11
+ | start.rb | Defines TEUTON test |
12
+ | config.yaml | Configuration file |
11
13
 
12
14
  ## Running
13
15
 
@@ -4,7 +4,7 @@ require 'singleton'
4
4
  class Application
5
5
  include Singleton
6
6
 
7
- VERSION = '2.1.6' # Application version
7
+ VERSION = '2.1.7' # Application version
8
8
  NAME = 'teuton' # Application name
9
9
 
10
10
  attr_reader :letter
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.1.6
4
+ version: 2.1.7
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: 2020-02-18 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_pure
@@ -333,7 +333,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
333
333
  requirements:
334
334
  - - ">="
335
335
  - !ruby/object:Gem::Version
336
- version: 2.3.0
336
+ version: 2.5.0
337
337
  required_rubygems_version: !ruby/object:Gem::Requirement
338
338
  requirements:
339
339
  - - ">="