Add test_cinder_services
diff --git a/cvp_checks/tests/test_cinder_services.py b/cvp_checks/tests/test_cinder_services.py
new file mode 100644
index 0000000..7e4c294
--- /dev/null
+++ b/cvp_checks/tests/test_cinder_services.py
@@ -0,0 +1,15 @@
+def test_cinder_services(local_salt_client):
+ service_down = local_salt_client.cmd(
+ 'keystone:server',
+ 'cmd.run',
+ ['. /root/keystonerc; cinder service-list | grep "down\|disabled"'],
+ expr_form='pillar')
+ cinder_volume = local_salt_client.cmd(
+ 'keystone:server',
+ 'cmd.run',
+ ['. /root/keystonerc; cinder service-list | grep "volume" | wc -l'],
+ expr_form='pillar')
+ assert service_down[service_down.keys()[0]] == '', \
+ '''Some cinder services are in wrong state'''
+ assert cinder_volume[cinder_volume.keys()[0]] == '1', \
+ '''Some nova services are in wrong state'''