add basic infra tests
Change-Id: Iec0c5b5d5d263f53ffa631449b622f4eda581f5b
diff --git a/ceph/files/testinfra/requirements.txt b/ceph/files/testinfra/requirements.txt
new file mode 100644
index 0000000..8ee609a
--- /dev/null
+++ b/ceph/files/testinfra/requirements.txt
@@ -0,0 +1 @@
+testinfra
diff --git a/ceph/files/testinfra/test_health.py b/ceph/files/testinfra/test_health.py
new file mode 100644
index 0000000..0ef8b5a
--- /dev/null
+++ b/ceph/files/testinfra/test_health.py
@@ -0,0 +1,18 @@
+import pytest
+
+testinfra_hosts = ['salt://I@ceph:mon']
+
+@pytest.mark.parametrize('cmd', [
+ 'ceph health',
+ 'ceph status',
+ 'ceph osd tree',
+ 'ceph df',
+ 'ceph osd pool ls',
+ 'ceph auth list'
+])
+def test_command(host, cmd):
+ cmd = host.run(cmd)
+
+ print(cmd.stdout)
+ assert cmd.rc == 0
+