]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: test/multi.py add a destructive attr to tests
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 22 Jul 2016 15:56:05 +0000 (17:56 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 22 Jul 2016 15:56:05 +0000 (17:56 +0200)
Since the `test_zonegroup_remove` actually destroys a zonegroup, we
could just filter this out and run the suite as
`nosetests -a !destructive ../path/to/test-multi.py`

for provisioning a multisite mstart cluster.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/test/rgw/test_multi.py

index 698c367601b018b3e095a5b7019574b8aded2a0c..bc93673180720f2938fba1798c8bbde3d556f24f 100644 (file)
@@ -16,6 +16,11 @@ import boto.s3.connection
 import inspect
 
 from nose.tools import eq_ as eq
+from nose.plugins.attrib import attr
+
+# test-suite for rgw multisite, the last test destroys a zone,
+# so in order to use this as a dev cluster, do
+# $nosetests -a '!destructive' /path/to/test_multi.py
 
 log_level = 20
 
@@ -788,7 +793,7 @@ def test_multi_period_incremental_sync():
 
             check_bucket_eq(source_zone, target_zone, bucket)
 
-# TODO: test this in isolation, so it doesn't have side effects on other tests
+@attr('destructive')
 def test_zonegroup_remove():
     z1 = realm.get_zone('us-1')