Skip to content

Latest commit

 

History

History
60 lines (51 loc) · 1.52 KB

example_check.md

File metadata and controls

60 lines (51 loc) · 1.52 KB

<< back

Check Teuton Test

Param Description Default value
--no-panelconfig Show check information Enabled
--panelconfig Only show config file recomended content Disabled
--cpath Specify path to config file TEST-FOLDER/config.yaml
--cname Specify name to config file config.yaml

Usage:

teuton check PATH-TO-TEST-FOLDER

Example:

❯ teuton check examples/02-target

+----------------------------+
| GROUP: Learn about targets |
+----------------------------+
(001) target      Create user david
      weight      1.0
      run         'id david' on localhost
      expect      david (String)

+--------------+-------+
| DSL Stats    | Count |
+--------------+-------+
| Groups       | 1     |
| Targets      | 1     |
| Runs         | 1     |
|  * localhost | 1     |
| Uniques      | 0     |
| Logs         | 0     |
|              |       |
| Gets         | 0     |
| Sets         | 0     |
+--------------+-------+
+----------------------+
| Revising CONFIG file |
+----------------------+
[WARN] Configfile not found
       /home/david/proy/repos/teuton.d/teuton/examples/02-target/config.yaml
[INFO] Recomended content:
---
:global:
:cases:
- :tt_members: VALUE

The check process notifies that

  • This test hasn't config file
  • and recommends content for our config file. But it isn't necessary for this example.
  • exit_code 0 = Syntax ok.
  • exit code 1 = Syntax ERROR.