blob: 7649767e72cc20ec69d4a55a8b0a16fa1a2f5619 [file] [log] [blame]
Oleksii Zhurbac3422212018-01-16 20:22:30 +00001def test_uncommited_changes(local_salt_client):
2 git_status = local_salt_client.cmd(
3 'salt:master',
4 'cmd.run',
5 ['cd /srv/salt/reclass/classes/cluster/; git status'],
6 expr_form='pillar')
7 assert 'nothing to commit' in git_status.values()[0], 'Git status showed' \
8 ' some unmerged changes {}'''.format(git_status.values()[0])
Oleksii Zhurbae592ed12018-06-21 18:01:09 -05009
10
11def test_reclass_smoke(local_salt_client):
12 reclass = local_salt_client.cmd(
13 'salt:master',
14 'cmd.run',
15 ['reclass-salt --top; echo $?'],
16 expr_form='pillar')
17 result = reclass[reclass.keys()[0]][-1]
18
19 assert result == '0', 'Reclass is broken' \
20 '\n {}'.format(reclass)