teuton 2.1.6 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/teuton +2 -1
- data/docs/install/README.md +4 -1
- data/docs/install/manual.md +4 -1
- data/docs/install/scripts.md +3 -0
- data/docs/install/vagrant.md +3 -2
- data/docs/learn/README.md +2 -0
- data/docs/learn/example-01-target.md +5 -2
- data/docs/learn/example-02-configfile.md +17 -10
- data/docs/learn/quick-demo.md +7 -5
- data/lib/teuton/application.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f3afa907473fea0072b32db4ce5b6d8fd2f93d1e48c0937fd37e5c74756dfb3
|
4
|
+
data.tar.gz: 44065354ff9987c8e92477767064e5a62afea9f9da03eecf49e71e6c116ddddc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbab8d53ac2945943316c789e6efb5e83bc9c2dd4435a6f7c9c231d7bd4d8bfb9e5a1e27fff4f8d7cd7c82536f85fe5d2cd46234c02b091e1d6c3b75557c04b5
|
7
|
+
data.tar.gz: e8088367c4d4182c5cd50cce7aad58bae68df6303356a9daa94980cf0db97307244de09254879cf59f29de0aee2506bfd577f9001e89c8da92e42a33253e8a7e
|
data/bin/teuton
CHANGED
data/docs/install/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
[<< back](../../README.md)
|
1
2
|
|
2
|
-
|
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.
|
data/docs/install/manual.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
[<< back](README.md)
|
1
2
|
|
2
|
-
|
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.
|
data/docs/install/scripts.md
CHANGED
data/docs/install/vagrant.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
[<< back](README.md)
|
1
2
|
|
2
|
-
#
|
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
|
-
*
|
8
|
+
* Choose and download [Vagrantfile](../../install/vagrant).
|
8
9
|
* Run `vagrant up` to create your Virtual Machine.
|
data/docs/learn/README.md
CHANGED
@@ -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
|
-
|
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
|
-
>
|
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
|
-
|
3
|
-
|
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
|
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
|
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
|
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
|
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
|
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
|
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.
|
data/docs/learn/quick-demo.md
CHANGED
@@ -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
|
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
|
10
|
-
| config.yaml | Configuration file
|
9
|
+
| File | Description |
|
10
|
+
| ----------- | ------------------- |
|
11
|
+
| start.rb | Defines TEUTON test |
|
12
|
+
| config.yaml | Configuration file |
|
11
13
|
|
12
14
|
## Running
|
13
15
|
|
data/lib/teuton/application.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.1.
|
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-
|
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.
|
336
|
+
version: 2.5.0
|
337
337
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
338
338
|
requirements:
|
339
339
|
- - ">="
|