blob: 7ae57542da180f542dcbccfecf3c65a5e11731dc [file] [log] [blame]
Oleksii Zhurbac3422212018-01-16 20:22:30 +00001def test_uncommited_changes(local_salt_client):
2 git_status = local_salt_client.cmd(
Oleksii Zhurba4bfd2ee2019-04-10 21:56:58 -05003 tgt='salt:master',
4 param='cd /srv/salt/reclass/classes/cluster/; git status',
Oleksii Zhurbac3422212018-01-16 20:22:30 +00005 expr_form='pillar')
6 assert 'nothing to commit' in git_status.values()[0], 'Git status showed' \
7 ' some unmerged changes {}'''.format(git_status.values()[0])
Oleksii Zhurbae592ed12018-06-21 18:01:09 -05008
9
10def test_reclass_smoke(local_salt_client):
11 reclass = local_salt_client.cmd(
Oleksii Zhurba4bfd2ee2019-04-10 21:56:58 -050012 tgt='salt:master',
13 param='reclass-salt --top; echo $?',
Oleksii Zhurbae592ed12018-06-21 18:01:09 -050014 expr_form='pillar')
15 result = reclass[reclass.keys()[0]][-1]
16
17 assert result == '0', 'Reclass is broken' \
18 '\n {}'.format(reclass)