Oleksii Zhurba | c342221 | 2018-01-16 20:22:30 +0000 | [diff] [blame] | 1 | def 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 Zhurba | e592ed1 | 2018-06-21 18:01:09 -0500 | [diff] [blame^] | 9 | |
| 10 | |
| 11 | def 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) |