Oleksii Zhurba | b9bf545 | 2018-03-26 14:27:41 -0500 | [diff] [blame] | 1 | def test_cinder_services(local_salt_client): |
| 2 | service_down = local_salt_client.cmd( |
| 3 | 'keystone:server', |
| 4 | 'cmd.run', |
| 5 | ['. /root/keystonerc; cinder service-list | grep "down\|disabled"'], |
| 6 | expr_form='pillar') |
| 7 | cinder_volume = local_salt_client.cmd( |
| 8 | 'keystone:server', |
| 9 | 'cmd.run', |
| 10 | ['. /root/keystonerc; cinder service-list | grep "volume" | wc -l'], |
| 11 | expr_form='pillar') |
| 12 | assert service_down[service_down.keys()[0]] == '', \ |
| 13 | '''Some cinder services are in wrong state''' |
| 14 | assert cinder_volume[cinder_volume.keys()[0]] == '1', \ |
| 15 | '''Some nova services are in wrong state''' |