From e4e448942b31371e8c59f3c4b447751563b8b5ad Mon Sep 17 00:00:00 2001 From: Walter Huf Date: Fri, 18 Jul 2014 17:30:59 -0500 Subject: [PATCH] Adds tests for the cephfs_mount attribute --- test/cookbooks/ceph_test/attributes/cephfs_mount.rb | 1 + test/integration/aio/bats/cephfs.bats | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 test/cookbooks/ceph_test/attributes/cephfs_mount.rb diff --git a/test/cookbooks/ceph_test/attributes/cephfs_mount.rb b/test/cookbooks/ceph_test/attributes/cephfs_mount.rb new file mode 100644 index 0000000..fc2c912 --- /dev/null +++ b/test/cookbooks/ceph_test/attributes/cephfs_mount.rb @@ -0,0 +1 @@ +default['ceph']['cephfs_mount'] = '/recipe_ceph' diff --git a/test/integration/aio/bats/cephfs.bats b/test/integration/aio/bats/cephfs.bats index 78d4f9d..8dd3cbe 100644 --- a/test/integration/aio/bats/cephfs.bats +++ b/test/integration/aio/bats/cephfs.bats @@ -1,3 +1,7 @@ +@test "/recipe_ceph is mounted" { + grep -q -E '^\S+\s+/recipe_ceph\s+' /proc/mounts +} + @test "/ceph is mounted" { grep -q -E '^\S+\s+/ceph\s+' /proc/mounts } -- 2.47.3