-
Notifications
You must be signed in to change notification settings - Fork 1
/
tests.py
43 lines (31 loc) · 1.19 KB
/
tests.py
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
import salt.client
def test_salt_states():
caller = salt.client.Caller()
output = caller.sminion.functions['state.highstate']()
for k, v in output.items():
assert v['result'], (k, v)
def test_locale_state():
caller = salt.client.Caller()
output = caller.sminion.functions['state.sls']('locale')
for k, v in output.items():
assert v['result'], (k, v)
def test_python_states():
caller = salt.client.Caller()
output = caller.sminion.functions['state.sls']('python')
for k, v in output.items():
assert v['result'], (k, v)
def test_virtualenv_base_states():
caller = salt.client.Caller()
output = caller.sminion.functions['state.sls']('virtualenv.base')
for k, v in output.items():
assert v['result'], (k, v)
def test_virtualenv_matplotlib_states():
caller = salt.client.Caller()
output = caller.sminion.functions['state.sls']('virtualenv.matplotlib')
for k, v in output.items():
assert v['result'], (k, v)
def test_virtualenv_scipy_states():
caller = salt.client.Caller()
output = caller.sminion.functions['state.sls']('virtualenv.scipy')
for k, v in output.items():
assert v['result'], (k, v)