blob: 7e4c294c4590331a8a67beb04e2b2b1a00f06c13 [file] [log] [blame]
Oleksii Zhurbab9bf5452018-03-26 14:27:41 -05001def 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'''