Oleksii Zhurba | 9848e21 | 2018-09-05 10:53:51 -0500 | [diff] [blame] | 1 | import pytest |
| 2 | |
| 3 | |
Oleksii Zhurba | 5dc7dc7 | 2017-10-31 19:10:32 +0000 | [diff] [blame] | 4 | def test_nova_services_status(local_salt_client): |
| 5 | result = local_salt_client.cmd( |
| 6 | 'keystone:server', |
| 7 | 'cmd.run', |
Oleksii Zhurba | 5c56c24 | 2018-12-05 16:46:17 -0600 | [diff] [blame] | 8 | ['. /root/keystonercv3; nova service-list | grep "down\|disabled" | grep -v "Forced down"'], |
Oleksii Zhurba | 5dc7dc7 | 2017-10-31 19:10:32 +0000 | [diff] [blame] | 9 | expr_form='pillar') |
Oleksii Zhurba | 9848e21 | 2018-09-05 10:53:51 -0500 | [diff] [blame] | 10 | |
| 11 | if not result: |
| 12 | pytest.skip("Nova service or keystone:server pillar \ |
| 13 | are not found on this environment.") |
| 14 | |
Oleksii Zhurba | 5dc7dc7 | 2017-10-31 19:10:32 +0000 | [diff] [blame] | 15 | assert result[result.keys()[0]] == '', \ |
| 16 | '''Some nova services are in wrong state''' |