-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.tst
49 lines (43 loc) · 971 Bytes
/
example.tst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!yaml
test execution module ping:
module_and_function: test.ping
assertion: assertTrue
#!jinja|yaml
{% set expected_value = 5 %}
test_args:
module_and_function: cmd.run
args:
- echo 6
kwargs:
shell: True
assertion_section: stdout
expected_return: {{ expected_value }}
assertion: assertLessEqual
multiple assertion test:
module_and_function: cmd.run
args:
- echo something
assertions:
- assertion: assertNotEmpty
- assertion: assertEqual
assertion_section: "stdout"
expected_return: "something\n"
- expected_return: some
assertion: assertIn
assertion_section: stdout
test skip ping:
module_and_function: test.ping
assertion: assertTrue
skip: True
{#
test custom:
module_and_function: test.custom
assertion: assertEqual
expected_return: "thing"
assertion_section: some:complicated
#}
#!toml
["test ping toml"]
module_and_function = "test.ping"
assertion = "assertTrue"
skip = false