]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test_rbd.py: refactor cloning tests
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 25 Jul 2012 21:32:56 +0000 (14:32 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Sat, 4 Aug 2012 01:48:53 +0000 (18:48 -0700)
commit12c9a7d5df57cf6e10ee0ba484461a852f43b590
tree0d925933a75b4421a976abba77e4034d024ca064
parentbeccac9345a21ddcacd67234c179bfdce9aec335
test_rbd.py: refactor cloning tests

Move into a separate class that requires layering to be enabled,
so the common step of creating and deleting a clone doesn't
need to be repeated in each test.

Move flatten tests into a subclass so they can be run separately
more easily.

Move the checks for the layering feature into a generic decorator
that skips tests if the specified feature is not being used.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/test/pybind/test_rbd.py