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( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 3 | tgt='salt:master', |
| 4 | param='cd /srv/salt/reclass/classes/cluster/; git status', |
Oleksii Zhurba | c342221 | 2018-01-16 20:22:30 +0000 | [diff] [blame] | 5 | 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 Zhurba | e592ed1 | 2018-06-21 18:01:09 -0500 | [diff] [blame] | 8 | |
| 9 | |
| 10 | def test_reclass_smoke(local_salt_client): |
| 11 | reclass = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 12 | tgt='salt:master', |
| 13 | param='reclass-salt --top; echo $?', |
Oleksii Zhurba | e592ed1 | 2018-06-21 18:01:09 -0500 | [diff] [blame] | 14 | expr_form='pillar') |
| 15 | result = reclass[reclass.keys()[0]][-1] |
| 16 | |
| 17 | assert result == '0', 'Reclass is broken' \ |
| 18 | '\n {}'.format(reclass) |