blob: 8fdadd6185192a2a8bfc642e3431d4a77c663c43 [file] [log] [blame]
Oleksii Zhurba9848e212018-09-05 10:53:51 -05001import pytest
2
3
Oleksii Zhurba5dc7dc72017-10-31 19:10:32 +00004def test_nova_services_status(local_salt_client):
5 result = local_salt_client.cmd(
6 'keystone:server',
7 'cmd.run',
Oleksii Zhurba5c56c242018-12-05 16:46:17 -06008 ['. /root/keystonercv3; nova service-list | grep "down\|disabled" | grep -v "Forced down"'],
Oleksii Zhurba5dc7dc72017-10-31 19:10:32 +00009 expr_form='pillar')
Oleksii Zhurba9848e212018-09-05 10:53:51 -050010
11 if not result:
12 pytest.skip("Nova service or keystone:server pillar \
13 are not found on this environment.")
14
Oleksii Zhurba5dc7dc72017-10-31 19:10:32 +000015 assert result[result.keys()[0]] == '', \
16 '''Some nova services are in wrong state'''